/* pebro Menü - Menüzeile, Mega-Menü, Handy-Menü (Markup baut frontend/js/menue.js).
   Marke: Schwarz/Weiß, Orange #E87100 nur als Akzent, Headlines groß + leicht. */

/* NOVA-Kategorieleiste nur verstecken, solange das Kopf-Skript läuft (Klasse am <html>) */
@media (min-width: 992px) {
  html.pebro-menue #mainNavigation .nav-scrollbar-inner,
  html.pebro-menue #mainNavigation .nav-scrollbar-arrow { display: none !important; }
}
html.pebro-menue body.pbm-offen { overflow: hidden; }

/* ---------- Kopf: ruhiger, Logo kleiner, Suche bekommt Platz, Sonderanfertigungen wandert ins Menü ---------- */
html.pebro-menue .pebro-sonder-li, html.pebro-menue .pebro-sonder-oc { display: none !important; }
html.pebro-menue #logo .navbar-brand img, html.pebro-menue #logo img { height: 32px !important; width: auto !important; max-height: none !important; }
@media (min-width: 992px) {
  html.pebro-menue #jtl-nav-wrapper nav.navbar { min-height: 64px; }
  html.pebro-menue #shop-nav { flex: 1 1 auto; justify-content: flex-end; }
  html.pebro-menue #shop-nav > li#search { flex: 1 1 auto; max-width: 560px; margin-right: auto; margin-left: 32px; }
  html.pebro-menue #shop-nav > li#search .search-wrapper { width: 100%; }
  html.pebro-menue #shop-nav > li#search .twitter-typeahead { flex: 1 1 auto; width: auto; }
}
@media (max-width: 991.98px) { html.pebro-menue #logo .navbar-brand img, html.pebro-menue #logo img { height: 26px !important; } }

.pbm-leiste, .pbm-panel, .pbm-drawer { --pbm-ease: cubic-bezier(.23, 1, .32, 1); --pbm-ease-drawer: cubic-bezier(.32, .72, 0, 1); --pbm-schwarz: #111; --pbm-text: #2b2b2b; --pbm-grau: #6f6f6f; --pbm-linie: #ececec;
  --pbm-flaeche: #f7f6f4; --pbm-akzent: #E87100; font-family: Poppins, "Open Sans", system-ui, sans-serif; }

/* ---------- Menüzeile ---------- */
.pbm-leiste { position: relative; background: #fff; border-top: 1px solid var(--pbm-linie); }
.pbm-leiste__inner { display: flex; align-items: center; gap: 4px; max-width: 1400px; margin: 0 auto; padding: 0 24px; }
.pbm-leiste__liste { display: flex; align-items: stretch; gap: 4px; margin: 0; padding: 0; list-style: none; flex: 1; min-width: 0; }
.pbm-punkt { position: relative; display: flex; align-items: center; height: 48px; padding: 0 14px; color: var(--pbm-schwarz) !important;
  font-size: 15px; font-weight: 500; letter-spacing: .01em; text-decoration: none !important; white-space: nowrap;
  background: none; border: 0; cursor: pointer; }
.pbm-punkt::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 2px; background: var(--pbm-schwarz);
  transform: scaleX(0); transform-origin: left; transition: transform .22s ease; }
.pbm-punkt:hover::after, .pbm-punkt[aria-expanded="true"]::after, .pbm-punkt.ist-aktiv::after { transform: scaleX(1); }
.pbm-punkt:focus-visible { outline: 2px solid var(--pbm-akzent); outline-offset: -2px; }
.pbm-punkt--akzent { color: var(--pbm-akzent) !important; }
.pbm-punkt--akzent::after { background: var(--pbm-akzent); }
/* Sonderanfertigungen: letzter Punkt, bewusst leise - nur ein kleines 3D-Kennzeichen */
.pbm-punkt__marke { margin-left: 7px; padding: 2px 5px 1px; border: 1px solid currentColor; border-radius: 4px; font-size: 9.5px; font-weight: 600;
  letter-spacing: .06em; line-height: 1.2; color: var(--pbm-akzent); }
.pbm-punkt__pfeil { width: 10px; height: 10px; margin-left: 6px; opacity: .5; transition: transform .2s ease; }
.pbm-punkt[aria-expanded="true"] .pbm-punkt__pfeil { transform: rotate(180deg); }
.pbm-leiste__rechts { margin-left: auto; }
.pbm-punkt--haendler { font-size: 14px; color: var(--pbm-grau) !important; }
.pbm-punkt--haendler::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--pbm-akzent); margin-right: 8px; }
@media (max-width: 991.98px) { .pbm-leiste { display: none; } }

