/*
 * SECTION (container nrwkultur_section)
 * Several content elements, framed like all content elements (frame--<frame_class>, see BaseContentElement.css).
 * The frame "filled" is the light grey surface within the column of the element (main column next to the aside, full
 * width of the main area without aside), it doesn't reach beyond main into the aside or the viewport edges.
 */

.content-element--nrwkultur_section {
    --cb-section--padding: var(--content-element--gap--large);
}

/* Distance to the elements around like the inner spacing, overrides the spacing between elements (BaseContentElement) */
.content-element.content-element--nrwkultur_section.frame--filled,
.content-element + .content-element.content-element--nrwkultur_section.frame--filled {
    margin-block: var(--cb-section--padding);
}

/* Inner spacing of the surface like the distance to the elements around */
.content-element.content-element--nrwkultur_section.frame--filled {
    padding: var(--cb-section--padding);
}

/*
 * Filled elements in a section with the same surface are not visible as box, their inner spacing would only increase
 * the distance to the elements around and indent the text. Other surfaces keep the box.
 */
.content-element--nrwkultur_section.frame--filled.surface--light-grey .content-element.frame--filled.surface--light-grey,
.content-element--nrwkultur_section.frame--filled.surface--light-blue .content-element.frame--filled.surface--light-blue,
.content-element--nrwkultur_section.frame--filled.surface--purple .content-element.frame--filled.surface--purple,
.content-element--nrwkultur_section.frame--filled.surface--dark-grey .content-element.frame--filled.surface--dark-grey {
    padding: 0;
}

.cb-section > .content-element__header {
    margin-bottom: var(--space--m);
}
