/*
 * Messen & Events (T-062) – im Stil der Startseite: Navy-Hero mit Tory und Strömungslinien, Schwung-Kanten mit
 * Signalfaden, Messekarte mit Countdown, Zeitleiste, Navy-Band. Baut auf industries.css auf; nur auf dieser Seite
 * geladen. Schwung- und Strömungsregeln wie home.css (dort nur auf der Startseite geladen).
 */

.tsi[data-ind="messen"] {
	--tsh-ink: #0a121f;
	--tsh-navy: #0f1b33;
	--tsh-cyan: #00B9BC;
	--tsh-cyan-hi: #5fe3e5;
	--tsh-light: #f4f7f9;
	--tsh-ease: cubic-bezier(.22, .61, .21, 1);
	--tsh-swoosh-h: clamp(46px, 7vw, 112px);
	font-variant-numeric: tabular-nums;
	background: #fff;
}

/* ── Schwung-Kante und Strömungslinien (wie home.css) ───────────────────── */
.tsi[data-ind="messen"] .tsh-swoosh { position: absolute; left: 0; bottom: -1px; z-index: 6; display: block; width: 100%; height: var(--tsh-swoosh-h); overflow: visible; pointer-events: none; }
.tsi[data-ind="messen"] .tsh-swoosh--top { top: -1px; bottom: auto; transform: scaleY(-1); }
.tsi[data-ind="messen"] .tsh-swoosh__fill { fill: #fff; }
.tsi[data-ind="messen"] .tsh-swoosh--light .tsh-swoosh__fill { fill: var(--tsh-light); }
.tsi[data-ind="messen"] .tsh-swoosh__glow,
.tsi[data-ind="messen"] .tsh-swoosh__line { fill: none; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.tsi[data-ind="messen"] .tsh-swoosh__glow { display: none; }
.tsi[data-ind="messen"] .tsh-swoosh__line { stroke: var(--tsh-cyan); stroke-width: 1.5; }
.tsi[data-ind="messen"] .tsh-flow { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; pointer-events: none; opacity: .7; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 18%, #000 60%, transparent 92%); mask-image: linear-gradient(90deg, transparent 0%, #000 18%, #000 60%, transparent 92%); }
.tsi[data-ind="messen"] .tsh-flow path { fill: none; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.tsi[data-ind="messen"] .tsh-flow__base { stroke: rgba(95, 227, 229, .13); stroke-width: 1; }
.tsi[data-ind="messen"] .tsh-flow__pulse { stroke: rgba(95, 227, 229, .75); stroke-width: 1.4; stroke-dasharray: .12 .88; stroke-dashoffset: 1; }

.tsf-kicker { margin: 0 0 18px !important; font: 600 12px/1 var(--tsi-display); letter-spacing: .16em; text-transform: uppercase; color: var(--tsh-cyan-hi); }
.tsf-kicker span { display: inline-flex; align-items: center; gap: 12px; }
.tsf-kicker span::before { content: ""; width: 34px; height: 1px; background: currentColor; }
.tsf-ico { width: 18px; height: 18px; flex: none; }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.tsf-hero {
	position: relative; isolation: isolate; display: flex; align-items: center;
	min-height: clamp(560px, 74vh, 720px); padding: clamp(96px, 10vw, 140px) 0 clamp(120px, 12vw, 170px);
	overflow: hidden; background: var(--tsh-ink); color: #fff;
}
.tsf-hero__media, .tsf-hero__shade { position: absolute; inset: 0; }
.tsf-hero__media { z-index: 0; margin: 0; }
.tsf-hero__img { position: absolute; inset: 0; width: 100%; height: 100% !important; max-width: none !important; object-fit: cover; object-position: 0% 28%; }
.tsf-hero__shade {
	z-index: 2;
	background:
		linear-gradient(180deg, rgba(10, 18, 31, .55) 0%, rgba(10, 18, 31, 0) 26%, rgba(10, 18, 31, 0) 62%, rgba(10, 18, 31, .7) 100%),
		linear-gradient(90deg, rgba(10, 18, 31, .95) 0%, rgba(10, 18, 31, .84) 30%, rgba(10, 18, 31, .38) 54%, rgba(10, 18, 31, 0) 72%);
}
.tsf-hero__inner { position: relative; z-index: 4; width: 100%; }
.tsf-hero__title {
	max-width: 13.5em; margin: 0 !important; font: 600 clamp(40px, 5.4vw, 76px)/1.02 var(--tsi-display) !important;
	letter-spacing: -.035em; color: #fff !important;
}
.tsf-hero__accent { display: block; color: var(--tsh-cyan-hi); }
.tsf-hero__line { display: block; width: 220px; height: 14px; margin: 22px 0 22px; overflow: visible; }
.tsf-hero__line path { fill: none; stroke: var(--tsh-cyan); stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.tsf-hero__lead { max-width: 34em; margin: 0 0 30px !important; font-size: clamp(16px, 1.25vw, 19px); line-height: 1.6; color: rgba(255, 255, 255, .84); }
.tsf-hero .tsi-hero__cta { margin: 0; }
.tsf-btn--glass {
	border: 1px solid rgba(255, 255, 255, .45) !important; background: rgba(255, 255, 255, .06) !important; color: #fff !important;
	-webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.tsf-btn--glass:hover { background: rgba(255, 255, 255, .14) !important; border-color: #fff !important; }

.tsf-tag {
	display: inline-grid; grid-template-columns: auto auto; grid-template-areas: "pulse label" "pulse name" "pulse meta"; align-items: center; column-gap: 14px;
	margin-top: clamp(30px, 4vw, 48px); padding: 14px 22px 14px 18px; border: 1px solid rgba(95, 227, 229, .28); border-radius: 16px;
	background: rgba(10, 18, 31, .5); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
	color: #fff !important; text-decoration: none !important; transition: border-color .25s ease, transform .25s ease;
}
.tsf-tag:hover { border-color: var(--tsh-cyan); transform: translateY(-2px); }
.tsf-tag__pulse { grid-area: pulse; position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--tsh-cyan); box-shadow: 0 0 0 4px rgba(0, 185, 188, .18); }
.tsf-tag__label { grid-area: label; font: 600 11px/1.2 var(--tsi-display); letter-spacing: .14em; text-transform: uppercase; color: var(--tsh-cyan-hi); }
.tsf-tag strong { grid-area: name; margin: 3px 0 2px; font: 600 18px/1.2 var(--tsi-display); }
.tsf-tag > span:last-child { grid-area: meta; font-size: 14px; color: rgba(255, 255, 255, .72); }

/* ── Nächste Messe ──────────────────────────────────────────────────────── */
.tsf-next { position: relative; padding: clamp(36px, 5vw, 72px) 0 clamp(64px, 8vw, 112px); background: var(--tsh-light); }
.tsf-next__head { margin-bottom: clamp(22px, 3vw, 36px); }
.tsf-next__head .tsi-h2 { max-width: 20em; margin-bottom: 0 !important; }
.tsf-next__empty { max-width: 36em; margin: 0 0 22px !important; color: var(--tsi-muted); }

.tsf-card {
	position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); grid-template-areas: "main count"; overflow: hidden; isolation: isolate;
	border-radius: 26px; color: #fff;
	/* Punktraster wie die Messekarte der Startseite */
	background: radial-gradient(circle, rgba(255, 255, 255, .09) 1px, transparent 1.2px) 0 0 / 14px 14px, linear-gradient(160deg, #13234a 0%, var(--tsh-navy) 42%, var(--tsh-ink) 100%);
	box-shadow: 0 30px 70px -32px rgba(10, 18, 31, .55);
}
.tsf-card__main { grid-area: main; padding: clamp(28px, 3.6vw, 52px); }
.tsf-card__logo { display: inline-flex; align-items: center; justify-content: center; margin-bottom: 26px; padding: 12px 16px; border-radius: 14px; background: #fff; box-shadow: 0 10px 30px -14px rgba(0, 0, 0, .5); }
.tsf-card__logo img { display: block; width: auto; max-width: 260px; height: auto; max-height: 64px; }
.tsf-card__name { margin: 0 0 18px !important; font: 600 clamp(30px, 3.2vw, 46px)/1.05 var(--tsi-display) !important; letter-spacing: -.03em; color: #fff !important; }
.tsf-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 0 0 28px !important; font-size: 16px; color: rgba(255, 255, 255, .8); }
/* Cyan-Punkte zwischen Datum, Ort und Stand wie auf der Startseite */
.tsf-card__meta span + span::before { content: ""; display: inline-block; width: 4px; height: 4px; margin: 0 12px 3px -8px; border-radius: 50%; background: var(--tsh-cyan); }
.tsf-card__booth { font-weight: 600; color: var(--tsh-cyan-hi); }
.tsf-card__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; }
.tsf-chip {
	display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px;
	font: 500 14px/1 var(--tsi-display); color: #fff !important; text-decoration: none !important; transition: border-color .2s ease, background .2s ease;
}
.tsf-chip:hover { border-color: var(--tsh-cyan); background: rgba(0, 185, 188, .1); }
.tsf-chip .tsf-ico { width: 16px; height: 16px; color: var(--tsh-cyan-hi); }

.tsf-card__count {
	grid-area: count; position: relative; display: flex; flex-direction: column; justify-content: center; padding: clamp(28px, 3.6vw, 52px);
	border-left: 1px solid rgba(255, 255, 255, .1); background: linear-gradient(180deg, rgba(0, 185, 188, .07), rgba(0, 185, 188, 0) 70%);
}
.tsf-count__label { margin: 0 0 18px !important; font: 600 12px/1 var(--tsi-display); letter-spacing: .14em; text-transform: uppercase; color: var(--tsh-cyan-hi); }
.tsf-card__count .tmk-flap { position: relative; z-index: 1; --flap: clamp(34px, 3.4vw, 50px); }
.tsf-count__days { margin: 0 !important; font: 500 16px/1 var(--tsi-display); color: rgba(255, 255, 255, .7); }
.tsf-count__days strong { font: 600 clamp(56px, 6vw, 84px)/.9 var(--tsi-display); letter-spacing: -.04em; color: #fff; }
.tsf-count__live { display: flex; align-items: center; gap: 14px; margin: 0 !important; font: 600 clamp(26px, 2.6vw, 36px)/1.15 var(--tsi-display); }
.tsf-count__wave { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 30%; overflow: visible; opacity: .55; }
.tsf-count__wave path { fill: none; stroke: var(--tsh-cyan); stroke-width: 1.4; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 0; }

/* ── Zeitleiste ─────────────────────────────────────────────────────────── */
.tsf-dates { background: #fff; }
.tsf-dates__head { max-width: 46em; margin-bottom: clamp(30px, 4vw, 52px); }
.tsf-dates__intro { margin: 0 !important; color: var(--tsi-muted); font-size: 17px; line-height: 1.6; }
.tsf-dates__cols { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.tsf-dates__sub { display: flex; align-items: center; gap: 12px; margin: 0 0 22px !important; font: 600 13px/1 var(--tsi-display) !important; letter-spacing: .14em; text-transform: uppercase; color: var(--tsi-petrol) !important; }
.tsf-dates__sub em { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 8px; border-radius: 999px; background: rgba(0, 185, 188, .12); font-style: normal; letter-spacing: 0; color: var(--tsi-petrol); }
.tsf-dates__none { color: var(--tsi-muted); }

.tsf-line { position: relative; margin: 0 !important; padding: 0 0 0 30px !important; list-style: none; }
.tsf-line::before {
	content: ""; position: absolute; left: 6px; top: 12px; bottom: 12px; width: 2px; border-radius: 2px;
	background: linear-gradient(180deg, var(--tsh-cyan) 0%, rgba(0, 185, 188, .25) 70%, rgba(0, 185, 188, 0) 100%);
}
.tsf-line--past::before { background: linear-gradient(180deg, #c9d3da 0%, rgba(201, 211, 218, 0) 100%); }
.tsf-line__item {
	position: relative; display: grid; grid-template-columns: 7.2em minmax(0, 1fr) auto; align-items: center; gap: 18px;
	margin: 0 0 14px !important; padding: 20px 22px; border: 1px solid var(--tsi-line); border-radius: 18px; background: #fff;
	box-shadow: var(--tsi-card-shadow); transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}
.tsf-line__item:hover { box-shadow: var(--tsi-card-shadow-hover); transform: translateY(-2px); border-color: rgba(0, 185, 188, .4); }
.tsf-line__dot { position: absolute; left: -30px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border: 3px solid #fff; border-radius: 50%; background: var(--tsh-cyan); box-shadow: 0 0 0 1px var(--tsh-cyan), 0 0 0 6px rgba(0, 185, 188, .14); }
.tsf-line__date strong { display: block; font: 600 26px/1 var(--tsi-display); letter-spacing: -.03em; color: var(--tsi-deep); }
.tsf-line__date span { display: block; margin-top: 6px; font: 500 13px/1.2 var(--tsi-display); color: var(--tsi-muted); }
.tsf-line__name { margin: 0 0 6px !important; font: 600 19px/1.25 var(--tsi-display) !important; color: var(--tsi-deep) !important; }
.tsf-line__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 0 !important; font-size: 14.5px; color: var(--tsi-muted); }
.tsf-line__meta > span { display: inline-flex; align-items: center; gap: 6px; }
.tsf-line__meta .tsf-ico { width: 15px; height: 15px; color: var(--tsi-petrol); }
.tsf-line__booth { padding: 3px 10px; border-radius: 999px; background: rgba(0, 185, 188, .1); font: 600 12.5px/1.4 var(--tsi-display); color: var(--tsi-petrol); }
.tsf-line__act { justify-self: end; white-space: nowrap; }
.tsf-badge { display: inline-block; padding: 6px 12px; border-radius: 999px; background: #eef2f4; font: 600 12px/1 var(--tsi-display); letter-spacing: .04em; color: var(--tsi-muted); }
.tsf-line__item.is-past { background: #fafbfc; box-shadow: none; }
.tsf-line__item.is-past .tsf-line__dot { background: #c9d3da; box-shadow: 0 0 0 1px #c9d3da; }
.tsf-line__item.is-past .tsf-line__date strong, .tsf-line__item.is-past .tsf-line__name { color: var(--tsi-navy) !important; }
.tsf-line__item--soon { display: block; padding: 10px 0 0; border: 0; background: none; box-shadow: none; }
.tsf-line__item--soon:hover { transform: none; box-shadow: none; }
.tsf-line__item--soon .tsf-line__dot { top: 20px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 185, 188, .5); }
.tsf-line__item--soon p { margin: 0 !important; font-size: 14.5px; font-style: italic; color: var(--tsi-muted); }

/* ── Drei Schritte (Navy-Band) ──────────────────────────────────────────── */
.tsf-meet {
	position: relative; isolation: isolate; overflow: hidden; padding: calc(var(--tsh-swoosh-h) + clamp(40px, 5vw, 72px)) 0 calc(var(--tsh-swoosh-h) + clamp(48px, 6vw, 88px));
	color: #fff; background: radial-gradient(circle at 85% 20%, rgba(0, 185, 188, .16), transparent 45%), linear-gradient(170deg, var(--tsh-navy), var(--tsh-ink));
}
.tsf-meet__title { max-width: 18em; color: #fff !important; }
.tsf-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 26px); margin: clamp(28px, 3.6vw, 48px) 0 0 !important; padding: 0 !important; list-style: none; counter-reset: none; }
.tsf-step { position: relative; display: flex; flex-direction: column; margin: 0 !important; padding: 30px 28px 28px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 22px; background: rgba(255, 255, 255, .035); transition: border-color .25s ease, background .25s ease; }
.tsf-step:hover { border-color: rgba(95, 227, 229, .45); background: rgba(255, 255, 255, .06); }
.tsf-step__no { position: absolute; top: 24px; right: 26px; font: 600 14px/1 var(--tsi-display); letter-spacing: .1em; color: rgba(255, 255, 255, .35); }
.tsf-step__ico { display: inline-grid; place-items: center; width: 52px; height: 52px; margin-bottom: 22px; border-radius: 16px; background: rgba(0, 185, 188, .14); color: var(--tsh-cyan-hi); }
.tsf-step__ico .tsf-ico { width: 26px; height: 26px; }
.tsf-step__title { margin: 0 0 10px !important; font: 600 21px/1.25 var(--tsi-display) !important; color: #fff !important; }
.tsf-step p { margin: 0 !important; font-size: 15.5px; line-height: 1.6; color: rgba(255, 255, 255, .76); }
.tsf-step__link { margin-top: auto; padding-top: 18px; color: var(--tsh-cyan-hi) !important; }
.tsf-step:not(:last-child)::after {
	content: ""; position: absolute; top: 56px; right: calc(-1 * clamp(16px, 2vw, 26px)); width: clamp(16px, 2vw, 26px); height: 1px;
	background: linear-gradient(90deg, rgba(95, 227, 229, .6), rgba(95, 227, 229, 0));
}

/* ── Bewegung ───────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
	.tsi[data-ind="messen"] .tsh-flow__pulse { animation: tsf-flow calc(9s + var(--i) * .8s) linear infinite; animation-delay: calc(var(--i) * -1.3s); }
	.tsf-hero__img { animation: tsf-kb 24s linear both; }
	.tsi.is-js .tsf-hero__line path { stroke-dashoffset: 1; animation: tsf-draw 1.4s .35s var(--tsh-ease) forwards; }
	.tsi.is-js .tsf-count__wave path { stroke-dashoffset: 1; transition: stroke-dashoffset 2.2s var(--tsh-ease) .3s; }
	.tsi.is-js .tsf-card.is-in .tsf-count__wave path { stroke-dashoffset: 0; }
	.tsf-tag__pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--tsh-cyan); animation: tsf-ping 2.4s ease-out infinite; }
	.tsi.is-js .tsf-steps .tsi-reveal { transition-delay: calc(var(--k) * .1s); }
}
@keyframes tsf-flow { from { stroke-dashoffset: 1; } to { stroke-dashoffset: -1; } }
@keyframes tsf-draw { to { stroke-dashoffset: 0; } }
@keyframes tsf-kb { from { transform: scale(1.03); } to { transform: scale(1.07) translate3d(-.8%, -.4%, 0); } }
@keyframes tsf-ping { 0% { opacity: .9; transform: scale(.6); } 100% { opacity: 0; transform: scale(2.4); } }

/* ── Größen ─────────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
	.tsf-card { grid-template-columns: minmax(0, 1fr); grid-template-areas: "main" "count"; }
	.tsf-card__count { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .1); }
	.tsf-dates__cols { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
	.tsf-steps { grid-template-columns: minmax(0, 1fr); }
	.tsf-step:not(:last-child)::after { display: none; }
}
@media (max-width: 767px) {
	.tsf-hero { display: block; min-height: 0; padding: 0 0 calc(var(--tsh-swoosh-h) + 28px); }
	.tsf-hero__media { position: relative; display: block; height: 86vw; max-height: 520px; }
	.tsf-hero__img { object-position: 50% 12%; }
	.tsf-hero__shade { background: linear-gradient(180deg, rgba(10, 18, 31, .35) 0%, rgba(10, 18, 31, 0) 22%, rgba(10, 18, 31, 0) 46%, var(--tsh-ink) 86vw); }
	.tsf-hero__flow { display: none; }
	.tsf-hero__inner { margin-top: -54px; }
	.tsf-hero__title { font-size: clamp(34px, 9.4vw, 44px) !important; }
	.tsf-tag { display: grid; width: 100%; box-sizing: border-box; }
	.tsf-card__count .tmk-flap { --flap: clamp(24px, 7.6vw, 34px); }
	.tsf-line { padding-left: 24px !important; }
	.tsf-line__dot { left: -24px; }
	.tsf-line__item { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 18px; }
	.tsf-line__act { justify-self: start; }
	.tsf-card__logo img { max-width: 200px; }
}
