/**
 * IT-Web24 Slider Projekt – Showcase design (matches website-erstellen-lassen)
 */

.itw24-sp {
	--itw24-ref-ink: #111827;
	--itw24-ref-muted: #6b7280;
	--itw24-ref-line: #e5e7eb;
	--itw24-ref-accent: #f26924;
	--itw24-ref-ivory: #f4f1eb;
	--itw24-ref-paper: #fffcf8;
	--itw24-ref-night: #0b0d12;
	--itw24-ref-night-2: #141820;
	--itw24-ref-cream: #f6f3ee;
	--itw24-ref-soft: #c9c4bc;
	--itw24-ref-ease: cubic-bezier(0.22, 1, 0.36, 1);
	--itw24-ref-radius: 22px;
	--itw24-ref-max: 1240px;
	color: var(--itw24-ref-ink);
	font-family: custom-montserrat, Montserrat, sans-serif;
	display: grid;
	gap: 0;
}

.itw24-sp--showcase {
	background:
		radial-gradient(ellipse 55% 45% at 0% 0%, rgba(242, 105, 36, 0.08), transparent 55%),
		var(--itw24-ref-paper);
	padding: 0;
	overflow: hidden;
}

/* ---- Header ---- */
.itw24-sp__head {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 12px 32px;
	align-items: end;
	margin-bottom: 32px;
	max-width: none;
}

.itw24-sp__intro {
	display: grid;
	gap: 12px;
	grid-column: 1;
}

.itw24-sp__kicker {
	margin: 0;
	font-size: 16px;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--itw24-ref-accent);
}

.itw24-sp__title {
	margin: 0;
	max-width: 22ch;
	font-size: clamp(30px, 4vw, 40px);
	font-weight: 600;
	letter-spacing: -0.025em;
	line-height: 1.15;
	color: var(--itw24-ref-ink);
}

.itw24-sp__lead {
	margin: 0;
	grid-column: 1;
	max-width: 52ch;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.55;
	color: var(--itw24-ref-muted);
}

.itw24-sp__nav {
	grid-column: 2;
	grid-row: 1 / span 2;
	display: flex;
	gap: 10px;
	align-self: end;
}

/* Kill theme/bootstrap pink button defaults (#c36) inside this widget */
.itw24-sp button,
.itw24-sp [type="button"],
.itw24-sp [type="submit"] {
	display: inline-grid;
	font-weight: 700;
	font-family: inherit;
	font-size: inherit;
	line-height: 1;
	color: var(--itw24-ref-ink);
	text-align: center;
	white-space: nowrap;
	user-select: none;
	background-color: var(--itw24-ref-ivory);
	background-image: none;
	border: 1px solid var(--itw24-ref-line);
	padding: 0;
	border-radius: 14px;
	box-shadow: none;
	outline: none;
	text-decoration: none;
	appearance: none;
	-webkit-appearance: none;
	transition: background-color 0.35s var(--itw24-ref-ease), border-color 0.35s var(--itw24-ref-ease), color 0.35s var(--itw24-ref-ease), transform 0.35s var(--itw24-ref-ease);
}

.itw24-sp button:hover,
.itw24-sp button:focus,
.itw24-sp button:focus-visible,
.itw24-sp button:active,
.itw24-sp [type="button"]:hover,
.itw24-sp [type="button"]:focus,
.itw24-sp [type="button"]:focus-visible,
.itw24-sp [type="submit"]:hover,
.itw24-sp [type="submit"]:focus,
.itw24-sp [type="submit"]:focus-visible {
	color: #fff;
	background-color: var(--itw24-ref-accent);
	background-image: none;
	border-color: var(--itw24-ref-accent);
	outline: none !important;
	box-shadow: none !important;
}

.itw24-sp__nav-btn {
	width: 52px;
	height: 52px;
	border-radius: 14px;
	border: 1px solid var(--itw24-ref-line);
	background: var(--itw24-ref-ivory);
	color: var(--itw24-ref-ink);
	display: grid;
	place-items: center;
	cursor: pointer;
	padding: 0;
	outline: none;
	box-shadow: none;
	transition: background-color 0.35s var(--itw24-ref-ease), border-color 0.35s var(--itw24-ref-ease), color 0.35s var(--itw24-ref-ease), transform 0.35s var(--itw24-ref-ease);
}

