/* Zitat-Slider - Bild links, blaue Flaeche rechts, Striche zum Blaettern
   unten in der Mitte. Masse aus dem Entwurf: beide Haelften gleich breit,
   Hoehe ca. 385px, Zitat 18px/1.45 weiss, Quelle 16px, ZEWO unten rechts.
   Mechanik: Bootstrap-4-Carousel aus dem Theme, Maus-Drag in Frontend.js. */

#content section.mantik-quotes,
.mantik-quotes { padding: 80px 0 0; margin: 0; }
/* Inhaltsbreite wie col-12 col-sm-10 im restlichen Inhalt */
.mantik-quotes__inner { width: 100%; margin: 0 auto; }
@media (min-width: 576px) { .mantik-quotes__inner { width: 83.3333%; } }

.mantik-quotes__carousel { position: relative; }

/* Feste Hoehe: so sind alle Bilder gleich gross zugeschnitten, egal wie
   lang das Zitat ist. Sehr lange Zitate bekommen im blauen Feld einen
   eigenen Scrollbereich. */
.mantik-quotes__row { display: flex; align-items: stretch; height: 480px; }
@media (min-width: 768px) and (max-width: 991px) { .mantik-quotes__row { height: 420px; } }
.mantik-quotes__media,
.mantik-quotes__panel { flex: 1 1 50%; min-width: 0; }

.mantik-quotes__media { position: relative; background: #f1f3f5; }
#content .mantik-quotes .mantik-quotes__media img,
.mantik-quotes .mantik-quotes__media img {
  /* !important gegen "section img { height: auto !important }" (mantik.css) */
  position: absolute; inset: 0; display: block;
  width: 100% !important; height: 100% !important; max-width: none; object-fit: cover;
}

.mantik-quotes__panel {
  display: flex; flex-direction: column; justify-content: space-between; gap: 2rem;
  padding: 2.5rem; background: #009fe3; color: #fff; overflow-y: auto;
}

#content .mantik-quotes .mantik-quotes__quote,
.mantik-quotes .mantik-quotes__quote { margin: 0; font-size: 1.125rem; line-height: 1.45; color: #fff; }
#content .mantik-quotes .mantik-quotes__quote p,
.mantik-quotes .mantik-quotes__quote p { margin: 0 0 1rem; font-size: 1.125rem; line-height: 1.45; color: #fff; }
#content .mantik-quotes .mantik-quotes__quote p:last-child,
.mantik-quotes .mantik-quotes__quote p:last-child { margin-bottom: 0; }
#content .mantik-quotes .mantik-quotes__author,
.mantik-quotes .mantik-quotes__author { margin-top: 1.25rem; font-size: 1rem; line-height: 1.5; color: #fff; }

.mantik-quotes__zewo {
  align-self: flex-end; display: inline-flex; align-items: center; gap: .6rem;
  font-size: .875rem; line-height: 1.25; font-weight: 500; color: #fff;
}
/* !important gegen "img { width: 100% }" (app.css) und
   "section img { height: auto !important }" (mantik.css) */
#content .mantik-quotes .mantik-quotes__zewo img,
.mantik-quotes .mantik-quotes__zewo img {
  display: block; width: 44px !important; height: 47px !important; max-width: none;
}

/* Striche zum Blaettern, mittig unter dem Block */
.mantik-quotes .mantik-quotes__dots {
  position: absolute; left: 0; right: 0; bottom: 18px; z-index: 2;
  display: flex; justify-content: center; align-items: center; gap: 8px;
  margin: 0; padding: 0; list-style: none;
}
.mantik-quotes .mantik-quotes__dots li {
  flex: 0 0 auto; box-sizing: content-box;
  width: 48px; height: 2px; margin: 0; padding: 0; border: 0; border-radius: 0;
  background: rgba(255, 255, 255, .5); opacity: 1; text-indent: 0; cursor: pointer;
  transition: background-color .2s ease;
}
.mantik-quotes .mantik-quotes__dots li.active { background: #fff; }

/* Klickflaechen zum Blaettern: links und rechts je 30 % der Breite,
   unsichtbar und ueber dem Slider. Die Striche liegen darueber (z-index). */
.mantik-quotes__zone {
  position: absolute; top: 0; bottom: 0; z-index: 2;
  width: 30%; padding: 0; margin: 0; border: 0; background: transparent;
  cursor: pointer; -webkit-appearance: none; appearance: none;
}
.mantik-quotes__zone--prev { left: 0; }
.mantik-quotes__zone--next { right: 0; }
.mantik-quotes__zone:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }

/* Maus-Drag (Frontend.js) */
.mantik-quotes__carousel.is-draggable .carousel-inner { cursor: grab; }
.mantik-quotes__carousel.is-dragging .carousel-inner { cursor: grabbing; user-select: none; }
.mantik-quotes__carousel.is-dragging a { pointer-events: none; }

/* Titel ueber dem Slider, Button darunter */
#content .mantik-quotes .mantik-quotes__title,
.mantik-quotes .mantik-quotes__title {
  margin: 0 0 2.5rem; font-size: 3rem; line-height: 1.2; font-weight: 500; color: #009fe3;
}
.mantik-quotes__cta { margin-top: 4rem; }
#content .mantik-quotes .mantik-quotes__title--cta,
.mantik-quotes .mantik-quotes__title--cta { margin-bottom: 1.5rem; }
#content .mantik-quotes .mantik-quotes__button,
.mantik-quotes .mantik-quotes__button {
  display: inline-flex; align-items: center; gap: .6rem; height: 46px; padding: 0 1.5rem;
  border-radius: 2rem; background: #009fe3; color: #fff; text-decoration: none;
  font-size: 1rem; line-height: 1.5; font-weight: 500; transition: background-color .2s ease;
}
#content .mantik-quotes .mantik-quotes__button:hover,
.mantik-quotes .mantik-quotes__button:hover { background: #0089c4; color: #fff; text-decoration: none; }
/* Herz schlaegt wie im Header-Button; beim Hover kraeftiger. */
.mantik-quotes__heart {
  flex: 0 0 auto; transform-origin: center;
  animation: mantik-quotes-heartbeat 5s ease-in-out infinite;
  animation-delay: 4s;
}
.mantik-quotes__button:hover .mantik-quotes__heart,
.mantik-quotes__button:focus .mantik-quotes__heart {
  animation: mantik-quotes-heartbeat 1.2s ease-in-out infinite;
  animation-delay: 0s;
}
@keyframes mantik-quotes-heartbeat {
  0%   { transform: scale(1); }
  4%   { transform: scale(1.15); }
  8%   { transform: scale(1); }
  12%  { transform: scale(1.3); }
  18%  { transform: scale(1); }
  100% { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .mantik-quotes__heart { animation: none !important; }
}

@media (max-width: 767px) {
  #content section.mantik-quotes, .mantik-quotes { padding: 48px 0 0; }
  .mantik-quotes__row { flex-direction: column; height: auto; }
  .mantik-quotes__media { aspect-ratio: 4 / 3; }
  .mantik-quotes__panel { overflow: visible; }
  .mantik-quotes__panel { padding: 1.5rem 1.25rem 2.5rem; gap: 1.5rem; }
  .mantik-quotes .mantik-quotes__dots li { width: 36px; }
  .mantik-quotes__cta { margin-top: 2rem; }
  #content .mantik-quotes .mantik-quotes__title,
  .mantik-quotes .mantik-quotes__title { font-size: 2rem; margin-bottom: 1.5rem; }
}