/* ---------- Mega-Menü ---------- */
.pbm-panel { position: absolute; left: 0; right: 0; top: 100%; z-index: 1040; background: #fff; border-top: 1px solid var(--pbm-linie);
  box-shadow: 0 28px 48px -18px rgba(0, 0, 0, .18); opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity 140ms ease-out, transform 140ms ease-out, visibility 0s linear 140ms; }
.pbm-panel.ist-offen { opacity: 1; visibility: visible; transform: none; transition: opacity 200ms var(--pbm-ease), transform 200ms var(--pbm-ease); }
.pbm-panel__inner { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; max-width: 1400px; margin: 0 auto;
  padding: 36px 24px 40px; max-height: calc(100vh - 220px); overflow: auto; }
.pbm-panel__inner--ohne-teaser { grid-template-columns: minmax(0, 1fr); }
.pbm-panel__kopf { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin: 0 0 28px; }
.pbm-panel__titel { margin: 0; font-size: 30px; font-weight: 300; letter-spacing: -.01em; line-height: 1.1; color: var(--pbm-schwarz); }
.pbm-alle { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--pbm-schwarz) !important;
  text-decoration: none !important; border-bottom: 1px solid currentColor; padding-bottom: 2px; white-space: nowrap; }
.pbm-alle:hover { color: var(--pbm-akzent) !important; }
.pbm-spalten { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 28px 40px; }
.pbm-spalte__kopf { display: block; margin: 0 0 10px; padding-bottom: 10px; border-bottom: 1px solid var(--pbm-linie);
  font-size: 12px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--pbm-schwarz) !important; text-decoration: none !important; }
.pbm-spalte__kopf:hover { color: var(--pbm-akzent) !important; }
.pbm-links { margin: 0; padding: 0; list-style: none; }
.pbm-links a { display: inline-block; padding: 5px 0; font-size: 15px; line-height: 1.45; color: var(--pbm-text) !important; text-decoration: none !important;
  transition: color .15s ease, transform .15s ease; }
.pbm-links a { transition: color 150ms ease, transform 150ms var(--pbm-ease); }
@media (hover: hover) and (pointer: fine) { .pbm-links a:hover { color: var(--pbm-akzent) !important; transform: translateX(3px); } }
.pbm-links--gross { columns: 3 200px; column-gap: 48px; max-width: 920px; }
.pbm-links--gross li { break-inside: avoid; border-bottom: 1px solid var(--pbm-linie); }
.pbm-links--gross a { display: block; font-size: 16px; font-weight: 400; padding: 12px 0; color: var(--pbm-schwarz) !important; }
.pbm-mehr { margin-top: 6px; font-size: 13px !important; font-weight: 500; color: var(--pbm-grau) !important; }

