/* =========================================================
   KLANG TV — Erklärvideos (pages/erklaervideos.html)
   Nutzt die Farben/Schrift aus css/style.css
   ========================================================= */

.ev-feature { padding: 48px 0 8px; }
.ev-feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}
.ev-feature-text h2 {
  margin: 8px 0 14px;
  font-size: clamp(24px, 3.2vw, 38px);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.1;
}
.ev-feature-text p { color: var(--gray-text); font-size: 16.5px; line-height: 1.7; margin-bottom: 22px; }

.ev-cat {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--violet-bright);
}

.ev-section { padding: 56px 0 8px; }
.ev-section:last-of-type { padding-bottom: 96px; }
.ev-section-title {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 900;
  text-transform: uppercase;
}
.ev-section-sub { margin: 8px 0 26px; color: var(--gray-text-dim); font-size: 15px; }

.ev-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.ev-card {
  display: flex;
  flex-direction: column;
  background: var(--anthracite);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.ev-card:hover {
  transform: translateY(-3px);
  border-color: var(--violet-dim);
  box-shadow: 0 14px 34px rgba(155, 31, 224, .18);
}

/* 16:9-Vorschaubild mit Play-Knopf */
.ev-thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  overflow: hidden;
  background: #000;
  cursor: pointer;
}
.ev-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease, filter .3s ease; }
.ev-card:hover .ev-thumb img, .ev-thumb-big:hover img { transform: scale(1.04); }
.ev-thumb::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .45), rgba(0, 0, 0, 0) 55%);
  pointer-events: none;
}
.ev-play {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(10, 10, 11, .45);
  border: 2px solid rgba(255, 255, 255, .85);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.ev-play svg { width: 24px; height: 24px; margin-left: 3px; }
.ev-play-big { width: 88px; height: 88px; }
.ev-play-big svg { width: 32px; height: 32px; }
.ev-thumb:hover .ev-play, .ev-thumb:focus-visible .ev-play {
  background: var(--violet);
  border-color: var(--violet);
  transform: translate(-50%, -50%) scale(1.08);
}
.ev-thumb:focus-visible { outline: 3px solid var(--violet-bright); outline-offset: -3px; }
.ev-duration {
  position: absolute; right: 10px; bottom: 10px; z-index: 2;
  background: rgba(0, 0, 0, .72);
  font-size: 12px; font-weight: 700;
  padding: 3px 8px; border-radius: 4px;
}
.ev-thumb-big { border-radius: 12px; border: 1px solid var(--border); box-shadow: 0 24px 60px rgba(155, 31, 224, .22); }

.ev-info { padding: 16px 18px 22px; }
.ev-info h3 { margin: 6px 0 8px; font-size: 17px; font-weight: 800; text-transform: uppercase; line-height: 1.25; }
.ev-info p { color: var(--gray-text); font-size: 14.5px; line-height: 1.6; }

.ev-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 24px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--violet-dim), var(--violet) 60%, var(--magenta));
  color: #fff;
  font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  box-shadow: 0 8px 22px rgba(155, 31, 224, .35);
  transition: transform .2s ease, box-shadow .2s ease;
}
.ev-btn svg { width: 16px; height: 16px; }
.ev-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(199, 36, 177, .4); }

/* Video-Fenster */
.ev-modal { position: fixed; inset: 0; z-index: 3000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.ev-modal[hidden] { display: none; }
.ev-modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .88); }
.ev-modal-box {
  position: relative;
  width: min(1100px, 100%);
  background: var(--anthracite);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 18px 20px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .7);
}
.ev-modal-box h3 { margin: 0 44px 12px 4px; font-size: 16px; font-weight: 800; text-transform: uppercase; }
.ev-modal-close {
  position: absolute; top: 10px; right: 12px;
  width: 38px; height: 38px;
  font-size: 28px; line-height: 1;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, .08);
}
.ev-modal-close:hover { background: var(--violet); }
.ev-modal-video { aspect-ratio: 16 / 9; background: #000; border-radius: 8px; overflow: hidden; }
.ev-modal-video video { width: 100%; height: 100%; display: block; background: #000; }
body.ev-lock { overflow: hidden; }

@media (max-width: 1000px) {
  .ev-feature-grid { grid-template-columns: 1fr; gap: 24px; }
  .ev-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .ev-grid { grid-template-columns: 1fr; }
  .ev-play { width: 56px; height: 56px; }
  .ev-play-big { width: 72px; height: 72px; }
  .ev-modal { padding: 10px; }
  .ev-modal-box { padding: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .ev-card, .ev-thumb img, .ev-play, .ev-btn { transition: none; }
}

/* Zweites Feature (TV-App): Text links, Video rechts */
.ev-feature-alt { padding-top: 64px; }
.ev-feature-alt .ev-feature-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); }
.ev-feature-alt .ev-feature-text { order: -1; }
@media (max-width: 1000px) {
  .ev-feature-alt .ev-feature-grid { grid-template-columns: 1fr; }
  .ev-feature-alt .ev-feature-text { order: 0; }
}

/* Teaser auf der Startseite (index.html) */
.ev-teaser { border-top: 1px solid var(--border); }
.ev-teaser-sub { margin: -6px 0 26px; color: var(--gray-text-dim); font-size: 15px; }
.ev-teaser-cta { margin-top: 32px; text-align: center; }
.ev-teaser-cta .ev-btn svg { width: 16px; height: 16px; }
