/* ==========================================================================
   KITT-STYLE LED SLIDER
   Animated Background, Text, Buttons + Running LED Border
   ========================================================================== */

.opt-kit-slider {
	position: relative;
	width: 100%;
	overflow: hidden;
	background: linear-gradient(135deg, #0a1428 0%, #0d2147 50%, #0a1428 100%);
	display: flex;
	align-items: center;
	justify-content: center;
}

/* ===== BACKGROUND ANIMATION ===== */

.opt-kit-slider__bg {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 0;
	overflow: hidden;
}

/* Kein ::before / ::after overlay – kein Schleier über Content */
.opt-kit-slider__bg::before,
.opt-kit-slider__bg::after {
	content: none;
}

@keyframes kit-bg-shift {
	0%, 100% {
		background: 
			linear-gradient(
				45deg,
				rgba(10, 20, 40, 0.4) 0%,
				rgba(13, 33, 71, 0.6) 50%,
				rgba(10, 20, 40, 0.4) 100%
			);
	}
	50% {
		background: 
			linear-gradient(
				-45deg,
				rgba(10, 20, 40, 0.5) 0%,
				rgba(13, 33, 71, 0.7) 50%,
				rgba(10, 20, 40, 0.5) 100%
			);
	}
}

@keyframes kit-pulse {
	0%, 100% { opacity: 0.5; }
	50% { opacity: 1; }
}

/* ===== BG IMAGE (optional) ===== */

.opt-kit-slider__bg-image {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center;
	background-attachment: fixed;
	opacity: 0.15;
	z-index: 0;
}

/* ===== CONTENT CONTAINER ===== */

.opt-kit-slider__container {
	position: relative;
	z-index: 10;
	text-align: center;
	max-width: 900px;
	padding: 4rem;
	margin: 0 auto;
}

/* ===== LED BORDER (Running Light) ===== */

.opt-kit-slider__led-border {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 2;
}

.opt-kit-slider__led-top,
.opt-kit-slider__led-bottom,
.opt-kit-slider__led-left,
.opt-kit-slider__led-right {
	position: absolute;
	background: linear-gradient(90deg, 
		transparent 0%,
		#c9a84c 25%,
		#e8c97a 50%,
		#c9a84c 75%,
		transparent 100%
	);
	box-shadow: 0 0 15px rgba(201, 168, 76, 0.8),
	            0 0 30px rgba(201, 168, 76, 0.4),
	            inset 0 0 10px rgba(232, 201, 122, 0.6);
}

/* Top LED */
.opt-kit-slider__led-top {
	top: 0;
	left: 0;
	width: 100%;
	height: 1px;
	animation: kit-led-run-right 3s linear infinite;
}

/* Bottom LED */
.opt-kit-slider__led-bottom {
	bottom: 0;
	right: 0;
	width: 100%;
	height: 1px;
	animation: kit-led-run-left 3s linear infinite;
}

/* Left LED */
.opt-kit-slider__led-left {
	top: 0;
	left: 0;
	width: 1px;
	height: 100%;
	animation: kit-led-run-down 3s linear infinite;
}

/* Right LED */
.opt-kit-slider__led-right {
	bottom: 0;
	right: 0;
	width: 1px;
	height: 100%;
	animation: kit-led-run-up 3s linear infinite;
}

@keyframes kit-led-run-right {
	0% {
		left: -200px;
		opacity: 0;
	}
	10% {
		opacity: 1;
	}
	90% {
		opacity: 1;
	}
	100% {
		left: calc(100% + 200px);
		opacity: 0;
	}
}

@keyframes kit-led-run-left {
	0% {
		right: -200px;
		opacity: 0;
	}
	10% {
		opacity: 1;
	}
	90% {
		opacity: 1;
	}
	100% {
		right: calc(100% + 200px);
		opacity: 0;
	}
}

@keyframes kit-led-run-down {
	0% {
		top: -200px;
		opacity: 0;
	}
	10% {
		opacity: 1;
	}
	90% {
		opacity: 1;
	}
	100% {
		top: calc(100% + 200px);
		opacity: 0;
	}
}

@keyframes kit-led-run-up {
	0% {
		bottom: -200px;
		opacity: 0;
	}
	10% {
		opacity: 1;
	}
	90% {
		opacity: 1;
	}
	100% {
		bottom: calc(100% + 200px);
		opacity: 0;
	}
}

/* ===== TEXT ANIMATIONS ===== */

.opt-kit-slider__badge {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.5rem 1.2rem;
	border: 1px solid rgba(201, 168, 76, 0.6);
	border-radius: 50px;
	font-family: var(--opt-font-sans);
	font-size: 0.75rem;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--opt-gold);
	margin-bottom: 1.5rem;
	animation: kit-badge-glow 2s ease-in-out infinite,
	           kit-fade-in 1s ease-out;
	backdrop-filter: blur(10px);
	background: rgba(13, 31, 13, 0.3);
}

