/*
 * sharie.ch – Digital Storytelling page (1426)
 * The "Ablauf" slider uses the Werdegang classes (cv-viewport / cv-track / cv-item)
 * and therefore werdegang.js + werdegang.css; the numbers (step-number) go on the line.
 */

/* ---- Fallstudie: fact boxes (class case-fact) on the orange-magenta gradient, no hover ---- */
.case-fact,
.case-fact:hover { transform: none !important; box-shadow: none !important; }
.case-fact h3,
.case-fact p { color: #2A0D35 !important; }
.case-fact p { opacity: 0.85; }

/* ---- Formate: cards with line icon (component "Format Karte" 2432) ----
   Same behaviour as "Fakten über mich": hover → icon turquoise, lines draw again. */
.format-card .fact-icon { transition: color 300ms ease, transform 300ms ease; }
.format-card:hover .fact-icon,
.format-card.is-active .fact-icon { color: #7CF2D4; transform: translate3d(0, -3px, 0); }
.format-card:hover .fact-icon svg *,
.format-card.is-active .fact-icon svg * { animation: fact-draw 1100ms cubic-bezier(.45, 0, .2, 1) both; }
@media (prefers-reduced-motion: reduce) {
  .format-card:hover .fact-icon svg *,
  .format-card.is-active .fact-icon svg * { animation: none; }
  .format-card .fact-icon { transform: none !important; }
}

/* Example link (class text-link, like "Mehr erfahren →" on the front page):
   only shown when the card has a link */
.format-card a.e-button-base:not([href]),
.format-card a.e-button-base[href=""],
.format-card a.e-button-base[href="#"],
.format-card button.e-button-base { display: none !important; }
.format-card a.e-button-base.text-link { background: none !important; padding: 0 !important; }

/* Format titles look like the "Fakten über mich" titles (class fact-value): orange, larger,
   turquoise on hover (mobile: card in the middle of the screen). */
.format-card h3 {
  color: #FF9E7A !important;
  font-size: 1.75rem !important;
  line-height: 1.15 !important;
  transition: color 300ms ease;
}
.format-card:hover h3,
.format-card.is-active h3 { color: #7CF2D4 !important; }
@media (max-width: 1024px) {
  .format-card h3 { font-size: 1.5rem !important; }
}

/* Ablauf: the timeline starts orange and turns turquoise (opposite of "Über mich");
   the colours themselves are mixed in werdegang.js */
#ablauf .cv-track { --cv-line-color: #FF9E7A; }

/* ---- Referenz: slider with the case studies (case-viewport > case-track > case-slide),
   arrows (built by case-slider.js) to the right of the title, like the «Ablauf» slider ---- */
.case-viewport { overflow: hidden; position: relative; transition: height 450ms cubic-bezier(.4, 0, .2, 1); }
.case-track { align-items: flex-start !important; gap: 48px !important; transition: transform 600ms cubic-bezier(.65, 0, .35, 1); will-change: transform; }
.case-slide { flex: 0 0 100% !important; min-width: 100%; }
.case-ready .case-slide > .e-heading-base:first-child,
.case-ready .case-slide > h2:first-child { padding-right: 132px; min-height: 48px; display: flex; align-items: center; }
.case-nav { position: absolute; top: 0; right: 0; display: flex; gap: 12px; z-index: 2; }
/* mobile: portrait trailers (4:5) */
@media (max-width: 767px) {
  .case-slide video { aspect-ratio: 4 / 5 !important; }
}
@media (prefers-reduced-motion: reduce) {
  .case-viewport, .case-track { transition: none; }
}

/* Front page «Leuchtturm»: one pair of arrows at the bottom right of the slider (case-slider.js),
   stays in place while the slides move */
.case-bottom .case-nav { top: auto; bottom: 0; right: 0; }
