/* 0.5.7: responsive content containment; same approved V1.5 desktop design.
   Public frontend only. NO MASTER wp-admin CSS, no ticker CSS. */
@media (max-width:900px){
 body.vrfe-studio-active .vrx-shell,
 body.vrfe-studio-active .vrx-site-layout,
 body.vr-frontend-preview .site-layout {box-sizing:border-box;max-width:100%;min-width:0}
 body.vrfe-studio-active .vrx-site-layout,
 body.vrfe-studio-active .vrx-site-layout:not(.vrx-has-ads),
 body.vrfe-studio-active .vrx-site-layout:not(.vrx-has-compare),
 body.vr-frontend-preview .site-layout {grid-template-columns:minmax(0,1fr)!important}
 body.vrfe-studio-active .vrx-main-column,
 body.vrfe-studio-active .vrfe-main,
 body.vrfe-studio-active .vrfe-single,
 body.vrfe-studio-active .vrfe-managed-page,
 body.vr-frontend-preview .main-content {min-width:0;max-width:100%;width:auto}
 body.vr-frontend-preview .compare-wrap,
 body.vrfe-studio-active .vrx-compare-rail {min-width:0;max-width:100%;width:100%;position:static}
}
/* Text must wrap in cards, recovered Elementor HTML and search results. */
body.vrfe-studio-active :is(.vrfe-single__content,.vrfe-managed-page__content,.vrfe-article-source,.vrx-page-body,.vrfe-article-head,.vrfe-card__main),
body.vr-frontend-preview :is(.main-content,.deal-card,.card-main,.card-desc,.price-line,.card-merchant-line,.vr-studio-live-compare){
 min-width:0;max-width:100%;overflow-wrap:anywhere;word-break:normal
}
body.vrfe-studio-active :is(.vrfe-single__content,.vrfe-managed-page__content,.vrfe-article-source,.vrx-page-body) :is(h1,h2,h3,h4,p,li,a,span,strong),
body.vr-frontend-preview :is(.deal-card,.card-main) :is(h2,h3,p,a,strong){overflow-wrap:anywhere;word-break:normal}
body.vrfe-studio-active :is(.vrfe-single__content,.vrfe-managed-page__content,.vrfe-article-source,.vrx-page-body) :is(img,video,canvas,svg,picture),
body.vr-frontend-preview :is(.deal-list,.deal-card,.main-content) img {max-width:100%;height:auto}
/* Embedded players/rechner and code cannot widen the center grid track. */
body.vrfe-studio-active :is(.vrfe-single__content,.vrfe-managed-page__content,.vrfe-article-source,.vrx-page-body) :is(iframe,embed,object,pre),
body.vr-frontend-preview .main-content :is(iframe,embed,object,pre){max-width:100%!important;min-width:0!important}
body.vrfe-studio-active :is(.vrfe-single__content,.vrfe-managed-page__content,.vrfe-article-source,.vrx-page-body) pre,
body.vr-frontend-preview .main-content pre{overflow-x:auto;white-space:pre-wrap;overflow-wrap:anywhere}
/* Tables can scroll INSIDE the center column, not force the whole page wide. */
body.vrfe-studio-active :is(.vrfe-single__content,.vrfe-managed-page__content,.vrfe-article-source) :is(.table-scroll,.table-responsive,.vr-table-wrap,.responsive-table),
body.vr-frontend-preview .main-content :is(.table-scroll,.table-responsive,.vr-table-wrap){max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
@media(max-width:700px){
 /* Logo + labeled burger ONLY. Search moves into the expanded menu. */
 body.vrfe-studio-active .site-header .head-inner,
 body.vr-frontend-preview .site-header .head-inner {display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:9px 12px;min-width:0}
 body.vrfe-studio-active .site-header .site-brand,
 body.vr-frontend-preview .site-header .site-brand {flex:1 1 0;min-width:0;max-width:calc(100% - 91px);margin:0;overflow:hidden}
 body.vrfe-studio-active .site-header .brand-name,
 body.vr-frontend-preview .site-header .brand-name {font-size:clamp(13px,3.8vw,17px);min-width:0;overflow:hidden;text-overflow:ellipsis}
 body.vrfe-studio-active .site-header .brand-name small,
 body.vr-frontend-preview .site-header .brand-name small {font-size:10px}
 body.vrfe-studio-active .site-header .menu-toggle,
 body.vr-frontend-preview .site-header .menu-toggle {flex:0 0 auto;order:2;display:inline-flex;align-items:center;justify-content:center;min-height:39px;min-width:72px;width:auto;padding:0 9px;gap:6px}
 body.vrfe-studio-active .site-header.vrfe-header-compact .site-nav,
 body.vr-frontend-preview .site-header.vrfe-header-compact .site-nav {order:3;flex:0 0 100%;width:100%;min-width:0;max-width:100%;padding:9px 0;box-sizing:border-box;}
 body.vrfe-studio-active .site-header .site-nav .header-search.vrfe-search-in-menu,
 body.vr-frontend-preview .site-header .site-nav .header-search.vrfe-search-in-menu {display:flex;order:999;width:100%;max-width:none;min-width:0;flex:0 0 100%;margin:8px 0 0;position:relative}
 body.vrfe-studio-active .site-header .site-nav .header-search.vrfe-search-in-menu input,
 body.vr-frontend-preview .site-header .site-nav .header-search.vrfe-search-in-menu input {display:block;width:100%;min-width:0;box-sizing:border-box}
 body.vr-frontend-preview .site-layout {padding:12px 12px 45px!important}
 body.vrfe-studio-active .vrx-shell {width:100%;padding-left:12px;padding-right:12px;box-sizing:border-box}
 body.vrfe-studio-active .vrfe-single__content,
 body.vrfe-studio-active .vrfe-managed-page__content {padding:16px;min-width:0}
 body.vr-frontend-preview .deal-card {grid-template-columns:minmax(0,1fr)!important}
 body.vr-frontend-preview :is(.feed-header,.filter-tools,.card-footer,.card-merchant-line){flex-wrap:wrap;gap:8px}
 body.vr-frontend-preview .feed-controls {max-width:100%;flex-wrap:wrap}
 body.vr-frontend-preview .main-content :is(.hero-intro,.deal-card,.promo-card,.compare-card){min-width:0;max-width:100%}
 body.vrfe-studio-active :is(.vrfe-single__content,.vrfe-managed-page__content,.vrfe-article-source) :is(input,select,textarea,button){max-width:100%;min-width:0}
 body.vrfe-studio-active :is(.vrfe-single__content,.vrfe-managed-page__content,.vrfe-article-source,.vrx-page-body) table:not(.vrfe-no-scroll){display:block;max-width:100%!important;overflow-x:auto;-webkit-overflow-scrolling:touch}
 body.vrfe-studio-active :is(.vrfe-single__content,.vrfe-managed-page__content,.vrfe-article-source,.vrx-page-body) :is(td,th){overflow-wrap:anywhere;white-space:normal}
}
