/* ==============================================
   CAREKOM — Slider + Global Styles
   Datei: carekom-slider.css
   Version: 1.2
   ============================================== */

/* ── Google Fonts (NUR für lokalen Test)
   Vor Launch durch OMGF Plugin ersetzen! ───── */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400&family=Geologica:wght@700&display=swap');


/* ══════════════════════════════════════════════
   HIGHLIGHT ANIMATION
══════════════════════════════════════════════ */
.ck-highlight {
  display: inline;
  background-image: linear-gradient(#FFB25C, #FFB25C);
  background-size: 0% 25%;
  background-repeat: no-repeat;
  background-position: 0% 88%;
  padding-bottom: 2px;
}


/* ══════════════════════════════════════════════
   SLIDER WRAP
══════════════════════════════════════════════ */
.ck-slider-wrap {
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}


/* ══════════════════════════════════════════════
   SLIDER CONTAINER
══════════════════════════════════════════════ */
.ck-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111;
  overflow: hidden;
  border-radius: 0;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}


/* ══════════════════════════════════════════════
   SCENES
══════════════════════════════════════════════ */
.ck-scene {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.ck-scene.is-active {
  opacity: 1;
}

.ck-scene__img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  transform: scale(1);
  transition: none;
  will-change: auto;
}

.ck-scene__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.45) 0%,
    rgba(0, 0, 0, 0.15) 50%,
    transparent 100%
  );
}

.ck-scene__label {
  position: absolute;
  inset: 0;
  padding: 0 clamp(32px, 6vw, 80px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  z-index: 2;
}

.ck-scene__count {
  font-family: 'Sora', sans-serif;
  font-size: clamp(13px, 1.5vw, 22px);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1;
  margin: 0;
  padding: 0;
}

.ck-scene__title {
  font-family: 'Geologica', sans-serif;
  font-size: clamp(22px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.038;
  letter-spacing: -0.01em;
  color: #ffffff;
  margin: 0;
  padding: 0;
  max-width: 50%;
}

.ck-scene__sub {
  display: none;
}


/* ══════════════════════════════════════════════
   VIDEO TRANSITION LAYER
══════════════════════════════════════════════ */
.ck-vtrans {
  position: absolute;
  inset: 0;
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  background: transparent;
  transition: none;
}
.ck-vtrans.is-playing {
  opacity: 1;
  pointer-events: all;
}
.ck-vtrans video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}


/* ══════════════════════════════════════════════
   AUTOPLAY RING
══════════════════════════════════════════════ */
.ck-ap-ring {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 20;
  width: 40px;
  height: 40px;
}
.ck-ap-ring svg {
  position: absolute;
  inset: 0;
  transform: rotate(-90deg);
}
.ck-ap-ring__track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.2);
  stroke-width: 2.5;
}
.ck-ap-ring__prog {
  fill: none;
  stroke: #E85D24;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  will-change: stroke-dashoffset;
}
.ck-ap-btn {
  position: absolute;
  inset: 5px;
  background: rgba(0, 0, 0, 0.35);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  font-size: 14px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: background 0.2s;
}
.ck-ap-btn:hover {
  background: rgba(232, 93, 36, 0.5);
}


/* ══════════════════════════════════════════════
   DOTS NAVIGATION
══════════════════════════════════════════════ */
.ck-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 0 4px;
}
.ck-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.3s ease, width 0.3s ease, border-radius 0.3s ease;
  border: none;
  padding: 0;
}
.ck-dot:hover:not(.is-active) {
  background: #999;
}
.ck-dot.is-active {
  background: #E85D24;
  width: 24px;
  border-radius: 4px;
}


/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .ck-scene__title {
    max-width: 65%;
  }
}

@media (max-width: 768px) {
  .ck-slider {
    aspect-ratio: 4 / 3;
  }
  .ck-scene__label {
    padding: 0 clamp(20px, 5vw, 40px);
  }
  .ck-scene__title {
    max-width: 80%;
    line-height: 1.1;
  }
  .ck-ap-ring {
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
  }
  .ck-ap-btn {
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .ck-scene__title {
    max-width: 95%;
  }
  .ck-scene__label {
    gap: 8px;
  }
}


/* ══════════════════════════════════════════════
   REDUCED MOTION
══════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .ck-scene {
    transition: opacity 0.1s ease;
  }
}