/* ===== Stickybar Grundsetup ===== */
#vb-stickybar{
  position:fixed; left:0; right:0;
  top: var(--vb-sticky-top, 0px);
  z-index:2500; display:none; transform:translateZ(0);
  
}
#vb-stickybar.is-visible{ display:block;}

/* Inhalt: Titel/Subtitel links, Menübutton rechts – GLAS (klar wie Footer) */
#vb-stickybar .vb-stickybar__inner{
  max-width: var(--wp--style--global--content-size, 1200px);
  margin:0 auto;
  padding:12px 16px;
  display:flex; align-items:center; gap:12px;

  /* Glas-Look abgestimmt auf Footer */
  background: rgba(255,255,255,.82); 
  -webkit-backdrop-filter: blur(14px) saturate(120%) brightness(0.08);
          backdrop-filter: blur(44px) saturate(120%) brightness(0.08);

  border-bottom: 1px solid rgba(255,255,255,.45);
  border-left: 0px solid rgba(255,255,255,.45);
  border-right: 0px solid rgba(255,255,255,.45);
  border-top: none;


  box-shadow: 0 8px 22px rgba(15,23,42,.12); /* etwas weicher */
  outline: none;
  box-sizing: border-box;
}

.vb-stickybar__left{
  display:flex; gap:10px; align-items:baseline; flex:1 1 auto; min-width:0;
  font:600 15px/1.25 system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif; color:#0f172a;
  flex-wrap:wrap;
}

#vb-stickytitle{ font-weight:800; color:#008a67; font-size:18px; line-height:1.2; }

#vb-stickysub{
  font-weight:600; color:#2d2d2d !important; opacity:.8; white-space:normal; overflow:hidden;
  display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; line-clamp:2;
}

  /* Menü-Button – grüner Glass-Button mit weißer Schrift */
  #vbStickyMenuBtn{
    margin-left:auto;
    display:inline-flex; align-items:center; gap:.5rem;
    padding:.55rem 1rem;
    border-radius:999px;
    background: rgba(0,138,103,.88);
    color:#fff;
    border: 1px solid rgba(255,255,255,.55);
    backdrop-filter: saturate(100%) blur(4px);
    -webkit-backdrop-filter: saturate(100%) blur(4px);
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
    font:700 15px/1.1 system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
    cursor:pointer; outline:none; -webkit-tap-highlight-color:transparent;
  }
  #vbStickyMenuBtn:hover{ background: rgba(0,116,89,.92); }
  #vbStickyMenuBtn:active{ transform:translateY(1px); }
  #vbStickyMenuBtn svg{ width:20px; height:20px; display:block; color:#fff; fill:currentColor; }

  /* ===== Vollbild-Menü (Panel) – GLAS, scrollbar bleibt ===== */
  #vbPanelSafe{
    position:fixed; inset:0; z-index:6000;
    display:none; overflow-y:auto; -webkit-overflow-scrolling:touch;

    background: rgba(255,255,255,.82);
    backdrop-filter: saturate(120%) blur(14px);
    -webkit-backdrop-filter: saturate(120%) blur(14px);
  }
  #vbPanelSafe.is-open{ display:block; }

  /* Panel-Topbar (mit Logo links, X rechts) – GLAS */
  #vbPanelSafe .vbOverlayBar{
    position: sticky;
    top: var(--vb-sticky-top, 0px);
    z-index: 1;
    display:flex; justify-content:space-between; align-items:center;
    gap:12px; padding:10px 16px; min-height:72px;

    background: rgba(255,255,255,.85);
    backdrop-filter: saturate(140%) blur(10px);
    -webkit-backdrop-filter: saturate(140%) blur(10px);
    border-bottom: 1px solid rgba(255,255,255,.35);
  }
  #vbPanelSafe .vbOverlayClose{
    color:#000; font-weight:700;
    width:44px; height:44px;
    display:inline-flex; align-items:center; justify-content:center;
    background:none; border:0; cursor:pointer;
    font-size:28px; line-height:1; padding:4px 8px;
  }
  #vbPanelSafe .vbColSafe{ display:block; padding:13px 16px 28px; }
  #vbPanelSafe .vbLinkSafe{
    display:block; padding:13px 6px; font-size:18px; font-weight:600;
    color:#0f172a; text-decoration:none;
    border-bottom:1px solid #e6e6e6;
  }
  #vbPanelSafe .vbOverlayBrand{ display:inline-flex; align-items:center; gap:10px; padding:4px 8px; }
  #vbPanelSafe .vbOverlayBrand img,
  #vbPanelSafe .vbOverlayBrand svg{ height:56px !important; max-height:56px !important; width:auto !important; display:block; }

  /* Scroll-Offset für Anker */
  .vb-menue .vbdi-cat-section{ scroll-margin-top: calc(var(--vb-sticky-top, 0px) + 50px); }

  /* Desktop: Bar innerhalb der Content-Spalte ausrichten */
  @media (min-width:1024px){
    #vb-stickybar.is-aligned{ left:var(--vb-bar-left,0px); right:auto; width:var(--vb-bar-width,auto); }
  }

  /* Optional: Header-Fremdmenüs ausblenden */
  .elementor-menu-cart__toggle, .menu-toggle, .site-navigation-toggle { display:none !important; }

  /* Fallback ohne backdrop-filter */
  @supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))){
    #vb-stickybar .vb-stickybar__inner{
      background:#fff; outline:1px solid #eaeaea; box-shadow:0 1px 8px rgba(0,0,0,.06);
    }
    #vbPanelSafe, #vbPanelSafe .vbOverlayBar{ background:#fff; border-bottom:1px solid #e6e6e6; }
    #vbStickyMenuBtn{ background:#008a67; border:2px solid #008a67; backdrop-filter:none; -webkit-backdrop-filter:none; }
  }
  
  
  /* === FIX für iOS-Jank: kein Transform auf der Stickybar === */
#vb-stickybar{
  transform: none !important;
  will-change: auto !important;
}

/* === Glas-Look über Pseudo-Element, damit das Fixed-Layer stabil bleibt === */
#vb-stickybar .vb-stickybar__inner{
  position: relative;
  
  background: transparent !important;    /* eigentlicher Layer bleibt „clean“ */
  border-bottom: 0 !important;
}

#vb-stickybar .vb-stickybar__inner::before{
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;                           /* hinter den Inhalt legen */


  /* Glas-Optik */
  background: rgba(255,255,255,.2);
  backdrop-filter: saturate(120%) blur(18px);
  -webkit-backdrop-filter: saturate(120%) blur(18px);

  /* Kontur & Schatten wie gehabt */
  outline: 1px solid rgba(255,255,255,.40);
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
}

/* Menü-Button etwas transparenter im Glas-Stil */
#vbStickyMenuBtn{
  background: rgba(0,138,103,.78) !important; /* minimal heller/transparenter */
  backdrop-filter: saturate(100%) blur(6px);
  -webkit-backdrop-filter: saturate(100%) blur(6px);
  color:#fff !important;
  border: 2px solid rgba(255,255,255,.25) !important;
}
#vbStickyMenuBtn:hover{
  background: rgba(0,116,89,.86) !important;
}


/* Untertitel */
#vb-stickybar #vb-stickysub{
  color: #2d2d2d !important;   /* gut lesbares Grau */
  opacity: .9;                /* leicht softer Look */
}