/* 1 Column Layout */
.layout-1-col #site-content {
    flex-grow: 1;
    min-width: 0;
}

.layout-1-col .main-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* 2 Column Layout */
.layout-2-col #sidebar {
    width: var(--sidebar-width);
    border-right: 1px solid var(--color-border);
    background-color: var(--color-bg-sidebar);
    color: var(--color-text-white);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

.layout-2-col #site-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* 3 Column Layout */
.layout-3-col #sidebar {
    width: var(--sidebar-width);
    border-right: 1px solid var(--color-border);
    background-color: var(--color-bg-sidebar);
    color: var(--color-text-main);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

.layout-3-col #site-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.layout-3-col #info-panel {
    width: var(--info-panel-width);
    border-left: 1px solid var(--color-border);
    background-color: var(--color-bg-alt);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

/* Strukturen Page specific 50/50 split */
.page-strukturen #site-content,
.page-strukturen #info-panel {
    flex: 1;
    width: auto !important;
}