.itw24-sp__nav-btn svg {
	width: 20px;
	height: 20px;
	stroke: currentColor;
	fill: none;
	stroke-width: 1.75;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.itw24-sp__nav-btn:hover:not(:disabled):not([aria-disabled="true"]),
.itw24-sp__nav-btn:focus:not(:disabled):not([aria-disabled="true"]),
.itw24-sp__nav-btn:focus-visible:not(:disabled):not([aria-disabled="true"]) {
	background: var(--itw24-ref-accent);
	border-color: var(--itw24-ref-accent);
	color: #fff;
	transform: translateY(-2px);
	outline: none !important;
	box-shadow: none !important;
}

.itw24-sp__nav-btn:disabled,
.itw24-sp__nav-btn[aria-disabled="true"],
.itw24-sp__nav-btn:disabled:hover,
.itw24-sp__nav-btn[aria-disabled="true"]:hover,
.itw24-sp__nav-btn:disabled:focus,
.itw24-sp__nav-btn[aria-disabled="true"]:focus {
	opacity: 0.35;
	cursor: not-allowed;
	transform: none !important;
	background: var(--itw24-ref-ivory) !important;
	border-color: var(--itw24-ref-line) !important;
	color: var(--itw24-ref-ink) !important;
	outline: none !important;
	box-shadow: none !important;
}

/* ---- Scroller ---- */
.itw24-sp__scroller {
	--refs-pad: 0px;
	margin: 0 -4px;
	padding: 8px 4px 20px;
	display: flex;
	gap: 18px;
	align-items: stretch;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: 4px;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.itw24-sp__scroller::-webkit-scrollbar {
	display: none;
}

.itw24-sp__scroller:focus-visible {
	outline: 2px solid var(--itw24-ref-accent);
	outline-offset: 4px;
	border-radius: 8px;
}

.itw24-sp__track {
	display: contents;
}

/* ---- Slides / Cards ---- */
.itw24-sp__slide {
	flex: 0 0 clamp(280px, 78vw, 380px);
	width: clamp(280px, 78vw, 380px);
	max-width: 380px;
	scroll-snap-align: start;
	scroll-snap-stop: always;
	display: flex;
	flex-direction: column;
	border-radius: var(--itw24-ref-radius);
	overflow: hidden;
	background: var(--itw24-ref-ivory);
	border: 1px solid var(--itw24-ref-line);
	box-shadow: 0 16px 40px rgba(17, 24, 39, 0.08);
	transition: transform 0.4s var(--itw24-ref-ease), box-shadow 0.4s var(--itw24-ref-ease), border-color 0.4s var(--itw24-ref-ease);
	text-align: left;
	font: inherit;
	color: inherit;
	padding: 0;
	cursor: default;
}

.itw24-sp__slide:hover {
	transform: translateY(-6px);
	border-color: rgba(242, 105, 36, 0.4);
	box-shadow: 0 24px 48px rgba(17, 24, 39, 0.14);
}

.itw24-sp__slide:focus-within {
	border-color: rgba(242, 105, 36, 0.55);
}

.itw24-sp__browser {
	padding: 12px 14px 0;
	background: linear-gradient(180deg, #e8e4dc, var(--itw24-ref-ivory));
}

.itw24-sp__chrome {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 12px;
	background: var(--itw24-ref-paper);
	border: 1px solid var(--itw24-ref-line);
	border-bottom: 0;
	border-radius: 12px 12px 0 0;
}

.itw24-sp__dots {
	display: flex;
	gap: 5px;
	flex: none;
}

.itw24-sp__dots i {
	display: block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: rgba(17, 24, 39, 0.15);
}

.itw24-sp__dots i:first-child { background: #e57373; }
.itw24-sp__dots i:nth-child(2) { background: #ffb74d; }
.itw24-sp__dots i:nth-child(3) { background: #81c784; }

.itw24-sp__url {
	flex: 1;
	min-width: 0;
	padding: 6px 10px;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 500;
	color: var(--itw24-ref-muted);
	background: var(--itw24-ref-ivory);
	border: 1px solid var(--itw24-ref-line);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.itw24-sp__shot {
	position: relative;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	border: 1px solid var(--itw24-ref-line);
	border-top: 0;
	border-radius: 0 0 12px 12px;
	background: var(--itw24-ref-night-2);
}

.itw24-sp__shot img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.7s var(--itw24-ref-ease);
}

.itw24-sp__slide:hover .itw24-sp__shot img {
	transform: scale(1.04);
}

.itw24-sp__shot::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 40%, rgba(11, 13, 18, 0.55));
	pointer-events: none;
}

.itw24-sp__body {
	padding: 22px 22px 26px;
	display: grid;
	gap: 10px;
	flex: 1;
}

.itw24-sp__tag {
	width: fit-content;
	padding: 5px 11px;
	border-radius: 999px;
	font-size: 16px;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--itw24-ref-accent);
	background: rgba(242, 105, 36, 0.12);
	border: 1px solid rgba(242, 105, 36, 0.25);
	line-height: 1.2;
}

.itw24-sp__card-title {
	font-size: 22px;
	font-weight: 600;
	letter-spacing: -0.02em;
	line-height: 1.25;
	color: var(--itw24-ref-ink);
}

.itw24-sp__card-desc {
	font-size: 16px;
	font-weight: 500;
	line-height: 1.5;
	color: var(--itw24-ref-muted);
}

.itw24-sp__link {
	margin-top: auto;
	padding-top: 8px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 16px;
	font-weight: 700;
	color: var(--itw24-ref-ink);
	text-decoration: none;
}

.itw24-sp__link span {
	display: inline-block;
	transition: transform 0.35s var(--itw24-ref-ease);
}

.itw24-sp__slide:hover .itw24-sp__link {
	color: var(--itw24-ref-accent);
}

.itw24-sp__slide:hover .itw24-sp__link span {
	transform: translate(3px, -3px);
}

/* ---- CTA slide (same light card design as project slides) ---- */
.itw24-sp__slide--cta {
	/* inherits .itw24-sp__slide ivory card look */
	color: var(--itw24-ref-ink);
}

.itw24-sp__shot--cta {
	display: grid;
	place-items: center;
	background:
		radial-gradient(circle at 30% 20%, rgba(242, 105, 36, 0.18), transparent 55%),
		linear-gradient(180deg, #ebe6dc, var(--itw24-ref-ivory));
}

.itw24-sp__shot--cta::after {
	background: linear-gradient(180deg, transparent 50%, rgba(17, 24, 39, 0.08));
}

.itw24-sp__shot-label {
	position: relative;
	z-index: 1;
	font-size: 18px;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--itw24-ref-ink);
	padding: 12px 18px;
	border-radius: 999px;
	background: rgba(255, 252, 248, 0.9);
	border: 1px solid var(--itw24-ref-line);
}

/* Keep old class as alias to project link style */
.itw24-sp__cta-btn {
	margin-top: auto;
	padding-top: 8px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 0;
	font-size: 16px;
	font-weight: 700;
	color: var(--itw24-ref-ink);
	text-decoration: none;
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	outline: none;
}

.itw24-sp__cta-btn span {
	display: inline-block;
	transition: transform 0.35s var(--itw24-ref-ease);
}

.itw24-sp__slide--cta:hover .itw24-sp__cta-btn {
	color: var(--itw24-ref-accent);
	background: transparent;
	border: 0;
	outline: none;
	box-shadow: none;
}

.itw24-sp__slide--cta:hover .itw24-sp__cta-btn span {
	transform: translate(3px, -3px);
}

/* ---- Progress dots ---- */
.itw24-sp__progress {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 8px;
	min-height: 12px;
}

.itw24-sp__progress button,
.itw24-sp__progress [type="button"] {
	width: 8px;
	height: 8px;
	min-width: 8px;
	min-height: 8px;
	padding: 0;
	border: 0 !important;
	border-radius: 999px;
	background: rgba(17, 24, 39, 0.18) !important;
	background-image: none !important;
	color: transparent !important;
	cursor: pointer;
	display: inline-block;
	outline: none !important;
	box-shadow: none !important;
	transform: none !important;
	transition: width 0.3s var(--itw24-ref-ease), background-color 0.3s var(--itw24-ref-ease);
}

.itw24-sp__progress button:hover,
.itw24-sp__progress button:focus,
.itw24-sp__progress button:focus-visible,
.itw24-sp__progress [type="button"]:hover,
.itw24-sp__progress [type="button"]:focus {
	outline: none !important;
	box-shadow: none !important;
	border: 0 !important;
	transform: none !important;
	background: rgba(242, 105, 36, 0.45) !important;
	color: transparent !important;
}

.itw24-sp__progress button[aria-current="true"] {
	width: 32px;
	background: var(--itw24-ref-accent) !important;
}

/* ---- Footer ---- */
.itw24-sp__foot {
	display: flex;
	justify-content: center;
	margin-top: 28px;
}

.itw24-sp__footer-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0 28px;
	border-radius: 999px;
	background: transparent;
	color: var(--itw24-ref-ink);
	border: 1px solid var(--itw24-ref-ink);
	font-size: 16px;
	font-weight: 700;
	text-decoration: none;
	transition: background 0.3s var(--itw24-ref-ease), color 0.3s var(--itw24-ref-ease), border-color 0.3s var(--itw24-ref-ease);
}

.itw24-sp__footer-cta:hover,
.itw24-sp__footer-cta:focus,
.itw24-sp__footer-cta:focus-visible {
	background: var(--itw24-ref-accent);
	border-color: var(--itw24-ref-accent);
	color: #fff;
	outline: none !important;
	box-shadow: none !important;
}

/* ---- Grid fallback ---- */
.itw24-sp__track--grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.itw24-sp__track--grid .itw24-sp__slide {
	flex: none;
	width: auto;
	max-width: none;
}

/* ---- Modal (optional) ---- */
.itw24-sp-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: none;
	place-items: center;
	padding: 24px;
	background: rgba(17, 24, 39, 0.55);
	backdrop-filter: blur(8px);
}

.itw24-sp-modal.is-open {
	display: grid;
}

.itw24-sp-modal__dialog {
	width: min(980px, 100%);
	max-height: min(90vh, 860px);
	overflow: auto;
	border-radius: 24px;
	background: var(--itw24-ref-paper);
	box-shadow: 0 28px 80px rgba(17, 24, 39, 0.28);
	padding: 18px 18px 22px;
	display: grid;
	gap: 16px;
}

.itw24-sp-modal__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.itw24-sp-modal__tag {
	width: fit-content;
	padding: 4px 10px;
	border-radius: 999px;
	background: rgba(242, 105, 36, 0.12);
	color: var(--itw24-ref-accent);
	font-size: 14px;
	font-weight: 700;
}

.itw24-sp-modal__title {
	margin: 4px 0 0;
	font-size: 22px;
	font-weight: 700;
}

.itw24-sp-modal__close {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 1px solid var(--itw24-ref-line);
	background: #fff;
	display: grid;
	place-items: center;
	cursor: pointer;
	padding: 0;
}

.itw24-sp-modal__close svg {
	width: 18px;
	height: 18px;
}

.itw24-sp-modal__stage {
	border-radius: 16px;
	overflow: hidden;
	border: 1px solid var(--itw24-ref-line);
	background: #fff;
}

.itw24-sp-modal__img {
	width: 100%;
	height: min(52vh, 460px);
	object-fit: cover;
	object-position: top center;
	display: block;
}

.itw24-sp-modal__desc {
	margin: 0;
	font-size: 16px;
	color: var(--itw24-ref-muted);
}

.itw24-sp-modal__nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}

