/* =========================================
   SETTINGS PANEL
========================================= */

#cb-live-settings{
    position: absolute;
    width: 320px;
    max-width: 90vw;

    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;

    padding: 16px;

    box-shadow: 
        0 20px 50px rgba(0,0,0,0.15),
        0 4px 10px rgba(0,0,0,0.05);

    z-index: 9999;

    font-family: system-ui, sans-serif;

    /* 🔥 wichtig */
    max-height: 70vh;
    overflow-y: auto;
}

/* HEADER */

.cb-settings-title{
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
}

.cb-settings-sub{
    font-size: 11px;
    color: #999;
    margin-bottom: 12px;
}

/* FIELD */

.cb-setting{
    margin-bottom: 14px;
}

.cb-setting label{
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #777;
    margin-bottom: 4px;
}

/* INPUT */

.cb-setting input{
    width: 100%;
    padding: 8px 10px;

    border: 1px solid #ddd;
    border-radius: 8px;

    font-size: 13px;
}

.cb-setting input:focus{
    outline: none;
    border-color: #b45309;
    box-shadow: 0 0 0 2px rgba(180,83,9,0.15);
}

/* SCROLLBAR (nice touch) */

#cb-live-settings::-webkit-scrollbar{
    width: 6px;
}

#cb-live-settings::-webkit-scrollbar-thumb{
    background: rgba(0,0,0,0.2);
    border-radius: 10px;
}

/* =========================================
   REAL FULL WIDTH FIX (TARGETED)
========================================= */

/* 🔥 DAS ist der entscheidende Selector */
.site-content > .cb-theme-container-fix {
    width: 100%;
}

/* 🔥 Container direkt über Builder aufbrechen */
.site-content > .container,
.site-content > .bb-container,
.site-content > .bp-wrap {
    max-width: none !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;

}

/* optional fallback */
.site-main {
    max-width: none !important;
}

.cb-page-builder-preview [data-widget-root]{
    display: flow-root;
}

/* =========================================
   PREVIEW TOPBAR (PIXEL MATCH)
========================================= */

.cb-pb-topbar{
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* rechter Bereich */
.cb-pb-right{
    display: flex;
    align-items: center;
}

/* Hover */
.cb-pb-topbar button:hover{
    background: #2a2a2a;
    transform: translateY(-1px);
}

/* Active (Click Feel) */
.cb-pb-topbar button:active{
    transform: translateY(0px) scale(0.98);
}
/* Button identisch */
.cb-pb-topbar button{
    background: #111;
    color: #fff;
    border: none;

    padding: 10px 16px;
    border-radius: 8px;

    cursor: pointer;

    font-size: 14px;
    font-weight: 500;

    display: inline-flex;
    align-items: center;
    gap: 6px;

    transition: all .15s ease;
}

.cb-pb-topbar button:hover{
    background: #2a2a2a;
}

.cb-pb-topbar button:active{
    transform: scale(0.98);
}

.cb-page-builder-preview{
    padding: 0;
    margin: 0;
}

.cb-live-widget h1,
.cb-live-widget h2,
.cb-live-widget h3,
.cb-live-widget h4,
.cb-live-widget h5,
.cb-live-widget h6,
.cb-live-widget p{
    margin-top: 0;
    margin-bottom: 0;
}

.cb-live-widget{
    line-height: 1;
}

/* =========================================
   SECTION FLOW LOCK
========================================= */

.cb-section{
	position: relative;

	width: 100%;
	clear: both;

	display: block !important;
	flex: none !important;
}

.cb-columns{
	display: flex;

	width: 100%;
	align-items: stretch;

	flex-wrap: nowrap !important;
}

.cb-column{
	display: flex;
	flex-direction: column;

	min-width: 0;
}



.cb-widget{
	width: 100%;
}

.cb-live-widget{
	width: 100%;
}

