/* EP Mega Menu 1.3: drei Ebenen im Hell-Dunkel-Mix
   Leiste (dunkel) | Einträge (dunkel) | Produktbühne (hell).
   Theme-Resistance wie im klassischen Layout: Uncode stylt alles unter ul.menu-smart
   (Großbuchstaben, Padding, Hover-Farben), daher doppelte Klassen und !important an den
   umkämpften Eigenschaften. Keine min-height und kein transform auf Layout-Containern. */

/* Klassischer Modus: Menüs ohne altes Layout blenden ihren neuen Menüpunkt aus */
li.menu-item:has(.epmm-hide-self) { display: none !important; }

/* Uncode-Wrapper ohne Abstände */
li.megamenu-block-wrapper:has(.ept-root),
li.megamenu-block-wrapper:has(.ept-root) > .vc_row,
li.megamenu-block-wrapper:has(.ept-root) .row,
li.megamenu-block-wrapper:has(.ept-root) .row-parent,
li.megamenu-block-wrapper:has(.ept-root) .row-inner,
li.megamenu-block-wrapper:has(.ept-root) .wpb_column,
li.megamenu-block-wrapper:has(.ept-root) .uncol,
li.megamenu-block-wrapper:has(.ept-root) .uncoltable,
li.megamenu-block-wrapper:has(.ept-root) .uncell,
li.megamenu-block-wrapper:has(.ept-root) .uncont,
li.megamenu-block-wrapper:has(.ept-root) .wpb_raw_code,
li.megamenu-block-wrapper:has(.ept-root) .wpb_text_column,
li.megamenu-block-wrapper:has(.ept-root) .wpb_wrapper {
  margin: 0 !important;
  padding: 0 !important;
}

.ept-root {
  --acc: #c3590d;
  --acc-h: #de6a14;
  --ink: #141618;
  --ink-2: #1b1e21;
  --paper: #f4efe9;
  --line-d: rgba(255,255,255,.10);
  --line-l: rgba(20,22,24,.10);
  --mute-d: rgba(243,241,238,.58);
  --mute-l: #6f6a64;
  --ease: cubic-bezier(.23,1,.32,1);
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: var(--ink);
  color: #f3f1ee;
  font-size: 15px;
  line-height: 1.5;
  text-align: left;
  text-transform: none;
  letter-spacing: normal;
  box-shadow: 0 55px 80px -40px rgba(0,0,0,.6);
}
.ept-root *, .ept-root *::before, .ept-root *::after { box-sizing: border-box; font-family: inherit; }
.ept-root.ept-root :where(a, a:link, a:visited, a:hover, a:focus, button) {
  text-decoration: none !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  box-shadow: none !important;
  margin: 0 !important;
  opacity: 1 !important;
  visibility: inherit !important;
  background-image: none !important;
  font-family: inherit !important;
}
.ept-root img { max-width: none !important; margin: 0 !important; padding: 0 !important; border: 0 !important; display: block !important; }
.ept-root .ept-ico { width: 14px; height: 14px; flex: none; display: inline-block; vertical-align: middle; }
.ept-root :focus-visible { outline: 2px solid var(--acc) !important; outline-offset: 2px; }

.ept-mm {
  display: grid;
  grid-template-columns: 280px auto minmax(0,1fr);
  align-items: stretch;
}

