/* 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; }
/* object-position statt nur "center": der Rahmen bleibt gleich hoch, das Bild
   wandert darin. Plus verschiebt es nach unten (man sieht mehr vom oberen
   Rand), Minus nach oben. */
.ekey-hero img { width: 100%; height: 340px; object-fit: cover; object-position: center calc(50% + 40px); 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; }
/* Gruppenueberschrift (Thema, Produkt, Sprache) sieht aus wie eine
   Oberkategorie darunter - vorher war die obere Ebene die kleinere von
   beiden, was die Gliederung auf den Kopf stellte. */
.ekey-ac-fgroup h4 { font-size: inherit; letter-spacing: 0; color: #101828; margin: 0 0 2px; font-weight: 600; }
.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; }
/* Themen-Chips über dem Titel – ein Kurs kann in mehreren Themen sitzen. */
.ekey-ac-themen { 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; }

/* ── Türpartner ([ekey_partner]) ─────────────────────────────────────── */
/* Gleiche Content-Breite wie die Academy; Karten bewusst weich und ruhig:
   Schatten statt Rahmen, ekey-Blau (#00457c) statt Schwarz, sanfte Hover. */
.ekey-pt-banners { max-width: 1248px; margin: 30px auto 28px; padding: 0 20px; box-sizing: border-box; }
/* Aktionsbanner: Bild vollflächig, Textfläche als Glas-Panel */
.ekey-pt-banner { position: relative; border-radius: 16px; overflow: hidden;
  background-size: cover; background-position: center; min-height: 280px;
  display: flex; align-items: center; padding: 40px; }