.opt-kit-slider__badge::before {
	content: '';
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #c9a84c;
	box-shadow: 0 0 10px #c9a84c;
	animation: kit-pulse-dot 1.5s ease-in-out infinite;
}

@keyframes kit-badge-glow {
	0%, 100% {
		border-color: rgba(201, 168, 76, 0.3);
		box-shadow: 0 0 10px rgba(201, 168, 76, 0.3);
	}
	50% {
		border-color: rgba(201, 168, 76, 0.8);
		box-shadow: 0 0 20px rgba(201, 168, 76, 0.8),
		            inset 0 0 15px rgba(201, 168, 76, 0.2);
	}
}

@keyframes kit-pulse-dot {
	0%, 100% {
		transform: scale(1);
		opacity: 1;
	}
	50% {
		transform: scale(1.2);
		opacity: 0.7;
	}
}

@keyframes kit-fade-in {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* ===== HEADING ANIMATIONS ===== */

.opt-kit-slider__heading {
	font-family: var(--opt-font-serif);
	font-size: clamp(2.5rem, 6vw, 4.5rem);
	font-weight: 300;
	line-height: 1.15;
	color: var(--opt-cream);
	margin-bottom: 1.75rem;
	animation: kit-text-slide-up 1s ease-out 0.2s backwards;
	letter-spacing: 0.02em;
	word-break: break-word;
}

.opt-kit-slider__heading em {
	font-style: italic;
	color: var(--opt-gold);
	animation: kit-text-glow 2s ease-in-out infinite;
	text-shadow: 0 0 20px rgba(201, 168, 76, 0.3);
	display: inline-block;
}

@keyframes kit-text-slide-up {
	from {
		opacity: 0;
		transform: translateY(40px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes kit-text-glow {
	0%, 100% {
		color: var(--opt-gold);
		text-shadow: 0 0 10px rgba(201, 168, 76, 0.4);
	}
	50% {
		color: var(--opt-gold-light);
		text-shadow: 0 0 25px rgba(201, 168, 76, 0.8),
		             0 0 40px rgba(201, 168, 76, 0.4);
	}
}

/* ===== SUBTEXT ANIMATIONS ===== */

.opt-kit-slider__subtext {
	font-size: 1.05rem;
	color: rgba(245, 240, 232, 0.82);
	line-height: 1.85;
	max-width: 520px;
	margin: 0 0 2rem;
	animation: kit-text-slide-up 1s ease-out 0.4s backwards;
}

/* ===== BUTTON ANIMATIONS ===== */

.opt-kit-slider__ctas {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1.5rem;
	flex-wrap: wrap;
	animation: kit-text-slide-up 1s ease-out 0.6s backwards;
}

.opt-kit-btn {
	position: relative;
	padding: 1.1rem 2.8rem;
	font-family: var(--opt-font-sans);
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	border: 2px solid;
	border-radius: 0;
	cursor: pointer;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
	overflow: hidden;
	outline: none;
}

/* ===== PRIMARY BUTTON (LED Effect) ===== */

.opt-kit-btn--primary {
	background: linear-gradient(135deg, #c9a84c, #e8c97a);
	color: var(--opt-green-darkest);
	border-color: #c9a84c;
	box-shadow: 
		0 0 0 0 rgba(201, 168, 76, 0.7),
		0 0 20px rgba(201, 168, 76, 0.5);
	animation: kit-btn-primary-glow 2s ease-in-out infinite,
	           kit-text-slide-up 1s ease-out 0.6s backwards;
}

.opt-kit-btn--primary::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, 
		transparent,
		rgba(255, 255, 255, 0.3),
		transparent
	);
	animation: kit-shine 3s infinite;
}

.opt-kit-btn--primary:hover {
	background: linear-gradient(135deg, #e8c97a, #c9a84c);
	transform: scale(1.08) translateY(-3px);
	box-shadow: 
		0 8px 30px rgba(201, 168, 76, 0.8),
		0 0 40px rgba(201, 168, 76, 0.6),
		inset 0 0 20px rgba(255, 255, 255, 0.2);
	color: var(--opt-green-darkest);
}

.opt-kit-btn--primary:active {
	transform: scale(0.98) translateY(0);
	box-shadow: 
		0 2px 10px rgba(201, 168, 76, 0.6),
		0 0 20px rgba(201, 168, 76, 0.4);
}

@keyframes kit-btn-primary-glow {
	0%, 100% {
		box-shadow: 
			0 0 10px rgba(201, 168, 76, 0.5),
			0 0 20px rgba(201, 168, 76, 0.3);
	}
	50% {
		box-shadow: 
			0 0 20px rgba(201, 168, 76, 0.8),
			0 0 40px rgba(201, 168, 76, 0.5),
			0 0 60px rgba(201, 168, 76, 0.3);
	}
}

@keyframes kit-shine {
	0% {
		left: -100%;
	}
	50% {
		left: 100%;
	}
	100% {
		left: 100%;
	}
}

/* ===== OUTLINE BUTTON ===== */

.opt-kit-btn--outline {
	background: transparent;
	color: var(--opt-cream);
	border-color: rgba(201, 168, 76, 0.6);
	box-shadow: inset 0 0 15px rgba(201, 168, 76, 0.1);
	animation: kit-btn-outline-glow 2s ease-in-out infinite,
	           kit-text-slide-up 1s ease-out 0.6s backwards;
	position: relative;
}

.opt-kit-btn--outline::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 0;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(201, 168, 76, 0.1), transparent);
	animation: kit-outline-sweep 2s ease-in-out infinite;
}

.opt-kit-btn--outline:hover {
	border-color: var(--opt-gold);
	color: var(--opt-gold-light);
	background: rgba(201, 168, 76, 0.05);
	box-shadow: 
		inset 0 0 20px rgba(201, 168, 76, 0.2),
		0 0 20px rgba(201, 168, 76, 0.4);
	transform: scale(1.05);
}

@keyframes kit-btn-outline-glow {
	0%, 100% {
		border-color: rgba(201, 168, 76, 0.3);
		box-shadow: inset 0 0 10px rgba(201, 168, 76, 0.05);
	}
	50% {
		border-color: rgba(201, 168, 76, 0.8);
		box-shadow: inset 0 0 20px rgba(201, 168, 76, 0.2),
		            0 0 15px rgba(201, 168, 76, 0.3);
	}
}

@keyframes kit-outline-sweep {
	0% {
		left: -100%;
		width: 100%;
	}
	50% {
		left: 100%;
		width: 100%;
	}
	100% {
		left: 100%;
		width: 100%;
	}
}

/* ===== CTA NOTE ===== */

.opt-kit-slider__note {
	margin-top: 1rem;
	font-size: 0.75rem;
	color: rgba(201, 168, 76, 0.7);
	letter-spacing: 0.08em;
	animation: kit-text-slide-up 1s ease-out 0.8s backwards;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 768px) {
	.opt-kit-slider {
		min-height: 80vh;
		padding-top: 3rem;
	}

	.opt-kit-slider__container {
		padding: 2rem;
	}

	.opt-kit-slider__heading {
		font-size: clamp(1.8rem, 5vw, 3rem);
	}

	.opt-kit-slider__ctas {
		flex-direction: column;
		gap: 1rem;
	}

	.opt-kit-btn {
		width: 100%;
		justify-content: center;
	}

	.opt-kit-slider__led-top,
	.opt-kit-slider__led-bottom,
	.opt-kit-slider__led-left,
	.opt-kit-slider__led-right {
		display: none;
	}
}

/* ===== ACCESSIBILITY ===== */

@media (prefers-reduced-motion: reduce) {
	.opt-kit-slider__badge,
	.opt-kit-slider__heading,
	.opt-kit-slider__subtext,
	.opt-kit-slider__ctas,
	.opt-kit-btn {
		animation: none !important;
	}

	.opt-kit-btn--primary:hover,
	.opt-kit-btn--outline:hover {
		transform: none;
	}
}

/* ==========================================================================
   HERO - TWO COLUMN LAYOUT: Text LEFT | Portrait RIGHT
   ========================================================================== */

/* Replace old centered container with 2-column inner */
.opt-kit-slider__inner {
	position: relative;
	z-index: 10;
	display: grid;
	grid-template-columns: 55% 45%;
	align-items: center;
	width: 100%;
	max-width: 1300px;
	margin: 0 auto;
	padding: 1.5rem 8% 1.5rem;
	gap: 4rem;
	box-sizing: border-box;
}

/* ===== LEFT: TEXT CONTENT ===== */

.opt-kit-slider__content {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	text-align: left;
}

/* Override centered styles for the 2-col layout */
.opt-kit-slider__content .opt-kit-slider__badge {
	animation: kit-badge-glow 2s ease-in-out infinite,
	           kit-slide-in-left 0.8s ease-out;
}

.opt-kit-slider__content .opt-kit-slider__heading {
	text-align: left;
	animation: kit-slide-in-left 0.9s ease-out 0.1s both;
}

.opt-kit-slider__content .opt-kit-slider__subtext {
	text-align: left;
	animation: kit-slide-in-left 1s ease-out 0.2s both;
}

.opt-kit-slider__content .opt-kit-slider__ctas {
	justify-content: flex-start;
	animation: kit-slide-in-left 1.1s ease-out 0.3s both;
}

.opt-kit-slider__content .opt-kit-slider__note {
	animation: kit-slide-in-left 1.2s ease-out 0.4s both;
}

@keyframes kit-slide-in-left {
	from {
		opacity: 0;
		transform: translateX(-40px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

/* ===== RIGHT: PORTRAIT IMAGE ===== */

.opt-kit-slider__portrait {
	display: flex;
	align-items: flex-end;
	justify-content: center;
	height: 100%;
	position: relative;
	z-index: 11;

	/* Lazy-load slide-in from right — triggered by IntersectionObserver */
	opacity: 0;
	transform: translateX(80px);
	transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
	            transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.opt-kit-slider__portrait.is-visible {
	opacity: 1;
	transform: translateX(0);
}

.opt-kit-slider__portrait-img {
	width: 80%;   /* 20% kleiner */
	max-width: 544px;  /* 680 * 0.8 */
	height: auto;
	object-fit: contain;
	object-position: bottom center;
	display: block;
	filter:
		drop-shadow(-8px 12px 20px rgba(0, 0, 0, 0.7))
		drop-shadow(-2px 4px 8px rgba(0, 0, 0, 0.5))
		drop-shadow(4px -2px 15px rgba(201, 168, 76, 0.12));
	transform: perspective(1000px) rotateY(-3deg) rotateX(1deg);
	transition: transform 0.5s ease, filter 0.5s ease;
}

.opt-kit-slider__portrait:hover .opt-kit-slider__portrait-img {
	transform: perspective(1000px) rotateY(-1deg) rotateX(0deg) scale(1.02);
	filter:
		drop-shadow(-12px 18px 30px rgba(0, 0, 0, 0.75))
		drop-shadow(-3px 6px 12px rgba(0, 0, 0, 0.55))
		drop-shadow(6px -3px 20px rgba(201, 168, 76, 0.2));
}

/* Gold light effect under portrait */
.opt-kit-slider__portrait::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 60%;
	height: 120px;
	background: radial-gradient(
		ellipse at center bottom,
		rgba(201, 168, 76, 0.25) 0%,
		transparent 70%
	);
	pointer-events: none;
	z-index: -1;
}

/* ===== RESPONSIVE ===== */

/* ── 1200px ── */
@media (max-width: 1200px) {
	.opt-kit-slider__inner {
		grid-template-columns: 57% 43%;
		gap: 3rem;
		padding: 3.5rem 6% 3rem;
	}
	.opt-kit-slider__heading {
		font-size: clamp(2.2rem, 4vw, 3.5rem);
	}
}

/* ── 1024px ── */
@media (max-width: 1024px) {
	.opt-kit-slider__inner {
		grid-template-columns: 60% 40%;
		gap: 2rem;
		padding: 3rem 5% 2.5rem;
	}
	.opt-kit-slider__portrait-img {
		max-width: 256px;
	}
	.opt-kit-slider__heading {
		font-size: clamp(1.9rem, 4vw, 3rem);
	}
	.opt-kit-slider__subtext {
		font-size: 1rem;
	}
}

/* ── 768px: Tablet/Mobile ── */
@media (max-width: 768px) {
	.opt-kit-slider__inner {
		grid-template-columns: 1fr;
		padding: 3rem 7% 2.5rem;
		gap: 1.5rem;
	}
	.opt-kit-slider__portrait {
		display: none;
	}
	.opt-kit-slider__heading {
		font-size: clamp(1.8rem, 6vw, 2.6rem);
		line-height: 1.2;
	}
	.opt-kit-slider__subtext {
		font-size: .95rem;
		max-width: 100%;
	}
	.opt-kit-slider__ctas {
		flex-direction: column;
		align-items: flex-start;
		gap: .75rem;
		width: 100%;
	}
	.opt-kit-btn {
		width: 100%;
		justify-content: center;
	}
}

/* ── 480px ── */
@media (max-width: 480px) {
	.opt-kit-slider__inner {
		padding: 2.5rem 6% 2rem;
	}
	.opt-kit-slider__heading {
		font-size: clamp(1.6rem, 7vw, 2.1rem);
	}
	.opt-kit-slider__badge {
		font-size: .62rem;
		padding: .35rem .8rem;
		max-width: calc(100vw - 12%);
		white-space: normal;
		text-align: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	.opt-kit-slider__portrait {
		opacity: 1;
		transform: none;
		transition: none;
	}
}
