/* Wanduhren – Bilderkarussell (ergänzt das bestehende Dart-Konfigurator-Styling) */

.clock-carousel {
	position: relative;
	overflow: hidden;
	background: var(--sand-100, #f6f1e8);
	padding: clamp(28px, 5vw, 56px) 0 clamp(20px, 4vw, 40px);
}

.clock-carousel__viewport {
	position: relative;
	height: clamp(320px, 44vw, 520px);
	max-width: 900px;
	margin: 0 auto;
}

.clock-carousel__track {
	position: relative;
	height: 100%;
}

/* Polaroid-Karte */
.clock-carousel__slide {
	position: absolute;
	top: 50%;
	left: clamp(8px, 4vw, 48px);
	width: min(460px, 68%);
	margin: 0;
	background: #fff;
	padding: 12px 12px 14px;
	border-radius: 3px;
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18), 0 2px 6px rgba(0, 0, 0, 0.1);
	transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.6s ease, box-shadow 0.3s ease;
	will-change: transform;
}

.clock-carousel__slide img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	background: #eee;
}

/* Text liegt innerhalb des Polaroids unter dem Bild */
.clock-carousel__slide figcaption {
	padding: 12px 6px 4px;
	color: #333;
	font-size: 15px;
	font-weight: 500;
	font-style: italic;
	text-align: center;
}

/* Positionen im Stapel: aktiv vorne, weitere rechts aufgefächert */
.clock-carousel__slide[data-pos="0"] {
	transform: translateY(-50%) rotate(-1.6deg);
	z-index: 5;
}

.clock-carousel__slide[data-pos="1"] {
	transform: translate(58%, -50%) rotate(3.5deg) scale(0.94);
	z-index: 4;
	cursor: pointer;
}

.clock-carousel__slide[data-pos="2"] {
	transform: translate(74%, -50%) rotate(7deg) scale(0.9);
	z-index: 3;
	cursor: pointer;
}

.clock-carousel__slide[data-pos="3"] {
	transform: translate(86%, -50%) rotate(10deg) scale(0.86);
	z-index: 2;
	cursor: pointer;
}

.clock-carousel__slide[data-pos="hidden"] {
	transform: translate(92%, -50%) rotate(12deg) scale(0.84);
	z-index: 1;
	opacity: 0;
	pointer-events: none;
}

.clock-carousel__slide[data-pos="1"]:hover,
.clock-carousel__slide[data-pos="2"]:hover,
.clock-carousel__slide[data-pos="3"]:hover {
	box-shadow: 0 14px 34px rgba(0, 0, 0, 0.26), 0 3px 8px rgba(0, 0, 0, 0.14);
}

.clock-carousel__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.92);
	color: #1a1a1a;
	cursor: pointer;
	display: grid;
	place-items: center;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
	z-index: 10;
}

.clock-carousel__nav svg { width: 22px; height: 22px; }
.clock-carousel__nav:hover { background: #fff; }
.clock-carousel__nav--prev { left: 16px; }
.clock-carousel__nav--next { right: 16px; }

.clock-carousel__dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	padding-top: clamp(18px, 3vw, 28px);
}

.clock-carousel__dot {
	width: 9px;
	height: 9px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.25);
	cursor: pointer;
}

.clock-carousel__dot.is-active {
	background: #1a1a1a;
	transform: scale(1.25);
}

@media (max-width: 640px) {
	.clock-carousel__viewport { height: clamp(260px, 72vw, 380px); }
	.clock-carousel__slide { width: 76%; padding: 8px 8px 10px; }
	.clock-carousel__slide[data-pos="1"] { transform: translate(38%, -50%) rotate(3.5deg) scale(0.92); }
	.clock-carousel__slide[data-pos="2"] { transform: translate(48%, -50%) rotate(6.5deg) scale(0.87); }
	.clock-carousel__slide[data-pos="3"] { transform: translate(56%, -50%) rotate(9deg) scale(0.83); }
	.clock-carousel__slide[data-pos="hidden"] { transform: translate(60%, -50%) rotate(11deg) scale(0.8); }
	.clock-carousel__nav { width: 36px; height: 36px; }
}

