/* Thomas Krause — Splide-Karussell Styling (2026-06-27)
   ------------------------------------------------------------
   Eigener Namespace .tk-splide => keine Kollision mit dem alten
   .tk-carousel-CSS-Wust. Wenn Splide aktiv ist, blendet es das
   alte Marquee-Markup eh aus (car.innerHTML wird ersetzt).
*/

/* Wrapper: Rand-Padding, damit Pfeile Platz haben */
.tk-carousel .tk-splide {
  width: 100%;
  margin: 0 auto;
  padding: 0 56px;
  box-sizing: border-box;
}

.tk-splide .splide__track {
  border-radius: 0;
}

/* Slide: feste Höhe kommt von Splide (fixedHeight). Bild komplett
   sichtbar via contain — Zeichnungen werden NICHT abgeschnitten. */
.tk-splide .splide__slide {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f4f5f7;
  border-radius: 0;
  overflow: hidden;
}

.tk-splide .splide__slide img {
  width: auto;
  height: 100%;
  max-width: 100%;
  max-height: 100%;      /* Bild darf NIE höher als der Slot werden */
  object-fit: contain;
  display: block;
  border-radius: 0;
}

/* Kein Scale auf is-active: jede Vergrößerung würde das Bild über
   den Slot-Rand schieben (oben/unten abgeschnitten). Alle Slides
   bleiben exakt gleich hoch und vollständig sichtbar. */

/* ---- Pfeile: Navy, dezent ---- */
.tk-splide .splide__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: #14233b;       /* Navy */
  opacity: 1;
  border-radius: 50%;
  box-shadow: 0 6px 18px rgba(20,35,59,.22);
  transition: background .2s ease, transform .2s ease;
}
.tk-splide .splide__arrow:hover {
  background: #1f3556;
  transform: translateY(-50%) scale(1.06);
}
/* Text-Chevrons wie das urspruengliche Karussell. SVG ausblenden.
   Der Button ist flex+center => Chevron sitzt ohne margin garantiert
   mittig (kein margin-Hack mehr, der es fueher verschoben hat). */
.tk-splide .splide__arrow svg { display: none; }
.tk-splide .splide__arrow::before {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 27px;
  line-height: 1;
  color: #fff;
}
.tk-splide .splide__arrow--prev::before { content: '\2039'; } /* ‹ */
.tk-splide .splide__arrow--next::before { content: '\203A'; } /* › */

/* Pfeile deutlich nach innen — naeher zusammen, mehr mittig */
.tk-splide .splide__arrow--prev { left: 16%; }
.tk-splide .splide__arrow--next { right: 16%; }
.tk-splide .splide__arrow:disabled { opacity: .4; }

@media (max-width: 1024px) {
  .tk-carousel .tk-splide { padding: 0 40px; }
  .tk-splide .splide__arrow { width: 38px; height: 38px; }
}
@media (max-width: 640px) {
  .tk-carousel .tk-splide { padding: 0 30px; }
  .tk-splide .splide__arrow { width: 32px; height: 32px; }
}