/* Teaser-Kachel */
.pbm-teaser { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 280px; padding: 24px;
  border-radius: 14px; overflow: hidden; background: var(--pbm-schwarz) center/cover no-repeat; color: #fff !important; text-decoration: none !important; }
.pbm-teaser::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.72) 100%); }
.pbm-teaser > * { position: relative; }
.pbm-teaser__kicker { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--pbm-akzent); margin-bottom: 8px; }
.pbm-teaser__titel { font-size: 22px; font-weight: 300; line-height: 1.2; margin: 0 0 8px; color: #fff; }
.pbm-teaser__text { font-size: 14px; line-height: 1.5; color: rgba(255,255,255,.82); margin: 0 0 16px; }
.pbm-teaser__cta { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px;
  background: #fff; color: var(--pbm-schwarz); font-size: 13px; font-weight: 600; transition: background .15s ease, color .15s ease; }
.pbm-teaser:hover .pbm-teaser__cta { background: var(--pbm-akzent); color: #fff; }

/* kleines Händler-Panel */
.pbm-panel--klein .pbm-panel__inner { grid-template-columns: minmax(0, 1fr); padding-top: 24px; padding-bottom: 28px; }
.pbm-kacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.pbm-kachel { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-radius: 12px;
  background: var(--pbm-flaeche); color: var(--pbm-schwarz) !important; font-size: 15px; font-weight: 500; text-decoration: none !important;
  transition: background .15s ease; }
@media (hover: hover) and (pointer: fine) { .pbm-kachel:hover { background: #efece7; } }
.pbm-kachel, .pbm-pill, .pbm-knopf-rund, .pbm-teaser__cta { transition: transform 160ms ease-out, background-color 150ms ease, color 150ms ease; }
.pbm-kachel:active, .pbm-pill:active, .pbm-knopf-rund:active, .pbm-teaser:active .pbm-teaser__cta { transform: scale(.97); }
.pbm-zeile:active { background: var(--pbm-flaeche); }
.pbm-kachel svg { flex: none; width: 16px; height: 16px; }

/* ---------- Handy-Menü ---------- */
.pbm-schleier { position: fixed; inset: 0; z-index: 1060; background: rgba(0,0,0,.4); opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility 0s linear .25s; }
.pbm-schleier.ist-offen { opacity: 1; visibility: visible; transition: opacity .25s ease; }
.pbm-drawer { position: fixed; top: 0; bottom: 0; left: 0; z-index: 1061; width: min(88vw, 420px); background: #fff; display: flex; flex-direction: column;
  transform: translateX(-102%); transition: transform 400ms var(--pbm-ease-drawer); box-shadow: 12px 0 40px rgba(0,0,0,.12); }
.pbm-drawer.ist-offen { transform: none; }
.pbm-drawer__kopf { display: flex; align-items: center; justify-content: space-between; height: 60px; padding: 0 12px 0 20px; border-bottom: 1px solid var(--pbm-linie); flex: none; }
.pbm-drawer__marke { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--pbm-grau); }
.pbm-knopf-rund { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: none; color: var(--pbm-schwarz); cursor: pointer; }
.pbm-knopf-rund:hover { background: var(--pbm-flaeche); }
.pbm-knopf-rund svg { width: 20px; height: 20px; }
.pbm-ebenen { position: relative; flex: 1; overflow: hidden; }
.pbm-ebene { position: absolute; inset: 0; overflow-y: auto; padding: 8px 20px 28px; background: #fff; transform: translateX(100%);
  transition: transform 300ms var(--pbm-ease-drawer); }
.pbm-ebene.ist-aktiv { transform: none; }
.pbm-ebene.ist-links { transform: translateX(-30%); }
.pbm-zurueck { display: inline-flex; align-items: center; gap: 6px; margin: 8px 0 4px; padding: 8px 0; border: 0; background: none;
  font-size: 14px; font-weight: 500; color: var(--pbm-grau); cursor: pointer; }
.pbm-zurueck svg { width: 14px; height: 14px; }
.pbm-ebene__titel { margin: 4px 0 6px; font-size: 26px; font-weight: 400; letter-spacing: -.01em; color: var(--pbm-schwarz); }
.pbm-ebene .pbm-alle { margin: 0 0 14px; }
.pbm-zeilen { margin: 0; padding: 0; list-style: none; }
.pbm-zeile { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 54px; padding: 0; border: 0;
  border-bottom: 1px solid var(--pbm-linie); background: none; text-align: left; color: var(--pbm-schwarz) !important; text-decoration: none !important;
  font-size: 17px; font-weight: 400; cursor: pointer; }
.pbm-zeilen--haupt .pbm-zeile { min-height: 58px; font-size: 19px; font-weight: 400; letter-spacing: -.005em; }
.pbm-zeile--akzent { color: var(--pbm-akzent) !important; }
.pbm-zeile svg { width: 16px; height: 16px; opacity: .45; flex: none; }
.pbm-drawer__extra { margin-top: 24px; display: grid; gap: 10px; }
.pbm-drawer__extra .pbm-kachel { font-size: 15px; }
.pbm-pill { display: flex; align-items: center; justify-content: center; min-height: 50px; border-radius: 999px; background: var(--pbm-schwarz);
  color: #fff !important; font-size: 15px; font-weight: 600; text-decoration: none !important; }
.pbm-unterkopf { margin: 22px 0 8px; font-size: 12px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--pbm-grau); }
@media (prefers-reduced-motion: reduce) {
  .pbm-panel, .pbm-drawer, .pbm-ebene, .pbm-schleier, .pbm-punkt::after, .pbm-links a { transition: none !important; }
}
