/*
 * Blog-Kalender Pro – IMpunkt Mediathek (Netflix-Frontend)
 * Alle Selektoren unter .ibx gescoped, um Theme-Kollisionen zu vermeiden.
 */

.ibx {
  --ibx-teal: #017B6E;
  --ibx-teal-light: #0ab2b0;
  --ibx-gold: #FCB900;
  --ibx-ink: #0b0f14;
  --ibx-panel: #121821;
  --ibx-panel2: #161d28;
  --ibx-line: rgba(255, 255, 255, .08);
  --ibx-txt: #eef2f6;
  --ibx-muted: #9aa7b4;

  color: var(--ibx-txt);
  background: var(--ibx-ink) !important;
  background-color: var(--ibx-ink) !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  box-sizing: border-box;
  overflow-x: hidden;
  display: flow-root;
}

.ibx *,
.ibx *::before,
.ibx *::after {
  box-sizing: border-box;
}

.ibx [hidden] {
  display: none !important;
}

.ibx h1,
.ibx h2,
.ibx h3,
.ibx h4,
.ibx h5 {
  margin: 0;
  color: var(--ibx-txt);
  line-height: 1.2;
}

.ibx p {
  margin: 0;
}

.ibx a {
  text-decoration: none;
  color: inherit;
}

.ibx-pad {
  padding: 0 clamp(16px, 5vw, 64px);
}

/* ============================ HERO ============================ */
.ibx-hero {
  position: relative;
  padding: clamp(48px, 8vw, 96px) clamp(16px, 5vw, 64px) clamp(40px, 6vw, 72px);
  background:
    radial-gradient(1200px 500px at 15% -10%, rgba(1, 123, 110, .35), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(252, 185, 0, .12), transparent 55%),
    linear-gradient(180deg, #0d141d, var(--ibx-ink));
  border-bottom: 1px solid var(--ibx-line);
  overflow: hidden;
}

.ibx-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ibx-teal-light);
  background: rgba(10, 178, 176, .12);
  border: 1px solid rgba(10, 178, 176, .3);
  padding: 6px 14px;
  border-radius: 999px;
}

.ibx-hero-title {
  font-size: clamp(34px, 6vw, 56px);
  font-weight: 800;
  letter-spacing: -.02em;
  margin: 20px 0 0;
  max-width: 20ch;
}

.ibx-tl {
  background: linear-gradient(100deg, var(--ibx-teal-light), var(--ibx-gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--ibx-gold);
}

.ibx-hero-text {
  margin: 18px 0 0;
  max-width: 60ch;
  font-size: clamp(15px, 2vw, 18px);
  color: var(--ibx-muted);
}

.ibx-hero-cta {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ibx-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1px solid var(--ibx-line);
  background: rgba(255, 255, 255, .06);
  color: var(--ibx-txt);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

.ibx-btn:hover {
  transform: translateY(-2px);
}

.ibx-btn-p {
  background: linear-gradient(100deg, var(--ibx-gold), #ffd45e);
  color: #0b0f14;
  border-color: transparent;
  box-shadow: 0 10px 30px rgba(252, 185, 0, .28);
}

.ibx-btn-p:hover {
  filter: brightness(1.05);
  box-shadow: 0 14px 38px rgba(252, 185, 0, .38);
}

.ibx-hero-team {
  position: absolute;
  right: clamp(20px, 6vw, 72px);
  bottom: clamp(20px, 5vw, 48px);
  display: flex;
}

.ibx-av {
  width: clamp(52px, 8vw, 78px);
  height: clamp(52px, 8vw, 78px);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: clamp(20px, 3vw, 30px);
  color: #0b0f14;
  border: 3px solid var(--ibx-ink);
}

.ibx-av1 {
  background: linear-gradient(150deg, var(--ibx-teal-light), var(--ibx-teal));
  color: #fff;
}

.ibx-av2 {
  background: linear-gradient(150deg, var(--ibx-gold), #ffd45e);
  margin-left: -20px;
}

@media (max-width: 640px) {
  .ibx-hero-team {
    position: static;
    margin-top: 28px;
  }
}

/* ============================ HIGHLIGHT ============================ */
.ibx-highlight {
  position: relative;
  margin: clamp(28px, 5vw, 48px) clamp(16px, 5vw, 64px);
  padding: clamp(20px, 3vw, 30px);
  border-radius: 20px;
  background: linear-gradient(120deg, #3a0d10, #7a1016);
  border: 1px solid rgba(253, 3, 3, .4);
  overflow: hidden;
}

.ibx-hl-glow {
  position: absolute;
  inset: -40% -10% auto auto;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(253, 3, 3, .45), transparent 65%);
  pointer-events: none;
}

.ibx-hl-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 28px);
  flex-wrap: wrap;
}

.ibx-hl-tag {
  flex: 0 0 auto;
  min-width: 84px;
  text-align: center;
  background: #fd0303;
  color: #fff;
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: 0 10px 26px rgba(253, 3, 3, .4);
}

.ibx-hl-tag-b {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: .02em;
}

.ibx-hl-tag-d {
  font-size: 13px;
  opacity: .9;
}
.ibx-hl-media {
  flex: 0 0 auto;
  width: clamp(120px, 22vw, 230px);
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .45);
  border: 1px solid rgba(255, 255, 255, .18);
}

.ibx-hl-txt {
  flex: 1 1 300px;
}

.ibx-hl-k {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #ffd9d9;
}

.ibx-hl-txt h3 {
  font-size: clamp(20px, 3vw, 27px);
  font-weight: 800;
  margin: 8px 0 0;
  color: #fff;
}

.ibx-hl-txt p {
  margin: 8px 0 0;
  color: #ffdcdc;
  max-width: 70ch;
}

.ibx-hl-go {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: 999px;
  background: #fff;
  color: #7a1016;
  transition: transform .15s ease;
}

.ibx-hl-go:hover {
  transform: translateY(-2px);
}

/* ============================ SECTION HEAD ============================ */
.ibx-sec {
  background: var(--ibx-ink);
  padding-top: clamp(28px, 5vw, 52px);
  padding-bottom: clamp(20px, 3vw, 36px);
}

.ibx-sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(18px, 3vw, 28px);
}

