/* Herzogstadtlauf: retain the established layout with TYPO3 14 extension markup.
   Percentage gutters follow the original project; mobile rules remain in responsive.css. */
.tx_cn-columns {
    --cn_multibreite33: 33.3%;
    --cn_multibreite66: 66%;
}

.tx_cn-columns .row + .row {
    margin-top: 20px;
}

.tx_cn-columns[data-cols="2"] .row > div > div {
    width: 98%;
    margin-left: 1%;
    margin-right: 1%;
}
.tx_cn-columns[data-cols="2"] .row > div:nth-child(odd) > div {
    margin-left: 0;
    margin-right: 2%;
}
.tx_cn-columns[data-cols="2"] .row > div:nth-child(even) > div {
    margin-left: 2%;
    margin-right: 0;
}

.tx_cn-columns[data-cols="3"] .row > div > div {
    width: 98%;
    margin-left: 0;
    margin-right: 2%;
}
.tx_cn-columns[data-cols="3"] .row > div:nth-child(2n) > div {
    margin-left: 1%;
    margin-right: 1%;
}
.tx_cn-columns[data-cols="3"] .row > div:nth-child(3n) > div {
    margin-left: 2%;
    margin-right: 0;
}

.tx_cn-columns[data-cols="4"] .row > div > div {
    width: 94%;
}
.tx_cn-columns[data-cols="4"] .row > div:nth-child(4n+1) > div {
    margin-left: 0;
    margin-right: 6%;
}
.tx_cn-columns[data-cols="4"] .row > div:nth-child(4n+2) > div {
    margin-left: 2%;
    margin-right: 4%;
}
.tx_cn-columns[data-cols="4"] .row > div:nth-child(4n+3) > div {
    margin-left: 4%;
    margin-right: 2%;
}
.tx_cn-columns[data-cols="4"] .row > div:nth-child(4n+4) > div {
    margin-left: 6%;
    margin-right: 0;
}

/* Multicontent now uses buttons. Keep their native semantics and project appearance. */
button.ui-accordion-header {
    appearance: none;
    box-sizing: content-box;
    border: 0;
    font-family: inherit;
    font-weight: 700;
    line-height: normal;
    color: var(--linkdark);
    text-align: left;
    margin: 0 0 20px;
}

/* Long feedback checkbox groups must fit their mobile content column. */
.frame-feedbackformular .layout1 .checkbox {
    max-width: 100%;
    box-sizing: border-box;
}

/* Allow the fieldset to shrink below its children's intrinsic desktop width. */
.powermail_fieldset {
    min-inline-size: 0;
}
