/* ekey CMS – Academy-Frontend (Übergangs-Plugin).
   Hero full-width, darunter Filter (links) + Karten (rechts) in Content-Breite.
   Avada-weiß, ekey-Blau-Akzent (#00457c), kein Grün. Schrift erbt Avada. */

/* ── Hero (full-width) mit Titel-Overlay ───────────────────────────── */
.ekey-hero { position: relative; width: 100vw; margin-left: calc(50% - 50vw); margin-bottom: 72px; line-height: 0; }
.ekey-hero img { width: 100%; height: 340px; object-fit: cover; object-position: center; display: block; }
.ekey-hero--plain { min-height: 300px; background: #00457c; }
.ekey-hero-overlay { position: absolute; inset: 0; display: flex; align-items: center; background: linear-gradient(90deg, rgba(0,0,0,.5) 0%, rgba(0,0,0,.15) 55%, rgba(0,0,0,0) 100%); }
.ekey-hero-inner { max-width: 1248px; width: 100%; margin: 0 auto; padding: 0 20px; box-sizing: border-box; line-height: 1.2; }
.ekey-hero-title { color: #fff !important; font-size: 46px; font-weight: 800; margin: 0 0 12px; text-shadow: 0 2px 14px rgba(0,0,0,.45); }
.ekey-hero-sub { color: #fff !important; font-size: 21px; font-weight: 400; margin: 0; max-width: 640px; text-shadow: 0 1px 10px rgba(0,0,0,.45); }
@media (max-width: 640px) {
  .ekey-hero { margin-bottom: 40px; }
  .ekey-hero img { height: 240px; }
  .ekey-hero--plain { min-height: 220px; }
  .ekey-hero-title { font-size: 30px; }
  .ekey-hero-sub { font-size: 16px; }
}

/* ── Layout: Filter links, Liste rechts ────────────────────────────── */
.ekey-ac-layout {
  max-width: 1248px; margin: 0 auto; padding: 0 20px; box-sizing: border-box;
  display: grid; grid-template-columns: 240px 1fr; gap: 36px; align-items: start;
}
@media (max-width: 900px) {
  .ekey-ac-layout { grid-template-columns: 1fr; gap: 16px; }
}

/* ── Filter ────────────────────────────────────────────────────────── */
.ekey-ac-filters { font-size: 14px; background: #f5f5f7; border-radius: 8px; padding: 20px; position: sticky; top: 120px; align-self: start; }
.ekey-ac-ftoggle { display: none; } /* nur auf Mobile sichtbar */
.ekey-ac-fgroup { margin-bottom: 22px; }
.ekey-ac-fgroup:last-child { margin-bottom: 0; }
.ekey-ac-fgroup h4 { font-size: 12px; letter-spacing: .05em; color: #8a8a89; margin: 0 0 10px; font-weight: 700; }
.ekey-ac-fopt { display: flex; align-items: center; gap: 8px; padding: 4px 0; color: #141617; cursor: pointer; }
.ekey-ac-fopt input { accent-color: #00457c; }
.ekey-ac-fname { flex: 1; }
.ekey-ac-fcount { color: #b0b0af; font-size: 12px; }
.ekey-ac-clear { margin-top: 6px; background: none; border: 0; padding: 0; color: #00457c; font-size: 13px; cursor: pointer; text-decoration: underline; }

/* Mobile: Filter einklappbar (Button toggelt das Panel) */
@media (max-width: 900px) {
  .ekey-ac-filters { position: static; background: none; border-radius: 0; padding: 0; }
  .ekey-ac-ftoggle {
    display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%;
    background: #f5f5f7; border: 1px solid #e8e8e8; border-radius: 8px; padding: 14px 16px;
    font-size: 15px; font-weight: 700; color: #141617; cursor: pointer;
  }
  .ekey-ac-ftoggle::after { content: '\25be'; color: #00457c; font-size: 16px; transition: transform .2s ease; }
  .ekey-ac-filters.is-open .ekey-ac-ftoggle::after { transform: rotate(180deg); }
  .ekey-ac-fpanel { display: none; background: #f5f5f7; border-radius: 8px; padding: 18px; margin-top: 10px; }
  .ekey-ac-filters.is-open .ekey-ac-fpanel { display: block; }
  .ekey-ac-fopt { padding: 8px 0; } /* größere Tap-Fläche */
}

/* ── Toolbar (Umschalter + Zähler) ─────────────────────────────────── */
.ekey-ac-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid #d0d0d0; flex-wrap: wrap; }
.ekey-ac-tabs { display: flex; flex-wrap: wrap; gap: 2px; }
.ekey-ac-tab { background: none; border: 0; padding: 8px 14px; font-size: 14px; font-weight: 600; color: #575756; cursor: pointer; border-bottom: 2px solid transparent; }
.ekey-ac-tab:hover { color: #141617; }
.ekey-ac-tab.is-active { color: #00457c; border-bottom-color: #00457c; }
.ekey-ac-toggle { display: inline-flex; border: 1px solid #e8e8e8; border-radius: 6px; overflow: hidden; }
.ekey-ac-toggle button { background: #fff; border: 0; padding: 9px 18px; font-size: 14px; font-weight: 600; color: #575756; cursor: pointer; }
.ekey-ac-toggle button + button { border-left: 1px solid #e8e8e8; }
.ekey-ac-toggle button.is-active { background: #00457c; color: #fff; }
.ekey-ac-count { color: #575756; font-size: 14px; font-weight: 600; }

/* Mobile: Umschalter volle Breite, Tabs horizontal scrollbar */
@media (max-width: 620px) {
  .ekey-ac-toolbar { gap: 12px; margin-bottom: 16px; }
  .ekey-ac-tabs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; order: 2; width: 100%; }
  .ekey-ac-tab { white-space: nowrap; flex: 0 0 auto; }
  .ekey-ac-toggle { order: 1; width: 100%; }
  .ekey-ac-toggle button { flex: 1; padding: 11px 12px; }
}

/* ── Karte: Nach Schulung ──────────────────────────────────────────── */
.ekey-ac-card {
  padding: 24px; border: 1px solid #e8e8e8; border-radius: 8px; background: #fff; margin-bottom: 20px;
}
@media (max-width: 620px) {
  .ekey-ac-card { padding: 18px; }
  .ekey-ac-trow { padding: 14px; }
}
@media (max-width: 400px) {
  .ekey-ac-trow .ekey-ac-tbtns { flex-wrap: wrap; }
  .ekey-ac-trow .ekey-ac-tbtns .ekey-btn { flex: 1 1 100%; }
}
.ekey-ac-datebox { text-align: center; line-height: 1; }
.ekey-ac-datebox .d { display: block; font-size: 30px; font-weight: 800; color: #141617; }
.ekey-ac-datebox .m { display: block; font-size: 13px; font-weight: 700; color: #00457c; margin-top: 3px; }
.ekey-ac-datebox .w { display: block; font-size: 12px; color: #8a8a89; margin-top: 3px; }

.ekey-ac-info { min-width: 0; }
.ekey-ac-title { font-size: 18px; font-weight: 700; color: #141617; margin: 8px 0 6px; line-height: 1.3; }
.ekey-ac-desc { color: #575756; font-size: 14px; line-height: 1.5; margin: 0 0 12px; }
.ekey-ac-ziel { color: #575756; font-size: 13px; margin-bottom: 10px; }
.ekey-ac-tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* ── Termine-Spalte ────────────────────────────────────────────────── */
.ekey-ac-termine { margin-top: 18px; padding-top: 18px; border-top: 1px solid #e8e8e8; }
.ekey-ac-trows { display: flex; flex-direction: column; gap: 12px; }
.ekey-ac-trow { background: #f5f5f7; border-radius: 8px; padding: 16px; }
.ekey-ac-trow.is-hidden { display: none; }
.ekey-ac-tlabel { font-size: 12px; color: #8a8a89; margin-bottom: 6px; }
.ekey-ac-tmeta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.ekey-ac-tdate { font-weight: 700; color: #141617; font-size: 15px; }
.ekey-ac-ttime { color: #575756; font-size: 13px; white-space: nowrap; }
.ekey-ac-tdur { color: #8a8a89; }
.ekey-ac-tbtns { display: flex; gap: 10px; }
.ekey-ac-trow .ekey-ac-tbtns .ekey-btn { flex: 1; text-align: center; }
.ekey-ac-more {
  display: block; width: 100%; margin-top: 12px; text-align: center; cursor: pointer;
  background: #fff; border: 1px solid #e8e8e8; border-radius: 8px; padding: 12px;
  color: #141617; font-size: 14px; font-weight: 600;
}
.ekey-ac-more:hover { background: #f5f5f7; }

/* ── Video-Kurs: Info links, Video (Thumbnail + Sprach-Buttons) rechts ─ */
.ekey-ac-card--video { display: grid; grid-template-columns: 1fr minmax(260px, 320px); gap: 28px; align-items: start; }
.ekey-ac-card--video .ekey-ac-info { min-width: 0; }
@media (max-width: 780px) { .ekey-ac-card--video { grid-template-columns: 1fr; } }

.ekey-ac-videos { margin-top: 4px; }
.ekey-ac-trows ~ .ekey-ac-videos { margin-top: 20px; padding-top: 20px; border-top: 1px solid #f0f0f0; }
.ekey-ac-vthumb { position: relative; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; cursor: pointer; background: #000; margin-bottom: 12px; }
.ekey-ac-vthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ekey-ac-vplay { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 62px; height: 44px; background: rgba(255, 0, 0, .9); border-radius: 11px; transition: background .15s ease; }
.ekey-ac-vplay::after { content: ''; position: absolute; top: 50%; left: 53%; transform: translate(-50%, -50%); border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent #fff; }
.ekey-ac-vthumb:hover .ekey-ac-vplay { background: #f00; }
.ekey-ac-vbtns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.ekey-ac-vbtn { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.ekey-ac-yt { width: 18px; height: auto; flex-shrink: 0; display: block; }
.ekey-ac-vdurlbl { color: #8a8a89; font-weight: 400; }

/* ── Video-Popup (Lightbox) ────────────────────────────────────────── */
.ekey-ac-modal { display: none; position: fixed; inset: 0; z-index: 99999; align-items: center; justify-content: center; padding: 24px; }
.ekey-ac-modal.is-open { display: flex; }
.ekey-ac-modal-bg { position: absolute; inset: 0; background: rgba(0, 0, 0, .8); }
.ekey-ac-modal-box { position: relative; width: 100%; max-width: 960px; }
.ekey-ac-modal-video { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 8px; overflow: hidden; }
.ekey-ac-modal-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ekey-ac-modal-x { position: absolute; top: -44px; right: 0; width: 36px; height: 36px; background: none; border: 0; color: #fff; font-size: 30px; line-height: 1; cursor: pointer; }

/* ── Nach Datum ────────────────────────────────────────────────────── */
.ekey-ac-drow { display: flex; align-items: flex-start; gap: 16px; padding: 20px 0; border-bottom: 1px solid #d0d0d0; }
.ekey-ac-drow:first-child { padding-top: 0; }
.ekey-ac-drow:last-child { border-bottom: 0; }
.ekey-ac-dbox { text-align: center; min-width: 48px; line-height: 1; padding-top: 2px; }
.ekey-ac-dbox .d { display: block; font-size: 22px; font-weight: 800; color: #141617; }
.ekey-ac-dbox .m { display: block; font-size: 11px; font-weight: 700; color: #00457c; }
.ekey-ac-dinfo { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ekey-ac-dtitle { color: #141617; font-weight: 600; }
.ekey-ac-ddesc { color: #575756; font-size: 14px; line-height: 1.5; margin: 2px 0 0; }
.ekey-ac-dtime { color: #575756; font-size: 13px; }
.ekey-ac-dinfo .ekey-ac-tags { margin-top: 4px; }
.ekey-ac-dbtns { flex-shrink: 0; }
@media (max-width: 640px) {
  .ekey-ac-drow { flex-wrap: wrap; }
  .ekey-ac-dbtns { width: 100%; }
}
.ekey-ac-dvideos { margin-top: 28px; }
.ekey-ac-dvideos-h { font-size: 16px; font-weight: 700; color: #141617; margin: 0 0 16px; padding-top: 24px; border-top: 1px solid #e8e8e8; }

/* ── Tags / Buttons (ekey-Blau) ────────────────────────────────────── */
.ekey-tag { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .02em; border-radius: 4px; padding: 3px 9px; }
.ekey-tag-type { color: #00457c; background: #eaf1f7; }
.ekey-tag-soft { color: #575756; background: #f2f2f2; }
.ekey-btn { display: inline-block; background: #00457c; color: #fff; padding: 8px 16px; border-radius: 6px; text-decoration: none !important; font-size: 14px; font-weight: 600; transition: background .15s ease; white-space: nowrap; }
.ekey-btn:hover { background: #003862; color: #fff; text-decoration: none !important; }
.ekey-btn-sm { padding: 6px 12px; font-size: 12px; }
.ekey-btn-ghost { background: #fff; color: #00457c; border: 1px solid #00457c; }
.ekey-btn-ghost:hover { background: #eaf1f7; color: #00457c; }
.ekey-empty, .ekey-ac-empty { color: #575756; }

/* Leerer Zustand (keine Schulungen) – Banner + CTA bleiben, nur die Liste ist leer */
.ekey-ac-none { max-width: 1248px; margin: 0 auto; padding: 0 20px; box-sizing: border-box; }
.ekey-ac-none p { color: #575756; font-size: 16px; background: #f5f5f7; border-radius: 8px; padding: 44px 20px; margin: 0; text-align: center; }

/* ── Messen & Events: Karten-Grid (zentriert, auto-fit) ────────────── */
.ekey-ev-grid { max-width: 1248px; margin: 0 auto; padding: 0 20px; box-sizing: border-box; display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 330px)); justify-content: center; gap: 28px; }
@media (max-width: 620px) { .ekey-ev-grid { grid-template-columns: 1fr; } }
.ekey-ev-card { background: #fff; border: 1px solid #e8e8e8; border-radius: 14px; padding: 26px 24px 28px; text-align: center; display: flex; flex-direction: column; align-items: center; transition: box-shadow .2s ease, transform .2s ease; }
.ekey-ev-card:hover { box-shadow: 0 12px 30px rgba(0, 0, 0, .09); transform: translateY(-3px); }
.ekey-ev-logo { width: 100%; height: 92px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.ekey-ev-logo img { max-width: 160px; max-height: 92px; width: auto; height: auto; object-fit: contain; }
.ekey-ev-title { font-size: 20px; font-weight: 700; color: #141617; line-height: 1.3; margin: 0 0 14px !important; }
.ekey-ev-date { display: inline-block; background: #f2f2f2; color: #575756; font-size: 13.5px; font-weight: 600; padding: 5px 14px; border-radius: 999px; margin: 0 0 16px !important; }
.ekey-ev-date strong { color: #141617; }
.ekey-ev-line { font-size: 14.5px; color: #575756; line-height: 1.5; margin: 0 !important; }
.ekey-ev-booth { margin-bottom: 10px !important; }
.ekey-ev-place { display: inline-flex; align-items: center; gap: 6px; justify-content: center; color: #141617; }
.ekey-ev-pin { width: 15px; height: 15px; color: #00457c; flex-shrink: 0; }
.ekey-ev-btn { display: block; width: 100%; margin-top: 22px; background: #4a4a4a; color: #fff; padding: 12px 18px; border-radius: 8px; font-size: 14px; font-weight: 600; text-decoration: none !important; transition: background .15s ease; }
.ekey-ev-btn:hover { background: #333; color: #fff; }

/* ── bionyx Service Health ─────────────────────────────────────────── */
.ekey-bx { max-width: 1248px; margin: 0 auto; padding: 0 20px; box-sizing: border-box; }
.ekey-bx-banner { border-radius: 16px; padding: 26px 32px; display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; }
.ekey-bx-banner--online { background: #2fb344; }
.ekey-bx-banner--limited { background: #febd01; }
.ekey-bx-banner--down { background: #e03131; }
.ekey-bx-btitle { color: #fff !important; font-size: 28px; font-weight: 800; margin: 0 !important; line-height: 1.2; }
.ekey-bx-bupd { color: rgba(255, 255, 255, .92); font-size: 14px; }
.ekey-bx-panel { background: #f5f5f7; border-radius: 16px; padding: 28px 32px; margin-top: 20px; }
.ekey-bx-h { font-size: 18px; font-weight: 700; color: #141617; margin: 0 0 20px !important; }
.ekey-bx-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 28px; }
@media (max-width: 820px) { .ekey-bx-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .ekey-bx-grid { grid-template-columns: 1fr; } }
.ekey-bx-item { display: flex; align-items: center; gap: 12px; font-size: 15px; color: #141617; }
.ekey-bx-ico { width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; }
.ekey-bx-ico svg { width: 13px; height: 13px; color: #fff; }
.ekey-bx-ico--online { background: #2fb344; }
.ekey-bx-ico--limited { background: #febd01; }
.ekey-bx-ico--down { background: #e03131; }
.ekey-bx-err { margin-top: 28px; }
.ekey-bx-err h4 { font-size: 17px; font-weight: 700; color: #141617; margin: 0 0 8px !important; }
.ekey-bx-err p { font-size: 15px; color: #575756; margin: 0 !important; line-height: 1.6; }

/* Mini-Status-Widget */
.ekey-bx-mini { max-width: 1248px; margin: 0 auto; background: #f7f7f8; border-radius: 16px; padding: 24px 26px; box-sizing: border-box; }
.ekey-bx-mini-h { font-size: 22px; font-weight: 800; color: #141617; margin: 0 0 16px !important; }
.ekey-bx-mini .ekey-bx-banner { border-radius: 12px; padding: 22px 28px; }
.ekey-bx-mini .ekey-bx-btitle { font-size: 24px; }
.ekey-bx-btn { display: inline-block; margin-top: 16px; background: #4a4a4a; color: #fff !important; padding: 9px 18px; border-radius: 6px; font-size: 14px; font-weight: 600; text-decoration: none !important; transition: background .15s ease; }
.ekey-bx-btn:hover { background: #333; }

/* ── CTA-Boxen unten (Kein Termin / Individuell / Fragen) ──────────── */
.ekey-ac-cta { max-width: 1248px; margin: 56px auto 0; padding: 0 20px; box-sizing: border-box; }
.ekey-ac-cta-inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 780px) { .ekey-ac-cta-inner { grid-template-columns: 1fr; gap: 20px; } }
.ekey-ac-cta-box { background: #f5f5f7; border-radius: 8px; padding: 28px; display: flex; flex-direction: column; align-items: flex-start; }
.ekey-ac-cta-box h4 { font-size: 17px; font-weight: 700; color: #141617; margin: 0 0 6px; }
.ekey-ac-cta-box p { color: #575756; font-size: 14px; line-height: 1.5; margin: 0 0 16px; }
.ekey-ac-cta-btn { display: inline-block; margin-top: auto; background: #4a4a4a; color: #fff; padding: 10px 18px; border-radius: 6px; font-size: 14px; font-weight: 600; text-decoration: none !important; transition: background .15s ease; }
.ekey-ac-cta-btn:hover { background: #333; color: #fff; }