/* ---------- Ebene 1: Leiste ---------- */
.ept-rail {
  background: var(--ink);
  padding: 34px 0 28px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line-d);
}
.ept-root .ept-kicker {
  display: block;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: .2em !important;
  text-transform: uppercase !important;
  color: var(--acc) !important;
  line-height: 1.2 !important;
}
.ept-rail > .ept-kicker { padding: 0 32px 18px; }
.ept-root.ept-root .ept-g {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 13px 32px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--mute-d) !important;
  font-size: 20px !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  text-align: left;
  cursor: pointer;
  position: relative;
  transition: color .18s ease !important;
}
.ept-g::before {
  content: "";
  position: absolute;
  left: 0; top: 10px; bottom: 10px;
  width: 3px;
  background: var(--acc);
  transform: scaleY(0);
  transition: transform .25s var(--ease);
}
.ept-root.ept-root .ept-g.is-active,
.ept-root.ept-root .ept-g:hover { color: #f3f1ee !important; }
.ept-g.is-active::before { transform: scaleY(1); }
.ept-root .ept-n { font-size: 12px !important; font-weight: 500 !important; opacity: .7; font-variant-numeric: tabular-nums; letter-spacing: .02em !important; }

.ept-foot { margin-top: auto; padding: 22px 32px 0; display: flex; flex-direction: column; gap: 14px; }
.ept-root.ept-root .ept-btn {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--acc) !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
  line-height: 1.35 !important;
  padding: 14px 18px !important;
  border-radius: 2px !important;
  transition: background-color .2s ease !important;
}
.ept-root.ept-root .ept-btn:hover { background: var(--acc-h) !important; color: #fff !important; }
.ept-btn-n { font-weight: 500; opacity: .85; }
.ept-mini { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.ept-root.ept-root .ept-mini a {
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: .06em !important;
  text-transform: uppercase !important;
  color: var(--mute-d) !important;
  padding: 0 !important;
  line-height: 1.6 !important;
  display: inline !important;
}
.ept-root.ept-root .ept-mini a:hover { color: var(--acc) !important; }

.ept-search {
  margin: 0 32px 18px !important;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line-d);
  border-radius: 2px;
  padding: 0 12px;
  color: var(--mute-d);
}
.ept-root .ept-search input[type="search"] {
  flex: 1;
  min-width: 0;
  height: 44px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #f3f1ee !important;
  font-size: 14px !important;
  box-shadow: none !important;
  outline: none;
}

/* ---------- Ebene 2: Einträge ---------- */
.ept-list {
  background: var(--ink-2);
  padding: 34px 28px 28px;
  width: 320px;
  border-right: 1px solid var(--line-d);
  display: grid;
}
.ept-list--wide { width: 540px; }
.ept-pane { grid-area: 1 / 1; visibility: hidden; opacity: 0; transition: opacity .18s ease, visibility 0s linear .18s; }
.ept-pane.is-active { visibility: visible; opacity: 1; transition: opacity .18s ease, visibility 0s; }
.ept-h {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--mute-d);
  padding: 0 12px 14px;
  line-height: 1.2;
}
.ept-items { display: grid; grid-template-columns: 1fr; gap: 0 8px; }
.ept-pane--2 .ept-items { grid-template-columns: repeat(2, minmax(0,1fr)); grid-auto-flow: column; grid-template-rows: repeat(var(--ept-rows, 8), auto); }
.ept-root.ept-root .ept-li {
  display: flex !important;
  align-items: center;
  gap: 10px;
  padding: 9px 12px !important;
  border-radius: 2px !important;
  color: #f3f1ee !important;
  background: transparent !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
  transition: background-color .15s ease, color .15s ease !important;
}
.ept-lbl { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ept-li .ept-n { color: var(--mute-d); }
.ept-li .ept-ico { opacity: 0; transform: translateX(-4px); color: var(--acc); transition: opacity .15s ease, transform .2s var(--ease); }
.ept-root.ept-root .ept-li.is-active { background: rgba(195,89,13,.12) !important; color: var(--acc) !important; }
.ept-li.is-active .ept-ico { opacity: 1; transform: none; }
.ept-badge {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 3px 6px 2px;
  border-radius: 2px;
  background: rgba(195,89,13,.16);
  color: var(--acc);
  white-space: nowrap;
  line-height: 1.3;
}

/* ---------- Ebene 3: Bühne ---------- */
.ept-stage {
  background: var(--paper);
  color: #1b1d1f;
  padding: 34px 40px 32px;
  display: grid;
  overflow: hidden;
}
.ept-st { grid-area: 1 / 1; visibility: hidden; opacity: 0; display: flex; flex-direction: column; gap: 22px; }
.ept-st.is-active { visibility: visible; opacity: 1; animation: ept-up .26s var(--ease); }
@keyframes ept-up { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.ept-st-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-l);
}
.ept-st-head .ept-kicker { margin-bottom: 6px; }
.ept-title { display: block; font-size: 30px; line-height: 1.1; font-weight: 700; letter-spacing: -.01em; color: #1b1d1f; }
.ept-root.ept-root .ept-out {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
  line-height: 1.3 !important;
  color: #1b1d1f !important;
  background: transparent !important;
  padding: 12px 16px !important;
  border: 1px solid #1b1d1f !important;
  border-radius: 2px !important;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease !important;
}
.ept-root.ept-root .ept-out:hover { background: var(--acc) !important; border-color: var(--acc) !important; color: #fff !important; }

.ept-body { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; max-width: 1320px; }
.ept-body--img { grid-template-columns: 1.25fr repeat(3, minmax(0,1fr)); }
.ept-root.ept-root .ept-img { display: block !important; position: relative; overflow: hidden; border-radius: 4px !important; background: var(--ink); min-height: 280px; padding: 0 !important; }
.ept-img img { position: absolute !important; inset: 0; width: 100% !important; height: 100% !important; object-fit: cover; pointer-events: none; }
.ept-img--contain img { object-fit: contain; padding: 28px !important; }
.ept-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,22,24,0) 45%, rgba(20,22,24,.75)); pointer-events: none; }
.ept-img-l {
  position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 1;
  display: flex; justify-content: space-between; align-items: center;
  color: #fff; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; line-height: 1.3;
}
.ept-root.ept-root .ept-card {
  display: flex !important;
  flex-direction: column;
  gap: 10px;
  background: #fff !important;
  color: #1b1d1f !important;
  border-radius: 4px !important;
  padding: 14px 14px 16px !important;
  transition: box-shadow .25s ease, transform .25s var(--ease) !important;
}
.ept-st.is-active .ept-card { animation: ept-up .32s var(--ease) both; }
.ept-st.is-active .ept-card:nth-child(2) { animation-delay: .03s; }
.ept-st.is-active .ept-card:nth-child(3) { animation-delay: .06s; }
.ept-st.is-active .ept-card:nth-child(4) { animation-delay: .09s; }
@media (hover: hover) {
  .ept-root.ept-root .ept-card:hover { box-shadow: 0 20px 40px -24px rgba(0,0,0,.45) !important; transform: translateY(-2px); }
  .ept-root.ept-root .ept-card:hover .ept-card-n { color: var(--acc); }
}
.ept-card-m { display: block; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 2px; background: #fff; }
.ept-card-m img { width: 100% !important; height: 100% !important; object-fit: contain; }
.ept-card-n {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-size: 14px; font-weight: 600; line-height: 1.3; min-height: 2.6em; transition: color .15s ease;
}
.ept-card-p { margin-top: auto; font-size: 15px; font-weight: 700; line-height: 1.3; font-variant-numeric: tabular-nums; }
.ept-card-p .woocommerce-Price-amount { color: inherit !important; font-weight: inherit !important; }
.ept-root.ept-root .ept-more { background: transparent !important; border: 1px dashed rgba(20,22,24,.18); justify-content: flex-end; }
.ept-more-n { font-size: 42px; line-height: 1; font-weight: 700; color: var(--acc); }
.ept-more-l { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; line-height: 1.35; }

/* ---------- schmalere Bildschirme ---------- */
@media (max-width: 1499px) {
  .ept-mm { grid-template-columns: 240px auto minmax(0,1fr); }
  .ept-rail > .ept-kicker, .ept-root.ept-root .ept-g, .ept-foot { padding-left: 24px !important; padding-right: 24px !important; }
  .ept-search { margin: 0 24px 18px !important; }
  .ept-root.ept-root .ept-g { font-size: 18px !important; }
  .ept-list { width: 280px; padding: 34px 18px 28px; }
  .ept-list--wide { width: 440px; }
  .ept-li .ept-badge { display: none; }
  .ept-stage { padding: 34px 28px 32px; }
  .ept-body, .ept-body--img { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .ept-body--img .ept-img { display: none !important; }
  .ept-body:not(.ept-body--img) > .ept-card:nth-child(4) { display: none !important; }
  .ept-title { font-size: 26px; }
}
@media (max-width: 1279px) {
  .ept-list--wide { width: 380px; }
  .ept-body, .ept-body--img { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .ept-body > .ept-card:nth-child(n+3), .ept-body--img > .ept-card:nth-child(n+4) { display: none !important; }
  .ept-st-head { flex-direction: column; align-items: flex-start; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .ept-root *, .ept-root *::before { animation: none !important; transition: none !important; }
}