.ibx-sec-head h2 {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 800;
  letter-spacing: -.01em;
}

.ibx-accent {
  color: var(--ibx-gold);
}

.ibx-sub {
  margin-top: 8px;
  color: var(--ibx-muted);
  font-size: clamp(14px, 2vw, 16px);
}

/* ============================ 7-TAGE-BAND ============================ */
.ibx-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 14px;
}

.ibx-day {
  position: relative;
  min-height: 230px;
  border-radius: 16px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  color: #fff;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .25);
  transition: transform .18s ease, box-shadow .18s ease;
}

a.ibx-day:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .38);
}

a.ibx-day:hover .ibx-day-bg {
  transform: scale(1.06);
}

/* Vollflächiges Poster-Bild + Verlauf, damit der Text lesbar bleibt. */
.ibx-day-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
  transition: transform .35s ease;
}

.ibx-day-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top,
    rgba(0, 0, 0, .88) 0%,
    rgba(0, 0, 0, .55) 34%,
    rgba(0, 0, 0, .12) 66%,
    rgba(0, 0, 0, .30) 100%);
}

.ibx-day-today {
  outline: 3px solid var(--ibx-gold);
  outline-offset: -1px;
}

/* Kopfzeile: liegt über dem Bild. */
.ibx-day-top {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px 8px;
}

/* Wochentag: groß, farbig, auffällig – der Sinngeber der Zeile. */
.ibx-day-badge {
  display: inline-block;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #fff;
  padding: 6px 12px;
  border-radius: 9px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .45);
  border: 1px solid rgba(255, 255, 255, .22);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .35);
  white-space: nowrap;
}

.ibx-day-now {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: #1a1205;
  background: var(--ibx-gold);
  padding: 5px 9px;
  border-radius: 999px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .4);
}
.ibx-day-now::before {
  content: '● ';
}

/* Textkörper: unten, über dem Verlauf. */
.ibx-day-body {
  position: relative;
  z-index: 2;
  margin-top: auto;
}

.ibx-day-h {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .55);
}

.ibx-day-empty {
  opacity: .7;
  font-weight: 600;
}

.ibx-day-cat {
  display: inline-block;
  margin-top: 8px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .45);
  color: #fff;
  backdrop-filter: blur(2px);
}

