/* artistravel Kurse – Karussell */

.atk-kurse {
	--atk-gap: 20px;
	--atk-cols: var(--atk-cols-desktop, 3);
	position: relative;
}

@media (max-width: 1024px) {
	.atk-kurse { --atk-cols: var(--atk-cols-tablet, 2); }
}

@media (max-width: 767px) {
	.atk-kurse { --atk-cols: var(--atk-cols-mobile, 1); --atk-gap: 14px; }
}

.atk-kurse .atk-track {
	display: flex;
	gap: var(--atk-gap);
	margin: 0;
	padding: 0;
	list-style: none;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.atk-kurse .atk-track::-webkit-scrollbar { display: none; }

/* Ziehen mit der Maus */
@media (hover: hover) and (pointer: fine) {
	.atk-kurse .atk-track { cursor: grab; }
}

.atk-kurse.is-dragging .atk-track {
	cursor: grabbing;
	scroll-snap-type: none;
	scroll-behavior: auto;
	user-select: none;
}

.atk-kurse.is-dragging .atk-card { pointer-events: none; }

.atk-kurse .atk-item {
	display: flex;
	flex: 0 0 calc((100% - (var(--atk-cols) - 1) * var(--atk-gap)) / var(--atk-cols));
	min-width: 0;
	margin: 0;
	padding: 0;
	scroll-snap-align: start;
}

.atk-kurse .atk-item::before { content: none; }

.atk-kurse .atk-card,
.atk-kurse .atk-card:hover,
.atk-kurse .atk-card:focus,
.atk-kurse .atk-card:visited {
	color: #fff;
	text-decoration: none;
}

.atk-kurse .atk-card {
	display: flex;
	flex-direction: column;
	width: 100%;
	background: var(--atk-color, #1F71C5);
	overflow: hidden;
}

.atk-kurse .atk-card__media {
	display: block;
	aspect-ratio: 15 / 8;
	overflow: hidden;
	background: #f2f2f2;
}

.atk-kurse .atk-card__media img {
	display: block;
	width: 100%;
	max-width: none;
	height: 100%;
	object-fit: cover;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	transition: transform 0.5s ease;
}

.atk-kurse a.atk-card:hover .atk-card__media img,
.atk-kurse a.atk-card:focus-visible .atk-card__media img {
	transform: scale(1.04);
}

.atk-kurse a.atk-card:focus-visible {
	outline: 3px solid currentColor;
	outline-offset: -6px;
}

.atk-kurse .atk-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 0.7em 1em 0.95em;
	font-size: clamp(1rem, 0.7rem + 0.55vw, 1.2rem);
	line-height: 1.3;
}

/* Schrift wächst mit der Kartenbreite, damit „09. November 2026, 18:45 - 21:00 Uhr“ immer in eine Zeile passt. */
@supports (font-size: 1cqi) {
	.atk-kurse .atk-item { container-type: inline-size; }
	.atk-kurse .atk-card__body { font-size: clamp(0.9rem, 5.1cqi, 1.25rem); }
}

/* Jede Zeile einzeilig wie im Design; zu lange Texte enden mit „…“. */
.atk-kurse .atk-card__body > span {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Datum/Uhrzeit nie abschneiden, notfalls umbrechen. */
.atk-kurse .atk-card__body > .atk-card__date { white-space: normal; }

/* Pfeile */

.atk-kurse .atk-nav {
	position: absolute;
	top: 0;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	color: #222;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
	cursor: pointer;
	/* Vertikal mittig auf den Bildern. */
	transform: translateY(calc(var(--atk-media-height, 160px) / 2 - 50%));
	transition: opacity 0.2s ease, background-color 0.2s ease;
}

.atk-kurse .atk-nav:hover,
.atk-kurse .atk-nav:focus-visible { background: #fff; }

.atk-kurse .atk-nav[hidden] { display: none; }

.atk-kurse .atk-nav:disabled {
	opacity: 0;
	pointer-events: none;
}

.atk-kurse .atk-nav--prev { left: 10px; }
.atk-kurse .atk-nav--next { right: 10px; }

.atk-kurse .atk-nav svg {
	width: 22px;
	height: 22px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.5;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* Punkte (Stil wie beim Elementor-Karussell) */

.atk-kurse .atk-dots {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	margin-top: 14px;
}

.atk-kurse .atk-dots[hidden] { display: none; }

.atk-kurse .atk-dot {
	/* Großzügige Klickfläche, sichtbarer Punkt per ::before. */
	display: block;
	width: 22px;
	height: 22px;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
	cursor: pointer;
}

.atk-kurse .atk-dot::before {
	content: "";
	display: block;
	width: 8px;
	height: 8px;
	margin: 7px;
	border-radius: 50%;
	background: #000;
	opacity: 0.2;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.atk-kurse .atk-dot:hover::before { opacity: 0.45; }

/* Mobil: ein Punkt pro Kurs, daher enger, damit sie in eine Reihe passen. */
@media (max-width: 767px) {
	.atk-kurse .atk-dot { width: 15px; }
	.atk-kurse .atk-dot::before { width: 7px; height: 7px; margin: 7px 4px; }
}

.atk-kurse .atk-dot.is-active::before {
	opacity: 1;
	transform: scale(1.15);
}

.atk-kurse .atk-dot:focus-visible {
	outline: 2px solid #000;
	outline-offset: -2px;
	border-radius: 50%;
}

@media (prefers-reduced-motion: reduce) {
	.atk-kurse .atk-track { scroll-behavior: auto; }
	.atk-kurse .atk-card__media img { transition: none; }
}
