/* ============================================================
   Academy Videothek ([ak_videos], inc/academy-videos.php)
   Laedt nur auf Seiten mit dem Shortcode - auch auf Lektionsseiten,
   die academy-design-system.css NICHT laden. Deshalb nutzt jede Regel
   die Design-Tokens MIT Fallback-Wert (Werte = academy-design-system.css).
   Alle Selektoren beginnen mit .ak-video bzw. .ak-videos, keine globalen Overrides.
   ============================================================ */

.ak-videos{
  font-family: var(--ak-font-body, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif);
  color: var(--ak-color-text, #20201E);
  margin: 8px 0 0;
}

/* --- Filter --- */
.ak-video-filter{
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px 16px;
  margin-bottom: 28px;
}
.ak-video-filter-field{
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1 1 160px;
  max-width: 260px;
  margin: 0;
}
@media (max-width: 640px){
  .ak-video-filter-field{ flex-basis: 100%; max-width: none; }
}
.ak-video-filter-label{
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ak-color-text-muted, #66645D);
}
.ak-videos .ak-video-filter-select{
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  min-height: 46px;
  margin: 0;
  padding: 0 44px 0 20px;
  border: 1px solid var(--ak-color-card-border, #D8E4E2);
  border-radius: 999px;
  background-color: var(--ak-color-card-bg, #FFFEFA);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23A90F5D' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 20px center;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ak-color-text, #20201E);
  cursor: pointer;
  box-shadow: none;
}
.ak-videos .ak-video-filter-select:hover{ border-color: var(--ak-color-rose-border, #E7CDD9); }
.ak-videos .ak-video-filter-select:focus-visible{
  outline: 2px solid var(--ak-color-primary, #A90F5D);
  outline-offset: 2px;
}
.ak-videos .ak-video-filter-select.is-set{
  border-color: var(--ak-color-primary, #A90F5D);
  background-color: var(--ak-color-rose, #F8EDF3);
}
.ak-videos .ak-video-filter-reset{
  min-height: 46px;
  padding: 0 4px;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ak-color-primary, #A90F5D);
  text-decoration: underline;
  cursor: pointer;
}
.ak-videos .ak-video-filter-reset[hidden]{ display: none; }

/* --- Grid: 1 / 2 / 3 Spalten wie .ak-product-grid --- */
.ak-video-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 641px){
  .ak-video-grid{ grid-template-columns: 1fr 1fr; }
}
@media (min-width: 901px){
  .ak-video-grid{ grid-template-columns: repeat(3, 1fr); }
}
.ak-video-card[hidden]{ display: none; }

/* --- Karte: gleiche Familie wie .ak-card / .ak-product-card --- */
.ak-video-card{
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--ak-color-card-bg, #FFFEFA);
  border: 1px solid var(--ak-color-card-border, #D8E4E2);
  border-radius: var(--ak-radius-lg, 24px);
  box-shadow: var(--ak-shadow-card, 0 8px 24px rgba(32, 32, 30, 0.035));
  transition: box-shadow .18s ease, border-color .18s ease;
}
.ak-video-card:hover{
  box-shadow: var(--ak-shadow-card-hover, 0 12px 30px rgba(32, 32, 30, 0.07));
  border-color: rgba(169, 15, 93, 0.24);
}
.ak-video-card-media{
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--ak-color-panel, #EAF6F5);
}
.ak-video-card-media iframe{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.ak-videos .ak-video-play{
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  cursor: pointer;
  overflow: hidden;
}
.ak-videos .ak-video-thumb{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}
.ak-videos .ak-video-play:hover .ak-video-thumb{ transform: scale(1.03); }
.ak-videos .ak-video-thumb--text{
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 24px 32px;
  background: var(--ak-gradient-rose-soft, linear-gradient(90deg, #F7EDF2 0%, #F4F1ED 100%));
  font-family: var(--ak-font-display, "Bodoni 72", Didot, "Bodoni MT", Georgia, serif);
  font-size: clamp(1.25rem, 1.2vw + 1rem, 1.75rem);
  line-height: 1.15;
  text-align: center;
  color: var(--ak-color-primary, #A90F5D);
}
.ak-video-play-icon{
  position: absolute;
  left: 50%;
  top: 50%;
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  border-radius: 50%;
  background: var(--ak-color-primary, #A90F5D);
  box-shadow: 0 8px 24px rgba(32, 32, 30, 0.18);
  transition: transform .18s ease, background-color .18s ease;
}
.ak-video-play-icon::after{
  content: "";
  position: absolute;
  left: 26px;
  top: 21px;
  border-style: solid;
  border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent #fff;
}
.ak-videos .ak-video-play:hover .ak-video-play-icon,
.ak-videos .ak-video-play:focus-visible .ak-video-play-icon{
  transform: scale(1.08);
  background: var(--ak-color-primary-hover, #8A0C4C);
}
.ak-videos .ak-video-play:focus-visible{
  outline: 3px solid var(--ak-color-primary, #A90F5D);
  outline-offset: -3px;
}

.ak-video-card-content{
  padding: 18px 20px 20px;
}
@media (min-width: 901px){
  .ak-video-card-content{ padding: 20px 24px 24px; }
}
.ak-videos .ak-video-card-kicker{
  margin: 0 0 8px;
  padding: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--ak-color-primary, #A90F5D);
}
.ak-videos .ak-video-card-title{
  margin: 0;
  padding: 0;
  font-family: var(--ak-font-display, "Bodoni 72", Didot, "Bodoni MT", Georgia, serif);
  font-size: clamp(1.375rem, 1vw + 1rem, 1.625rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--ak-color-text, #20201E);
}
.ak-videos .ak-video-card-thema{
  margin: 8px 0 0;
  padding: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--ak-color-text-muted, #66645D);
}

.ak-video-empty,
.ak-video-notice{
  margin: 0;
  padding: 24px 0;
  font-size: 0.9375rem;
  color: var(--ak-color-text-muted, #66645D);
}
.ak-video-empty[hidden]{ display: none; }