@media (max-width: 1100px) {
  .ibx-week {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 720px) {
  .ibx-week {
    grid-template-columns: repeat(2, 1fr);
  }
  .ibx-day {
    min-height: 180px;
  }
}

/* ============================ MEDIATHEK / NETFLIX ============================ */
.ibx-netflix {
  background: linear-gradient(180deg, #0e141c, var(--ibx-ink));
  padding-top: clamp(32px, 5vw, 56px);
  padding-bottom: clamp(40px, 6vw, 72px);
  border-top: 1px solid var(--ibx-line);
}

.ibx-search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--ibx-panel);
  border: 1px solid var(--ibx-line);
  border-radius: 16px;
  padding: 6px 6px 6px 18px;
  margin-bottom: 18px;
}

.ibx-search-ico {
  color: var(--ibx-gold);
  font-size: 20px;
  flex: 0 0 auto;
}

.ibx-search input {
  flex: 1 1 auto;
  background: transparent;
  border: 0;
  outline: none;
  color: var(--ibx-txt);
  font-size: 16px;
  padding: 12px 6px;
  min-width: 0;
}

.ibx-search input::placeholder {
  color: var(--ibx-muted);
}

.ibx-search-go {
  flex: 0 0 auto;
  border: 0;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  padding: 11px 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .08);
  color: var(--ibx-txt);
  transition: background .15s ease;
}

.ibx-search-go:hover {
  background: rgba(255, 255, 255, .16);
}

.ibx-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.ibx-chip {
  border: 0;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 999px;
  color: #0b0f14;
  opacity: .82;
  transition: opacity .15s ease, transform .15s ease, box-shadow .15s ease;
}

.ibx-chip:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.ibx-chip.ibx-chip-active {
  opacity: 1;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .85), 0 8px 20px rgba(0, 0, 0, .35);
}

.ibx-noresults {
  color: var(--ibx-muted);
  font-size: 16px;
  padding: 24px 0;
}

/* ---------- Reihen ---------- */
.ibx-media-block {
  margin-top: clamp(24px, 4vw, 40px);
}

.ibx-row-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: clamp(18px, 3vw, 22px);
  font-weight: 800;
  margin-bottom: 14px;
}

.ibx-em {
  font-size: 1.1em;
}

.ibx-tagline {
  font-size: 14px;
  font-weight: 500;
  color: var(--ibx-muted);
}

.ibx-rail {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 4px 16px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .25) transparent;
}

.ibx-rail::-webkit-scrollbar {
  height: 8px;
}

.ibx-rail::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .18);
  border-radius: 999px;
}

/* ---------- Karte ---------- */
.ibx-card {
  position: relative;
  flex: 0 0 258px;
  width: 258px;
  border-radius: 14px;
  background: var(--ibx-panel2);
  border: 1px solid var(--ibx-line);
  overflow: hidden;
  scroll-snap-align: start;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  display: flex;
  flex-direction: column;
}

.ibx-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 44px rgba(0, 0, 0, .45);
  border-color: rgba(255, 255, 255, .18);
}

.ibx-thumb {
  position: relative;
  height: 150px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding: 10px;
}

.ibx-catb {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  color: #0b0f14;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .3);
}

.ibx-cbody {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 auto;
}

