/* ==========================================================================
   Gruppe "media": Podcasts · Onlinekurse · Wissenswertes · Glücksexperte · Über Wolfram
   Ergänzt style.css – nur Variablen aus :root verwenden.
   ========================================================================== */

/* ---------- Podcast-Plattformen ---------- */

.platforms {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.platform {
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  padding: 36px 16px 32px; text-align: center;
  transition: background 0.35s var(--ease);
}
.platform + .platform { border-left: 1px solid var(--line); }
.platform__icon {
  width: 96px; height: 96px; border-radius: 50%; background: var(--white);
  display: grid; place-items: center; overflow: hidden;
  transition: transform 0.5s var(--ease), box-shadow 0.4s var(--ease);
}
.platform__icon img { width: 74%; height: auto; }
.platform__name {
  font-family: var(--display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1;
}
.platform:hover { background: var(--surface); }
.platform:hover .platform__icon { transform: rotate(-8deg) scale(1.06); box-shadow: 0 0 0 6px var(--red); }
@media (max-width: 760px) {
  .platforms { grid-template-columns: 1fr 1fr; }
  .platform:nth-child(3) { border-left: 0; }
  .platform:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- Podcast-Folgen ---------- */

.episodes {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px;
}
.episode {
  position: relative; background: var(--surface); border-top: 3px solid var(--red);
  padding: 14px;
}
.episode iframe { display: block; width: 100%; height: 450px; border: 0; overflow: hidden; background: var(--surface-2); }
@media (max-width: 900px) { .episodes { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Video-Vorschaubild mit Play-Button ---------- */

.video-thumb { position: relative; display: block; overflow: hidden; background: var(--ink); }
.video-thumb img { width: 100%; transition: transform 0.9s var(--ease), filter 0.5s var(--ease); }
.video-thumb__play {
  position: absolute; left: 50%; top: 50%; width: clamp(72px, 9vw, 110px); aspect-ratio: 1;
  transform: translate(-50%, -50%); border-radius: 50%; background: var(--red);
  display: grid; place-items: center; box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  transition: transform 0.4s var(--ease), background 0.3s;
}
.video-thumb__play::after {
  content: ""; margin-left: 8%; border-style: solid; border-width: 14px 0 14px 24px;
  border-color: transparent transparent transparent var(--white);
}
.video-thumb:hover img { transform: scale(1.04); filter: brightness(0.8); }
.video-thumb:hover .video-thumb__play { transform: translate(-50%, -50%) scale(1.1); background: var(--red-hot); }

/* ---------- Feature-Varianten ---------- */

/* Produkt-Mockups vollständig zeigen (nicht beschneiden) */
.feature__img--contain { background: var(--white); }
.feature__img--contain img { object-fit: contain; padding: clamp(16px, 3vw, 40px); }
.feature:hover .feature__img--contain img { transform: scale(1.03); }

/* Video statt Bild in einer Feature-Zeile */
.feature__media { display: flex; align-items: center; padding: clamp(32px, 5vw, 72px); background: var(--surface); }
.feature__media .video-frame { width: 100%; }
@media (max-width: 900px) {
  .feature__media { padding: 28px 14px 28px 0; background: transparent; }
}

.feature__body h3.h-sm { line-height: 1.05; }

/* ---------- Artikel (Wissenswertes / Glücksexperte) ---------- */

.article-list { margin: 0 0 1.1em; padding: 0; list-style: none; display: grid; gap: 10px; }
.article-list li {
  position: relative; padding: 14px 18px 14px 46px;
  background: var(--surface); border-left: 3px solid var(--red); color: var(--white);
}
.article-list li::before {
  content: "✕"; position: absolute; left: 18px; top: 14px; color: var(--red-hot); font-size: 0.85em;
}

/* Nummerierte Übersicht (8 Bedürfnisse, Key Facts) */
.num-grid {
  margin: 0; padding: 0; list-style: none; counter-reset: num;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.num-grid li {
  counter-increment: num;
  display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start;
  padding: 30px 24px 30px 0; border-bottom: 1px solid var(--line);
  font-weight: 700; font-size: 1.02rem; line-height: 1.35; color: var(--white);
}
.num-grid li::before {
  content: counter(num, decimal-leading-zero);
  font-family: var(--display); font-weight: 800; font-size: clamp(2.6rem, 3.6vw, 3.4rem); line-height: 0.8; color: var(--red-hot);
}
.num-grid li:not(:nth-child(4n+1)) { padding-left: 24px; border-left: 1px solid var(--line); }
.num-grid--3 { grid-template-columns: repeat(3, 1fr); }
.num-grid--3 li:not(:nth-child(4n+1)) { padding-left: 0; border-left: 0; }
.num-grid--3 li:not(:nth-child(3n+1)) { padding-left: 24px; border-left: 1px solid var(--line); }
@media (max-width: 1000px) {
  .num-grid, .num-grid--3 { grid-template-columns: 1fr 1fr; }
  .num-grid li:not(:nth-child(4n+1)), .num-grid--3 li:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; }
  .num-grid li:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--line); }
}
@media (max-width: 600px) {
  .num-grid, .num-grid--3 { grid-template-columns: 1fr; }
  .num-grid li:nth-child(even) { padding-left: 0; border-left: 0; }
  .num-grid li { padding-right: 0; }
}

/* Auf roter Fläche */
.section--red .num-grid { border-top-color: rgba(255,255,255,0.35); }
.section--red .num-grid li { border-color: rgba(255,255,255,0.35); }
.section--red .num-grid li::before { color: var(--white); opacity: 0.55; }

/* Artikel-Einträge: Nummer | Überschrift | Text */
.entries { counter-reset: entry; }
.entry {
  counter-increment: entry;
  display: grid; grid-template-columns: 140px minmax(0, 0.9fr) minmax(0, 1.4fr); gap: clamp(20px, 4vw, 64px); align-items: start;
  padding: clamp(40px, 5vw, 64px) 0; border-top: 1px solid var(--line);
}
.entry:last-child { border-bottom: 1px solid var(--line); }
.entry::before {
  content: counter(entry, decimal-leading-zero);
  font-family: var(--display); font-weight: 800; font-size: clamp(4rem, 7vw, 6.5rem); line-height: 0.75; color: var(--red-hot);
}
.entry h3 { position: sticky; top: 110px; }
.entry .feature__promise { margin: 26px 0 0; }
.entries--start-4 { counter-reset: entry 3; }
@media (max-width: 1000px) {
  .entry { grid-template-columns: 1fr; gap: 16px; }
  .entry::before { font-size: 3.6rem; }
  .entry h3 { position: static; }
}

/* Definition (Zitat) */
.definition { margin: 0; padding: clamp(28px, 4vw, 48px) 0 0; border-top: 2px solid var(--red); }
.definition p { margin: 0; }

/* Ganzbreites Bild als Trenner */
.img-break { position: relative; overflow: hidden; background: var(--ink); }
.img-break img { width: 100%; height: clamp(260px, 42vw, 620px); object-fit: cover; filter: grayscale(0.25) brightness(0.85); }
.img-break::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: clamp(80px, 18vw, 260px); height: 10px; background: var(--red);
}

/* Buch-Poster auf heller Fläche */
.book-break { display: block; background: var(--white); overflow: hidden; }
.book-break img { width: 100%; max-width: 1800px; margin: 0 auto; transition: transform 1.2s var(--ease); }
.book-break:hover img { transform: scale(1.03); }

/* ---------- Über Wolfram ---------- */

.fokus-img { position: relative; overflow: hidden; }
.fokus-img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.fokus-wrap::before {
  content: ""; position: absolute; z-index: -1; inset: 18px -18px -18px 18px; background: var(--red);
}
.fokus-wrap { position: relative; z-index: 0; margin-right: 18px; }

.cover-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 2vw, 28px); }
.cover-row img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform 0.7s var(--ease); }
.cover-row img:hover { transform: translateY(-10px); }
@media (max-width: 760px) { .cover-row { grid-template-columns: 1fr 1fr; } }