.ekey-pt-banner + .ekey-pt-banner { margin-top: 16px; }
.ekey-pt-banner-box { background: rgba(255,255,255,0.8);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-radius: 12px; padding: 28px 32px; max-width: 440px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12); }
.ekey-pt-banner-title { margin: 0 0 10px; font-size: 27px; line-height: 1.2; color: #141617; }
.ekey-pt-banner-sub { margin: 0 0 18px; color: #3a3d40; }
.ekey-pt-banner-btn, .ekey-pt-banner-btn:hover, .ekey-pt-banner-btn:focus,
.ekey-pt-banner-btn:visited { text-decoration: none !important; }
.ekey-pt-banner-btn { display: inline-block; background: #00457c; color: #fff;
  padding: 11px 22px; border-radius: 999px; font-size: 14px; font-weight: 600;
  transition: background .15s, transform .15s; }
.ekey-pt-banner-btn:hover { background: #003561; color: #fff; transform: translateY(-1px); }

/* Layout: Filter links, Gruppen rechts – identisch zur Academy */
.ekey-pt-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;
}
/* Filterkasten im Academy-Look */
.ekey-pt-filter { font-size: 14px; background: #f5f5f7; border-radius: 8px;
  padding: 20px; position: sticky; top: 120px; align-self: start; }
.ekey-pt-filter-h { font-size: 12px; letter-spacing: .05em; color: #8a8a89;
  margin: 0 0 10px; font-weight: 700; }
.ekey-pt-fopt { display: flex; align-items: center; gap: 8px; padding: 4px 0;
  color: #141617; cursor: pointer; }
.ekey-pt-fopt input { accent-color: #00457c; }
.ekey-pt-filter[hidden] { display: none; }
.ekey-pt-layout:has(.ekey-pt-filter[hidden]) { grid-template-columns: 1fr; }

.ekey-pt-groups { min-width: 0; }
.ekey-pt-group { margin-bottom: 44px; }
/* Gruppentitel mit dezentem Zähler-Strich in ekey-Blau */
.ekey-pt-group-h { margin: 0 0 18px; font-size: 22px; color: #141617;
  display: flex; align-items: center; gap: 12px; }
.ekey-pt-group-h::after { content: ""; flex: 1; height: 1px; background: #e6e7e9; }

/* Feste Spalten je Stufe: 3 (Top, groß) / 4 (Excellence) / 6 (Partner, Logos) */
.ekey-pt-grid { display: grid; gap: 20px; }
.ekey-pt-grid--3 { grid-template-columns: repeat(3, 1fr); }
.ekey-pt-grid--4 { grid-template-columns: repeat(4, 1fr); gap: 16px; }
.ekey-pt-grid--6 { grid-template-columns: repeat(6, 1fr); gap: 12px; }

/* Karten: weiß, weicher Schatten, Lift beim Drüberfahren */
.ekey-pt-card { border: 1px solid #ececee; border-radius: 14px; padding: 26px 20px 22px;
  text-align: center; background: #fff; display: flex; flex-direction: column;
  align-items: center; box-shadow: 0 1px 3px rgba(20,22,23,0.05);
  transition: box-shadow .18s, transform .18s, border-color .18s; }
.ekey-pt-card:hover { transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(20,22,23,0.10); border-color: #e0e1e4; }
.ekey-pt-logo { height: 64px; display: flex; align-items: center; margin-bottom: 16px; }
.ekey-pt-logo img { max-height: 100%; max-width: 170px; object-fit: contain; }
.ekey-pt-name { margin: 0 0 12px; font-size: 16px; line-height: 1.3; color: #141617;
  font-weight: 600; }
.ekey-pt-desc { margin: 0 0 16px; font-size: 13.5px; color: #5b5f63; line-height: 1.55; }
.ekey-pt-btn, .ekey-pt-btn:hover, .ekey-pt-btn:focus,
.ekey-pt-btn:visited { text-decoration: none !important; }
.ekey-pt-btn { display: inline-block; margin-top: auto; color: #00457c;
  border: 1.5px solid #00457c; background: none; padding: 7px 18px;
  border-radius: 999px; font-size: 13px; font-weight: 600;
  transition: background .15s, color .15s; }
.ekey-pt-btn:hover { background: #00457c; color: #fff; }

/* Logo-Kachel der untersten Stufe: Graustufen, Farbe beim Drüberfahren */
.ekey-pt-tile { display: flex; align-items: center; justify-content: center;
  border: 1px solid #ececee; border-radius: 12px; background: #fff;
  padding: 16px 12px; min-height: 76px; box-sizing: border-box;
  transition: box-shadow .18s, transform .18s; }
.ekey-pt-tile img { max-height: 44px; max-width: 100%; object-fit: contain;
  filter: grayscale(1); opacity: .75; transition: filter .18s, opacity .18s; }
.ekey-pt-tile:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(20,22,23,0.08); }
.ekey-pt-tile:hover img { filter: none; opacity: 1; }
.ekey-pt-tile-name { font-size: 12px; color: #5b5f63; text-align: center; line-height: 1.3; }
a.ekey-pt-tile { text-decoration: none !important; }

/* „alle zeigen": Text-Button mit Chevron statt grauem Kasten */
.ekey-pt-more { margin-top: 16px; background: none; border: 0; padding: 4px 0;
  font-size: 14px; font-weight: 600; color: #00457c; cursor: pointer; }
.ekey-pt-more::after { content: " ›"; }
.ekey-pt-more:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .ekey-pt-layout { grid-template-columns: 1fr; gap: 16px; }
  .ekey-pt-filter { position: static; }
  .ekey-pt-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .ekey-pt-grid--4 { grid-template-columns: repeat(3, 1fr); }
  .ekey-pt-grid--6 { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 620px) {
  .ekey-pt-banner { padding: 18px; min-height: 190px; }
  .ekey-pt-banner-box { padding: 18px 20px; }
  .ekey-pt-grid--3 { grid-template-columns: 1fr; }
  .ekey-pt-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .ekey-pt-grid--6 { grid-template-columns: repeat(3, 1fr); }
}

/* ── Datenblätter ──────────────────────────────────────────────────── */
/* Keine Unterstreichung an den Links. Avada setzt sie über eigene Regeln,
   die spezifischer sind als eine Klasse allein – deshalb hier ausdrücklich
   und für alle Zustände, sonst taucht sie beim Überfahren wieder auf. */
.ekey-db a, .ekey-db a:link, .ekey-db a:visited,
.ekey-db a:hover, .ekey-db a:focus, .ekey-db a:active,
.ekey-db-druck a, .ekey-db-druck a:hover, .ekey-db-druck a:focus,
.ekey-db-detail a, .ekey-db-detail a:hover, .ekey-db-detail a:focus,
a.ekey-db-print, a.ekey-db-print:link, a.ekey-db-print:visited,
a.ekey-db-print:hover, a.ekey-db-print:focus, a.ekey-db-print:active {
  text-decoration: none !important;
  box-shadow: none !important;   /* manche Themes zeichnen die Linie so */
}
.ekey-db { max-width: 1248px; margin: 0 auto; padding: 0 20px; box-sizing: border-box; }

/* Suche */
.ekey-db-suche { margin: 0 0 18px; }
.ekey-db-suche-l { display: block; font-size: 13px; font-weight: 600; color: #5a6270; margin-bottom: 6px; }
.ekey-db-input {
  width: 100%; max-width: 520px; box-sizing: border-box; padding: 12px 14px;
  border: 1px solid #d8dce1; border-radius: 10px; font-size: 16px; background: #fff;
}
.ekey-db-input:focus { outline: none; border-color: #00457c; box-shadow: 0 0 0 3px rgba(0,69,124,.12); }

/* Trefferliste der Live-Suche – hängt unter dem Feld wie ein Vorschlagsfeld */
.ekey-db-feld { position: relative; max-width: 520px; }
.ekey-db-liste {
  position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px);
  background: #fff; border: 1px solid #d8dce1; border-radius: 12px;
  box-shadow: 0 12px 34px rgba(0,0,0,.12); overflow: auto; max-height: 62vh;
}
.ekey-db-treffer {
  display: flex; gap: 12px; align-items: center; padding: 10px 12px;
  text-decoration: none; color: inherit; border-bottom: 1px solid #f2f3f5;
}
.ekey-db-treffer:last-child { border-bottom: 0; }
.ekey-db-treffer:hover, .ekey-db-treffer.is-on { background: #f4f8fb; }
.ekey-db-treffer-bild { flex: none; width: 44px; height: 44px; display: flex;
  align-items: center; justify-content: center; }
.ekey-db-treffer-bild img { max-width: 100%; max-height: 100%; }
.ekey-db-treffer-bild--leer { background: #f4f6f8; border-radius: 6px; }
.ekey-db-treffer-text { display: flex; flex-direction: column; min-width: 0; }
.ekey-db-treffer-name { font-weight: 600; line-height: 1.3; }
.ekey-db-treffer-sku { font-size: 12px; color: #8a8f98; }
.ekey-db-leer, .ekey-db-mehr { margin: 0; padding: 14px 12px; font-size: 14px; color: #8a8f98; }
.ekey-db-mehr { border-top: 1px solid #f2f3f5; }
/* Trefferzahl unter dem Feld. Feste Mindesthöhe, damit die Zeile beim Tippen
   nicht auf- und zuklappt und der Inhalt darunter springt. */
.ekey-db-zahl { min-height: 20px; margin: 8px 0 0; font-size: 13px; color: #8a8f98; }

/* Einzelansicht */
.ekey-db-detail { max-width: 1000px; margin: 0 auto; }
.ekey-db-back { margin: 0 0 14px; font-size: 14px; }
.ekey-db-back a { color: #00457c; text-decoration: none; }
.ekey-db-back a:hover { color: #003257; }
.ekey-db-head { display: flex; gap: 20px; align-items: flex-start;
  justify-content: space-between; flex-wrap: wrap; margin-bottom: 22px; }
.ekey-db-title { margin: 0 0 6px; font-size: 30px; line-height: 1.2; }
.ekey-db-sub { margin: 0 0 6px; color: #5a6270; font-size: 17px; }
.ekey-db-sku { margin: 0; font-size: 14px; color: #8a8f98; }
.ekey-db-print {
  flex: none; border: 1px solid #00457c; background: #fff; color: #00457c;
  border-radius: 10px; padding: 10px 18px; font-size: 15px; cursor: pointer;
}
.ekey-db-print:hover { background: #00457c; color: #fff; }
/* Zwei Knöpfe nebeneinander: Drucken zurückhaltend, PDF als das Angebot,
   das die meisten wollen – deshalb gefüllt. */
.ekey-db-knoepfe { display: flex; gap: 10px; flex: none; }
.ekey-db-print--voll { background: #00457c; color: #fff; }
.ekey-db-print--voll:hover { background: #003257; border-color: #003257; color: #fff; }

.ekey-db-top { display: flex; gap: 28px; align-items: flex-start; margin-bottom: 22px; flex-wrap: wrap; }
.ekey-db-img { flex: none; width: 260px; margin: 0; border: 1px solid #ececee;
  border-radius: 14px; padding: 16px; box-sizing: border-box; text-align: center; background: #fff; }
.ekey-db-img img { max-width: 100%; height: auto; }
.ekey-db-stamm { flex: 1; min-width: 280px; }

.ekey-db-desc { margin: 0 0 26px; line-height: 1.6; }
.ekey-db-h2 { font-size: 22px; margin: 0 0 4px; }
.ekey-db-h2::after { content: ""; display: block; width: 46px; height: 3px;
  background: #cad400; margin-top: 8px; }

.ekey-db-section { margin-top: 22px; }
.ekey-db-section-h { font-size: 15px; font-weight: 700; color: #00457c;
  background: #f4f6f8; padding: 9px 12px; border-radius: 6px; margin: 0 0 2px; }
.ekey-db-table { width: 100%; border-collapse: collapse; }
.ekey-db-table th, .ekey-db-table td { text-align: left; vertical-align: top;
  padding: 9px 12px; border-bottom: 1px solid #f0f1f3; font-weight: 400; }
.ekey-db-table th { width: 46%; color: #5a6270; }
.ekey-db-table td { font-weight: 600; }

@media (max-width: 640px) {
  .ekey-db-title { font-size: 24px; }
  .ekey-db-img { width: 100%; }
  .ekey-db-table th { width: 50%; }
}

/* ── Academy-Filter: Ober- und Unterthemen ─────────────────────────────── */
/* Oberthema traegt selbst nie einen Kurs – es fasst seine Unterthemen
   zusammen und schaltet sie gemeinsam. */
/* Oberthema: reine Ueberschrift ohne Kaestchen. Die Unterthemen darunter sind
   eingerueckt, damit die Zugehoerigkeit ohne Erklaerung lesbar ist.
   Luft gehoert UEBER die Ueberschrift - sie trennt die Gruppen. Darunter
   moeglichst wenig, damit die Ueberschrift zu ihren Unterthemen gehoert und
   nicht zwischen den Gruppen schwebt. */
.ekey-ac-fgroup .ekey-ac-ftop {
  font-weight: 600; color: #101828; margin: 18px 0 2px; line-height: 1.3;
}
.ekey-ac-fgroup .ekey-ac-ftop:first-of-type { margin-top: 0; }
.ekey-ac-ftop + .ekey-ac-fopt { padding-top: 0; }
/* Bewusst ohne Einzug: alles beginnt an derselben Kante. Die Zugehoerigkeit
   traegt schon die Ueberschrift darueber - ein Einzug wuerde die Kaestchen
   gegeneinander versetzen und die Spalte unruhig machen. Die Klasse bleibt
   als Merkmal stehen, falls doch einmal etwas daran haengen soll. */
/* Die Trefferzahl steht ruhig hinter dem Namen, nicht als Blickfang. */
.ekey-ac-fnum { color: #98a2b3; font-weight: 400; font-size: 12.5px; }
