/*
 * Vitrinen-Karte (nach der Vorlage „Showcase Card“): Bild mit Titel über einem stufenweise
 * unscharfen Fuß; ein Klick auf den Pfeil öffnet darunter die Details (grid-rows 0fr → 1fr),
 * die mit einer Feder einfahren und aus der Unschärfe scharf werden. Alle Maße sind Anteile
 * der Kartenbreite (cqw), die Karte passt so in jede Spalte.
 */
.shc {
  --shc-ratio: 0.703;
  --shc-pad: 2.56cqw;
  --shc-radius: 11.3cqw;
  --shc-inner: 8.7cqw;
  --shc-foot: 1;
  --shc-dur: 0.45s;
  --shc-shell: #ffffff;
  --shc-panel: #f3f8f9;
  --shc-title: #1f2a30;
  --shc-text: #2f3b42;
  --shc-muted: #5b6770;
  --shc-chip: #e3eff1;
  --shc-line: #dbe6e8;
  --shc-icon: #007E91;
  width: 100%;
  max-width: 390px;
  container-type: inline-size;
  text-align: left;
}
.shc__shell {
  padding: var(--shc-pad) var(--shc-pad) 0;
  border-radius: var(--shc-radius) var(--shc-radius) calc(var(--shc-radius) * 0.77) calc(var(--shc-radius) * 0.77);
  background: var(--shc-shell);
  box-shadow: 0 10px 30px rgba(0, 40, 50, 0.1);
}
.shc__media {
  position: relative;
  z-index: 1;
  aspect-ratio: 1 / var(--shc-ratio);
  overflow: hidden;
  border-radius: var(--shc-inner);
  box-shadow: 0 1px 1px -0.5px rgb(0 0 0 / 0.08), 0 8px 14px -6px rgb(0 0 0 / 0.2), 0 22px 30px -18px rgb(0 0 0 / 0.3);
}
.shc__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #c9ccd2;
  transition: scale 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.shc:hover .shc__img { scale: 1.03; }
.shc__foot { position: absolute; inset: 45% 0 0; pointer-events: none; background: linear-gradient(transparent, rgb(0 0 0 / 0.32)); }
.shc__foot > span { position: absolute; inset: 0; }
.shc__badge {
  position: absolute;
  top: 5cqw;
  left: 5cqw;
  z-index: 2;
  padding: 1.8cqw 3.4cqw;
  border-radius: 999px;
  background: #E8A020;
  color: #fff;
  font-size: max(11px, 3cqw);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.shc__caption {
  position: absolute;
  inset: auto 6.5cqw 6.5cqw;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  color: #fff;
}
.shc__title { margin: 0; font-size: max(14px, 4.6cqw); font-weight: 800; letter-spacing: -0.01em; line-height: 1.2; color: #fff; }
.shc__category { margin: 0; font-size: max(11px, 3.3cqw); line-height: 1.25; opacity: 0.8; }
/* Gefrostete Pille; die Beschriftung rollt beim Drüberfahren zu einer Kopie ihrer selbst. */
.shc__cta {
  display: grid;
  place-items: center;
  padding: 0 6cqw;
  height: 11cqw;
  border-radius: 3.6cqw;
  background: rgb(255 255 255 / 0.14);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.18);
  color: #fff !important;
  font-size: max(12px, 3.4cqw);
  font-weight: 700;
  text-decoration: none !important;
  white-space: nowrap;
  opacity: 0;
  translate: 0 10px;
  scale: 0.92;
  pointer-events: none;
  transition: opacity 0.3s ease, translate var(--shc-dur) var(--shc-spring), scale var(--shc-dur) var(--shc-spring);
}
.shc.is-open .shc__cta { opacity: 1; translate: 0 0; scale: 1; pointer-events: auto; transition-delay: 0.08s; }
.shc__roll { position: relative; display: block; overflow: hidden; line-height: 1.25; }
.shc__roll > span, .shc__roll::after { display: block; transition: translate 0.45s cubic-bezier(0.65, 0, 0.35, 1); }
.shc__roll::after { content: attr(data-label); position: absolute; inset: 100% 0 auto; }
.shc__cta:hover .shc__roll > span, .shc__cta:hover .shc__roll::after { translate: 0 -100%; }
/* Schublade */
.shc__drawer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--shc-dur) var(--shc-spring); }
.shc.is-open .shc__drawer { grid-template-rows: 1fr; }
.shc__drawer-inner { min-height: 0; overflow: hidden; }
.shc__panel {
  margin-top: 4cqw;
  padding: 6.2cqw;
  border-radius: var(--shc-inner);
  background: var(--shc-panel);
  opacity: 0;
  filter: blur(6px);
  translate: 0 -12px;
  transition: opacity 0.3s ease, filter 0.4s ease, translate var(--shc-dur) var(--shc-spring);
}
.shc.is-open .shc__panel { opacity: 1; filter: blur(0); translate: 0 0; transition-delay: 0.1s; }
.shc__overview { margin: 0 0 3.6cqw; font-size: max(13px, 3.8cqw); font-weight: 700; color: var(--shc-title); }
.shc__chips { display: flex; flex-wrap: wrap; gap: 2.6cqw; margin: 0 0 3cqw; padding: 0 0 3cqw; border-bottom: 1px solid var(--shc-line); list-style: none; }
.shc__chips li { padding: 2.3cqw 2.8cqw; border-radius: 2.6cqw; background: var(--shc-chip); color: var(--shc-text); font-size: max(11px, 3.2cqw); font-weight: 600; line-height: 1.1; margin: 0; }
.shc__desc { margin: 0; font-size: max(12px, 3.6cqw); line-height: 1.4; color: var(--shc-muted); }
.shc__toggle {
  display: grid;
  place-items: center;
  width: 100%;
  height: 12.3cqw;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
  color: var(--shc-icon) !important;
  cursor: pointer;
}
.shc__toggle svg { width: 6.2cqw; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: rotate var(--shc-dur) var(--shc-spring); }
.shc.is-open .shc__toggle svg { rotate: 180deg; }
.shc__toggle:focus-visible { outline: 2px solid var(--shc-icon); outline-offset: -6px; border-radius: var(--shc-inner); }
@media (prefers-reduced-motion: reduce) {
  .shc * { transition-duration: 0.01s !important; }
}