.gallery {
  display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: clamp(120px, 16vw, 230px); gap: 10px;
}
.gallery figure { position: relative; margin: 0; overflow: hidden; background: var(--surface); }
.gallery img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), filter 0.6s var(--ease); filter: grayscale(0.3); }
.gallery figure:hover img { transform: scale(1.05); filter: none; }
.gallery figure::after {
  content: ""; position: absolute; inset: 0; border-bottom: 4px solid var(--red); transform: scaleX(0); transform-origin: left;
  transition: transform 0.5s var(--ease); pointer-events: none;
}
.gallery figure:hover::after { transform: scaleX(1); }
.gallery__a { grid-column: span 4; grid-row: span 2; }
.gallery__b { grid-column: span 2; grid-row: span 2; }
.gallery__c { grid-column: span 2; grid-row: span 2; }
.gallery__d { grid-column: span 2; grid-row: span 2; }
.gallery__e { grid-column: span 2; grid-row: span 2; }
@media (max-width: 760px) {
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 42vw; }
  .gallery__a { grid-column: span 2; }
  .gallery__b, .gallery__c, .gallery__d, .gallery__e { grid-column: span 1; grid-row: span 1; }
}

.awards { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(16px, 3vw, 40px); }
.awards a, .awards span {
  display: grid; place-items: center; width: clamp(130px, 16vw, 180px); aspect-ratio: 1;
  padding: 14px; background: var(--white); transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.awards a:hover { transform: translateY(-6px); box-shadow: 0 0 0 4px var(--red); }
.awards img { width: 100%; height: 100%; object-fit: contain; }