/* ---------------- Ziffernblätter (Punkt 3) ---------------- */
.clock-dials {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
	gap: 10px;
	margin-bottom: 10px;
}

.clock-dial {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 8px 6px;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 12px;
	background: #fff;
	cursor: pointer;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.clock-dial:hover { border-color: rgba(0, 0, 0, 0.3); }

.clock-dial.is-active {
	border-color: currentColor;
	box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.12);
}

.clock-dial.is-extra { display: none; }
.clock-dials.is-expanded .clock-dial.is-extra { display: flex; }

.clock-dial__thumb {
	display: grid;
	place-items: center;
	width: 100%;
	aspect-ratio: 1 / 1;
	border-radius: 8px;
	background: #f2efe9;
	overflow: hidden;
}

.clock-dial__thumb img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.clock-dial__thumb--none { color: #8b8b8b; font-size: 22px; }

.clock-dial__label {
	font-size: 12px;
	line-height: 1.2;
	text-align: center;
	word-break: break-word;
}

.clock-dials__toggle {
	border: 0;
	background: none;
	padding: 4px 0;
	font-weight: 600;
	text-decoration: underline;
	cursor: pointer;
}

.clock-dial-opts {
	display: grid;
	gap: 10px;
	margin: 14px 0;
}

.clock-dial-opt {
	display: grid;
	grid-template-columns: 92px 1fr auto;
	align-items: center;
	gap: 10px;
	font-size: 14px;
}

.clock-dial-opt input[type="range"] { width: 100%; accent-color: var(--wood-500); }
.clock-dial-opt input[type="color"] {
	width: 100%;
	height: 32px;
	padding: 0;
	border: 1px solid rgba(0, 0, 0, 0.15);
	border-radius: 8px;
	background: none;
	cursor: pointer;
}

.dart-drop--slim { padding: 14px; text-align: center; }

/* Staffelpreise & Mengenauswahl auf volle Kartenbreite */
.clock-config .dart-tiers {
	grid-template-columns: repeat(3, 1fr);
	width: 100%;
}
.clock-config .dart-qty,
.clock-config .dart-qty__control,
.clock-config .dart-qty__presets {
	width: 100%;
}
.clock-config .dart-qty__presets {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
}
.clock-config .dart-qty__preset {
	width: 100%;
	text-align: center;
}

/* ---------- Wanduhren: Vorschau auf Handys ---------- */
@media (max-width: 860px) {
	.clock-config .dart-preview-card { padding: 16px; }
	.clock-config .dart-preview {
		width: 100%;
		max-width: 100%;
		min-height: 0;
		height: auto;
		aspect-ratio: 1 / 1;
		touch-action: none;
		overscroll-behavior: contain;
	}
	.clock-config .dart-preview__canvas {
		width: 100% !important;
		height: 100% !important;
		max-width: 100%;
		touch-action: none;
	}
	.clock-config .dart-preview-hint { flex: 1 1 100%; }
	.clock-config .dart-preview-tools { justify-content: center; gap: 8px; }
	.clock-config .dart-tool { width: 40px; height: 40px; }
	.clock-config .dart-tool svg { width: 19px; height: 19px; }
	.clock-config .dart-tool--reset { width: auto; height: 40px; padding: 0 16px; }
	.clock-config .dart-zoom input[type="range"] { min-width: 0; height: 28px; }
	.clock-config .clock-dial-opts { grid-template-columns: 1fr; }
}

/* Wanduhren: Ziffernblatt nur im Canvas zeichnen – keine zweite Ansicht in der Vorschau */
.clock-config .dart-preview > [data-preview-dial] {
	display: none !important;
}