.ibx-cbody h5 {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ibx-cbody p {
  font-size: 13px;
  color: var(--ibx-muted);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ibx-meta {
  margin-top: auto;
  display: flex;
  gap: 8px;
  font-size: 12px;
  color: var(--ibx-muted);
}

/* ---------- Serie ---------- */
.ibx-serie {
  border: 1px solid rgba(252, 185, 0, .5);
  box-shadow: 0 0 0 1px rgba(252, 185, 0, .2);
}

.ibx-sbadge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  padding: 4px 10px;
  border-radius: 999px;
  background: linear-gradient(100deg, var(--ibx-gold), #ffd45e);
  color: #0b0f14;
  box-shadow: 0 6px 14px rgba(252, 185, 0, .4);
}

.ibx-ep {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(11, 15, 20, .78);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .15);
}

@media (max-width: 720px) {
  .ibx-card {
    flex-basis: 78vw;
    width: 78vw;
    max-width: 300px;
  }
  .ibx-sec-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ============================================================
 *  v1.7.0 – Erweiterungen
 *  Hero-Zähler · Kachel-Thumbnail · Karussell-Pfeile ·
 *  Fokus-Chips (Alle + Zähler) · Highlight als Link
 * ============================================================ */

/* ---------- Hero: Gesamtzahl ---------- */
.ibx-hero-count {
  margin-top: 16px;
  font-size: 15px;
  color: var(--ibx-muted);
  letter-spacing: .01em;
}
.ibx-hero-count strong {
  color: var(--ibx-gold);
  font-size: 20px;
  font-weight: 800;
  margin-right: 4px;
}

/* (Alte Mini-Thumbnail-Regeln entfernt – 7-Tage-Kacheln nutzen jetzt Vollbild-Poster.) */

/* ---------- Karussell-Pfeile ---------- */
.ibx-rail-wrap {
  position: relative;
}
.ibx-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--ibx-line);
  background: rgba(12, 16, 22, .82);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity .18s ease, transform .15s ease, background .15s ease;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .4);
}
.ibx-rail-wrap:hover .ibx-arrow {
  opacity: .95;
}
.ibx-arrow:hover {
  background: var(--ibx-teal);
  transform: translateY(-50%) scale(1.08);
}
.ibx-arrow-prev {
  left: -6px;
}
.ibx-arrow-next {
  right: -6px;
}
/* Touch-Geräte: Pfeile dauerhaft sichtbar (kein Hover) */
@media (hover: none) {
  .ibx-arrow {
    opacity: .9;
  }
}
@media (max-width: 720px) {
  .ibx-arrow {
    width: 38px;
    height: 38px;
    font-size: 22px;
  }
}

/* ---------- Fokus-Chips: "Alle"-Chip + Zähler ---------- */
.ibx-chip-all {
  background: rgba(255, 255, 255, .92);
  color: #0b0f14;
}
.ibx-chip-n {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .28);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  vertical-align: middle;
}
.ibx-chip-all .ibx-chip-n {
  background: rgba(0, 0, 0, .18);
  color: #0b0f14;
}
/* Chip-Leiste über der Fokus-Zeile etwas abheben */
#ibx-focus-chips {
  margin-top: clamp(24px, 4vw, 40px);
  margin-bottom: 6px;
  padding-top: 18px;
  border-top: 1px solid var(--ibx-line);
}

/* ---------- Fokus-Zeile: dynamischer Überschriften-Zusatz ---------- */
.ibx-focus-suffix {
  color: var(--ibx-gold);
}
.ibx-focus-block {
  margin-top: 10px;
}

/* ---------- Highlight als kompletter Link ---------- */
a.ibx-highlight-link {
  display: block;
  cursor: pointer;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
a.ibx-highlight-link:hover {
  transform: translateY(-3px);
  border-color: rgba(253, 3, 3, .75);
  box-shadow: 0 20px 48px rgba(253, 3, 3, .32);
}
a.ibx-highlight-link:hover .ibx-hl-go {
  transform: translateY(-2px);
  filter: brightness(1.02);
}
/* ---------- YouTube-Zeile ---------- */
.ibx-yt-sec {
  margin-top: clamp(6px, 1.5vw, 14px);
}
.ibx-yt-block {
  margin-top: clamp(20px, 3vw, 32px);
}
.ibx-yt-card {
  border-color: rgba(255, 255, 255, .10);
}
.ibx-yt-card:hover {
  border-color: rgba(255, 0, 0, .55);
  box-shadow: 0 20px 44px rgba(196, 48, 43, .32);
}
.ibx-yt-thumb {
  height: 150px;
  align-items: flex-start;
  justify-content: flex-start;
}
/* Play-Kreis mittig */
.ibx-yt-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: rgba(196, 48, 43, .92);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .45);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .18s ease, background .18s ease;
}
.ibx-yt-card:hover .ibx-yt-play {
  transform: translate(-50%, -50%) scale(1.08);
  background: #ff0000;
}
.ibx-yt-play-tri {
  width: 0;
  height: 0;
  margin-left: 4px;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  border-left: 18px solid #fff;
}
/* YouTube-Badge oben links */
.ibx-yt-badge {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .02em;
  padding: 5px 10px;
  border-radius: 999px;
  background: #c4302b;
  color: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .35);
}
.ibx-yt-badge-ico {
  font-size: 9px;
  line-height: 1;
}
/* Hinweis "öffnet YouTube" unten */
.ibx-yt-hint {
  align-items: center;
  color: #c4302b;
  font-weight: 700;
}
.ibx-yt-hint-ico {
  font-size: 9px;
  line-height: 1;
}
.ibx-yt-ext {
  font-weight: 800;
}