.itw24-sp-modal__btns {
	display: flex;
	gap: 10px;
}

.itw24-sp-modal__btn {
	min-height: 44px;
	padding: 0 16px;
	border-radius: 999px;
	border: 1px solid var(--itw24-ref-line);
	background: #fff;
	font-size: 16px;
	font-weight: 700;
	font-family: inherit;
	cursor: pointer;
}

.itw24-sp-modal__dots {
	display: flex;
	gap: 8px;
}

.itw24-sp-modal__dots button {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: rgba(17, 24, 39, 0.18);
	border: 0;
	padding: 0;
	cursor: pointer;
}

.itw24-sp-modal__dots button[aria-current="true"] {
	background: var(--itw24-ref-accent);
	width: 22px;
	border-radius: 999px;
}

.itw24-sp-modal__count {
	font-size: 16px;
	font-weight: 600;
	color: var(--itw24-ref-muted);
}

body.itw24-sp-lock {
	overflow: hidden;
}

/* ---- Responsive ---- */
@media (max-width: 767px) {
	.itw24-sp__head {
		grid-template-columns: 1fr;
	}

	.itw24-sp__nav {
		grid-column: 1;
		grid-row: auto;
		justify-content: flex-start;
	}

	.itw24-sp__slide {
		flex-basis: min(88vw, 340px);
		width: min(88vw, 340px);
	}

	.itw24-sp__track--grid {
		grid-template-columns: 1fr;
	}

	.itw24-sp__foot {
		margin-top: 20px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.itw24-sp__slide:hover {
		transform: none;
	}

	.itw24-sp__slide:hover .itw24-sp__shot img {
		transform: none;
	}
}
