/* =========================================================
 * BOOKFAIR MANAGER – ANMELDEFORMULAR
 * ========================================================= */


/* =========================================================
 * GRUNDLAYOUT
 * ========================================================= */

.bfm-application {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 40px;
    align-items: start;
}

#bfm-bereichsauswahl,
.bfm-simple-application {
    grid-column: 1 / -1;
    width: 100%;
}

.bfm-application-content {
    grid-column: 1 / -1;

    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 40px;
    align-items: start;

    width: 100%;
}

.bfm-application-content[hidden],
.bfm-simple-application[hidden] {
    display: none;
}


/*
 * Grundschrift des eigentlichen Formulars
 * etwas kleiner als die Bereichsauswahl.
 */
.bfm-application-content,
.bfm-simple-application {
    font-size: calc(1rem - 1px);
}


/*
 * Schriftart vom übergeordneten
 * WordPress-Container übernehmen.
 */
.bfm-application,
.bfm-application input,
.bfm-application select,
.bfm-application textarea,
.bfm-application button,
.bfm-application h1,
.bfm-application h2,
.bfm-application h3,
.bfm-application h4,
.bfm-application p,
.bfm-application label,
.bfm-application span,
.bfm-application strong,
.bfm-application a,
.bfm-message,
.bfm-message * {
    font-family: inherit !important;
}


/* =========================================================
 * BEREICHSAUSWAHL
 * ========================================================= */

.bfm-area-selection-logo {
    margin: 0 0 36px;
    text-align: center;
}

.bfm-area-selection-logo img {
    display: block;
    width: auto;
    max-width: 320px;
    max-height: 180px;
    height: auto;
    margin: 0 auto;
}


.bfm-area-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}


.bfm-area-card {
    --bfm-area-color: transparent;

    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 110px;
    padding: 24px 20px;

    border: 1px solid currentColor;
    border-radius: 10px;

    background: transparent;

    text-align: center;
    cursor: pointer;

    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        background-color 0.15s ease,
        border-width 0.15s ease;
}


.bfm-area-card strong {
    display: block;

    font-size: 1.1rem;
    line-height: 1.25;
}


.bfm-area-card:hover {
    transform: translateY(-2px);

    background-color: var(--bfm-area-color);
    border-width: 2px;

    box-shadow:
        0 6px 16px rgba(0, 0, 0, 0.08);
}


.bfm-area-card.is-active {
    background-color: var(--bfm-area-color);
    border-width: 2px;
}


/* Bereichsfarben */

/* Bereichsfarben – entsprechend der sichtbaren Reihenfolge */

.bfm-area-card[data-bfm-area="marktplatz"] {
    --bfm-area-color:
        var(--wp--preset--color--custom-akzent-1);
}

.bfm-area-card[data-bfm-area="galerie"] {
    --bfm-area-color:
        var(--wp--preset--color--custom-akzent-2);
}

.bfm-area-card[data-bfm-area="profi"] {
    --bfm-area-color:
        var(--wp--preset--color--custom-akzent-3);
}

.bfm-area-card[data-bfm-area="genuss"] {
    --bfm-area-color:
        var(--wp--preset--color--custom-akzent-4);
}

.bfm-area-card[data-bfm-area="programm"] {
    --bfm-area-color:
        var(--wp--preset--color--custom-akzent-1);
}

.bfm-area-card[data-bfm-area="fachbesucher"] {
    --bfm-area-color:
        var(--wp--preset--color--custom-akzent-2);
}
.bfm-area-introduction {
    display: flex;
    align-items: flex-start;
    justify-content: center;

    min-height: 110px;

    margin-top: 24px;

    text-align: center;
}


#bfm-area-introduction-text {
    white-space: pre-line;
    width: 100%;
    max-width: 1080px;

    min-height: 70px;

    margin: 0 auto;
    padding: 10px 4px;

    box-sizing: border-box;

    text-align: center;
}

.bfm-area-start {
    display: none !important;
}


.bfm-application-content {
    margin-top: 24px;
}

/* =========================================================
 * FORMULARABSCHNITTE
 * ========================================================= */

.bfm-section {
    padding: 20px 0 60px;

    border-bottom: 1px solid #ddd;

    scroll-margin-top: 30px;
}


.bfm-section:first-child {
    padding-top: 0;
}


.bfm-section label {
    display: block;
    margin-bottom: 20px;
}


.bfm-field {
    margin-bottom: 24px;
}


.bfm-field-row {
    display: grid;

    grid-template-columns:
        minmax(155px, 0.55fr)
        minmax(0, 2fr);

    align-items: start;

    gap: 20px 28px;

    width: 100%;
    max-width: none;
}
.bfm-field-row > label {
    margin: 8px 0 0;

    font-weight: 600;
    line-height: 1.25;
}
.bfm-field-row > select {
    width: 100%;
    max-width: none;
    margin: 0;
}


.bfm-section input {    display: block;

    width: 100%;
    max-width: 400px;

    margin-top: 6px;
}


.bfm-field input[type="text"],
.bfm-field input[type="email"],
.bfm-field input[type="tel"],
.bfm-field input[type="url"],
.bfm-field select,
.bfm-field textarea {
    width: 100%;
    max-width: 650px;

    margin-top: 6px;
}


.bfm-input-with-unit {
    display: flex;
    align-items: center;
    gap: 10px;

    margin-top: 6px;
}


.bfm-input-with-unit input {
    width: 140px;
}


.bfm-field-hint {
    margin-top: 6px;

    font-size: 0.9em;

    opacity: 0.75;
}


.bfm-required {
    display: inline-block;

    margin-left: 3px;

    color: #c93535;

    font-size: 0.72em;
    font-weight: 700;

    vertical-align: top;
}

.bfm-checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;

    margin-top: 24px;
}


.bfm-checkbox-row input {
    width: auto;
    margin-top: 4px;
}


.bfm-fixed-depth,
.bfm-stand-price-info {
    margin: 16px 0;
}


.bfm-stand-hint {
    margin-top: 24px;
    padding: 16px;

    border: 1px solid #ddd;
}


/* =========================================================
 * FARBIGE ÜBERSCHRIFTSBALKEN
 * ========================================================= */

.bfm-section > h2 {
    margin: 0 0 24px;
    padding: 10px 14px;

    border-radius: 4px;

    font-size: 1.4em;
    line-height: 1.2;
}

/*
 * Hauptabschnitte entsprechend
 * der linken Navigation.
 */

#bfm-stand > h2 {
    background:
        var(--wp--preset--color--custom-akzent-1);
}


#bfm-leistungen > h2 {
    background:
        var(--wp--preset--color--custom-akzent-2);
}


#bfm-produkte > h2 {
    background:
        var(--wp--preset--color--custom-akzent-3);
}


#bfm-daten > h2 {
    background:
        var(--wp--preset--color--custom-akzent-4);
}


#bfm-hinweise > h2 {
    background:
        var(--wp--preset--color--custom-akzent-1);
}

.bfm-stand-size > h3 {
    margin: 0 0 18px;

    font-size: 1.2em;
    font-weight: 600;
    line-height: 1.2;
}


.bfm-stand-size-grid {
    display: grid;

    grid-template-columns:
        minmax(150px, 1fr)
        32px
        minmax(130px, 1fr)
        32px
        minmax(130px, 1fr);

    align-items: stretch;

    gap: 8px;

    max-width: 760px;

    padding: 14px;

    border: 1px solid rgba(0, 0, 0, 0.14);
    border-radius: 10px;

    background: rgba(0, 0, 0, 0.018);
}


.bfm-stand-size-cell {
    display: flex;
    flex-direction: column;
    justify-content: center;

    min-height: 82px;

    padding: 10px 12px;

    text-align: center;

    border-radius: 7px;

    background: #fff;
}

.bfm-stand-size-label {
    margin-bottom: 6px;

    font-size: 0.8em;
    opacity: 0.7;
}


.bfm-stand-size-value {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 6px;
}


.bfm-stand-size-value input {
    width: 100px;
    margin: 0;

    padding: 8px 10px;

    text-align: center;
    font-size: 1.05em;
    font-weight: 600;
}

.bfm-stand-size-result {
    min-height: 38px;

    display: flex;

    align-items: center;
    justify-content: center;

    font-size: 1.05em;
}


.bfm-stand-size-minimum {
    margin-top: 4px;

    font-size: 0.75em;
    opacity: 0.7;
}


.bfm-stand-size-operator {
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    text-align: center;

    font-size: 1.2em;
    opacity: 0.55;
}

/* =========================================================
 * STANDFORM-KARTEN
 * ========================================================= */

.bfm-standform-grid {
    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(350px, 1fr)
        );

    gap: 20px;

    margin-top: 18px;
}


.bfm-standform-card {
    position: relative;

    display: flex;
    flex-direction: column;

    min-width: 0;

    padding: 14px;

    border:
        1px solid rgba(0, 0, 0, 0.18);

    border-radius: 8px;

    background: #fff;

    cursor: pointer;

    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        transform 0.15s ease,
        background-color 0.15s ease;
}


/*
 * Radio technisch vorhanden,
 * optisch aber nicht sichtbar.
 */

.bfm-standform-radio {
    position: absolute;

    opacity: 0;

    pointer-events: none;
}


.bfm-standform-header {
    min-height: 52px;

    margin-bottom: 8px;

    text-align: center;
}


.bfm-standform-name {
    display: block;

    font-size: 1.2em;
    font-weight: 600;
    line-height: 1.2;
}


.bfm-standform-details {
    display: block;

    margin-top: 5px;

    font-size: 1em;
    line-height: 1.2;

    opacity: 0.75;
}


.bfm-standform-image-wrap {
    display: flex;

    align-items: center;
    justify-content: center;

    flex: 1;

    min-height: 230px;

    margin-top: 6px;
}


.bfm-standform-image {
    display: block;

    width: 100%;
    max-width: 350px;
    height: 225px;

    margin: 0;

    object-fit: contain;

    border: 0;

    box-shadow: none;
}


.bfm-standform-card:hover,
.bfm-service-checkbox:hover,
#bfm-produkte:not(.is-products-disabled) .bfm-product-option:hover,
.bfm-choice-card:hover,
.bfm-consent-card:hover,
a.bfm-document-link:hover,
.bfm-secondary-button:not(:disabled):hover,
.bfm-summary-submit .bfm-submit:not(:disabled):hover {
    transform: translateY(-2px);

    border-color:
        rgba(0, 0, 0, 0.4);

    box-shadow:
        0 5px 14px rgba(0, 0, 0, 0.09);
}


.bfm-service-checkbox,
.bfm-product-option,
.bfm-choice-card,
.bfm-consent-card,
a.bfm-document-link,
.bfm-secondary-button,
.bfm-summary-submit .bfm-submit {
    border-radius: 8px;

    transition:
        transform 0.15s ease,
        background-color 0.15s ease,
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}


/*
 * Ausgewählte Standform
 */

.bfm-standform-card:has(
    .bfm-standform-radio:checked
) {
    border-width: 2px;

    background:
    var(
        --wp--preset--color--custom-akzent-4,
        #ffcdc3
    );

    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.08);
}


/*
 * Wenn nur eine Standform
 * verfügbar ist.
 */

.bfm-standform-fixed {
    display: flex;
    flex-direction: column;

    width: 100%;
    max-width: 520px;

    margin: 18px 0 24px;
    padding: 14px;

    box-sizing: border-box;

    text-align: center;

    border:
        2px solid rgba(0, 0, 0, 0.18);

    border-radius: 8px;

    background:
        var(--wp--preset--color--custom-akzent-4);

    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.08);
}


.bfm-standform-fixed .bfm-standform-image-wrap {
    min-height: 230px;
}


.bfm-standform-fixed-note {
    margin-top: 8px;
    padding: 8px 12px;

    border-radius: 6px;

    background: rgba(255, 255, 255, 0.65);

    font-size: 0.9em;
    font-weight: 600;
}

/* =========================================================
 * ZUSATZLEISTUNGEN
 * ========================================================= */

.bfm-services-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 16px;

    margin-top: 24px;
}


.bfm-service-card {
    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 10px;

    min-height: 78px;
    padding: 16px 18px;

    border: 1px solid rgba(0, 0, 0, 0.16);
    border-radius: 8px;

    background: #fff;

    text-align: center;

    transition:
        background-color 0.15s ease,
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}


.bfm-service-card input[type="number"] {
    width: 70px;
    margin: 0 auto;

    text-align: center;
}


.bfm-service-checkbox {
    position: relative;
    cursor: pointer;
}


.bfm-service-checkbox input[type="checkbox"] {
    position: absolute;

    width: 1px;
    height: 1px;

    opacity: 0;
    pointer-events: none;
}


.bfm-service-info {
    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 4px;

    width: 100%;

    text-align: center;
}

.bfm-service-info strong {
    font-weight: 600;
}


.bfm-service-checkbox:has(
    input[type="checkbox"]:checked
),
.bfm-service-card.is-active {
    background:
        var(--wp--preset--color--custom-akzent-4);

    border-color:
        var(--wp--preset--color--custom-akzent-4);

    box-shadow:
        0 3px 10px rgba(0, 0, 0, 0.07);
}

.bfm-service-price {
    font-size: 0.9em;

    opacity: 0.75;
}


/* =========================================================
 * PRODUKTE
 * ========================================================= */

.bfm-products-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 12px;

    margin: 20px 0 32px;
}


.bfm-product-option {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 58px;
    padding: 14px 16px;

    border: 1px solid rgba(0, 0, 0, 0.16);
    border-radius: 8px;

    background: #fff;

    text-align: center;
    cursor: pointer;

    transition:
        background-color 0.15s ease,
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}


.bfm-product-option input {
    position: absolute;

    width: 1px;
    height: 1px;

    opacity: 0;
    pointer-events: none;
}


.bfm-product-option:has(
    input:checked
) {
    background:
        var(--wp--preset--color--custom-akzent-4);

    border-color:
        var(--wp--preset--color--custom-akzent-4);

    box-shadow:
        0 3px 10px rgba(0, 0, 0, 0.07);
}
.bfm-extra-products {
    margin-top: 36px;
}


.bfm-extra-product {
    margin: 24px 0;
    padding: 22px;

    border: 1px solid #ddd;
}


.bfm-extra-product h4 {
    margin-top: 0;
}


.bfm-extra-product textarea,
.bfm-extra-product input[type="file"] {
    width: 100%;
    max-width: 600px;
}


.bfm-secondary-button {
    margin-top: 10px;
    padding: 10px 18px;

    cursor: pointer;
}


/* =========================================================
 * RECHNUNGSDATEN / AUSSTELLERPROFIL
 * ========================================================= */

.bfm-data-columns {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 28px;

    width: 100%;
}


.bfm-data-column {
    min-width: 0;
}


.bfm-data-column > h3 {
    margin: 0 0 14px;
    padding-bottom: 8px;

    border-bottom:
        2px solid var(
            --wp--preset--color--custom-akzent-4
        );

    font-size: 1.1em;
    font-weight: 600;
}


#bfm-daten .bfm-address-grid,
#bfm-daten .bfm-contact-grid {
    display: block;
}

#bfm-daten .bfm-field {
    display: grid;

    grid-template-columns:
        115px minmax(0, 1fr);

    align-items: start;

    gap: 5px 12px;

    width: 100%;
    max-width: none;

    margin-bottom: 4px;
    padding: 7px 0;

    border-bottom:
        1px solid rgba(0, 0, 0, 0.08);
}

#bfm-daten .bfm-field > label {
    grid-column: 1;
    grid-row: 1;

    margin: 7px 0 0;

    font-weight: 400;
}

#bfm-daten .bfm-field > input,
#bfm-daten .bfm-field > select,
#bfm-daten .bfm-field > textarea {
    grid-column: 2;

    width: 100%;
    max-width: none;

    margin: 0;
}


#bfm-daten .bfm-field > .bfm-field-hint {
    grid-column: 2;

    margin: 5px 0 0;
}

.bfm-subsection-title {
    max-width: 720px;

    margin: 34px 0 12px;
    padding-bottom: 8px;

    border-bottom:
        2px solid var(
            --wp--preset--color--custom-akzent-4
        );

    font-size: 1.15em;
    font-weight: 600;
    line-height: 1.2;
}

/* Zustimmungen / Hinweise */

.bfm-consent-list {
    display: grid;

    width: 100%;
    max-width: none;

    gap: 12px;

    box-sizing: border-box;
}


.bfm-consent-card {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 15px 17px;

    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 8px;

    background: #fff;

    text-align: center;
    cursor: pointer;

    transition:
        background-color 0.15s ease,
        border-color 0.15s ease;
}


.bfm-consent-card input {
    position: absolute;

    width: 1px;
    height: 1px;

    opacity: 0;
    pointer-events: none;
}


.bfm-consent-card:has(
    input:checked
) {
    background:
        var(--wp--preset--color--custom-akzent-4);

    border-color:
        var(--wp--preset--color--custom-akzent-4);
}
/* Warteliste */

.bfm-waitlist {
    max-width: 850px;

    margin-top: 28px;
    padding: 20px;

    border: 1px solid rgba(0, 0, 0, 0.14);
    border-radius: 10px;

    background: rgba(0, 0, 0, 0.018);
}


.bfm-waitlist-question {
    margin-bottom: 14px;

    font-weight: 600;
}


.bfm-waitlist-options {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 12px;
}


.bfm-choice-card {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 14px 16px;

    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 8px;

    background: #fff;

    text-align: center;
    cursor: pointer;
}


.bfm-choice-card input {
    position: absolute;

    width: 1px;
    height: 1px;

    opacity: 0;
    pointer-events: none;
}

.bfm-choice-card span {
    display: flex;
    flex-direction: column;

    gap: 2px;
}


.bfm-choice-card small {
    opacity: 0.7;
}


.bfm-choice-card:has(
    input:checked
) {
    background:
        var(--wp--preset--color--custom-akzent-4);

    border-color:
        var(--wp--preset--color--custom-akzent-4);
}


@media (max-width: 800px) {

    .bfm-waitlist-options {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
 * MELDUNGEN
 * ========================================================= */

.bfm-message {
    margin-bottom: 30px;
    padding: 18px 20px;

    border: 1px solid;
}


.bfm-message-success {
    border-color: #46a758;
}


.bfm-message-error {
    border-color: #c93535;
}


/* Validierungsfehler */

.bfm-field-error input,
.bfm-field-error select,
.bfm-field-error textarea,
input.bfm-field-error,
select.bfm-field-error,
textarea.bfm-field-error {
    border-color: #c93535 !important;

    box-shadow:
        0 0 0 1px rgba(201, 53, 53, 0.18);
}


.bfm-field-error.bfm-choice-card,
.bfm-field-error.bfm-consent-card,
.bfm-field-error.bfm-service-card {
    border-color: #c93535 !important;
}


#bfm-validation-summary {
    margin-bottom: 24px;
    padding: 14px 18px;

    border-left: 4px solid #c93535;
    border-radius: 6px;

    background: rgba(201, 53, 53, 0.06);
}


#bfm-validation-summary ul {
    margin: 8px 0 0;
}

/* =========================================================
 * SEITENLEISTE / ZUSAMMENFASSUNG
 * ========================================================= */

.bfm-summary {
    position: sticky;

    top: 30px;

    padding: 24px;

    border: 1px solid #ddd;

    background: #fff;

    font-size: 16px;
    line-height: 1.2;
}


/* Logo */

.bfm-summary-logo {
    margin-bottom: 24px;

    text-align: center;
}


.bfm-summary-logo img {
    display: block;

    width: auto;
    max-width: 150px;
    max-height: 100px;
    height: auto;

    margin: 0 auto;
}


/* Navigation */

.bfm-summary-nav {
    display: flex;

    flex-direction: column;

    gap: 0;
}

.bfm-summary-nav a {
    display: flex;

    align-items: center;
    justify-content: space-between;

    padding: 5px 9px;

    border-radius: 5px;

    color: inherit;

    text-decoration: none;

    font-size: 0.82em;

    transition:
        background-color 0.15s ease,
        padding-left 0.15s ease;
}

.bfm-summary-nav a:hover {
    padding-left: 13px;

    background-color:
        rgba(0, 0, 0, 0.06);
}


.bfm-nav-arrow {
    margin-left: 12px;

    font-size: 1.25em;
    line-height: 1;
}


/* Trennlinie */

.bfm-summary-divider {
    margin: 22px 0;

    border-top:
        1px solid currentColor;

    opacity: 0.18;
}


/* Informationsbereiche */

.bfm-summary-section {
    margin-bottom: 8px;

    padding: 8px 12px;

    border-radius: 6px;

    background: #f0f0f0;
}


.bfm-summary-primary {
    margin-bottom: 1px;

    font-weight: 400;
    line-height: 1.15;
}


.bfm-summary-secondary {
    font-size: 0.9em;
    font-weight: 400;

    opacity: 0.75;
}


/* Maßtabelle */

.bfm-summary-dimensions {
    width: 100%;

    margin-top: 9px;

    border-collapse: collapse;

    table-layout: auto;
}


.bfm-summary-dimensions th {
    padding: 0 3px 3px;

    border-bottom:
        1px solid rgba(0, 0, 0, 0.2);

    font-size: 0.68em;
    font-weight: 400;
    line-height: 1.1;

    text-align: center;

    opacity: 0.65;
}


.bfm-summary-dimensions td {
    padding: 4px 3px 0;

    font-size: 0.88em;
    font-weight: 400;
    line-height: 1.1;

    text-align: center;

    white-space: nowrap;
}


.bfm-summary-operator {
    width: 18px;

    opacity: 0.6;
}


/* Kosten */

.bfm-price-line,
.bfm-summary-total {
    display: flex;

    justify-content: space-between;

    gap: 12px;
}


.bfm-price-line {
    margin-bottom: 3px;

    font-size: 0.9em;
    line-height: 1.15;
}


.bfm-summary-total {
    margin-top: 10px;
    padding-top: 10px;

    border-top: 1px solid #ddd;

    font-size: 0.95em;
    line-height: 1.15;
}


.bfm-price-line > span:first-child {
    min-width: 0;
}


.bfm-price-line > span:last-child,
.bfm-summary-total > strong:last-child {
    flex-shrink: 0;

    white-space: nowrap;
}


.bfm-summary-cost-divider {
    display: none;
}


/* Seitenmenü kompakter */

.bfm-summary {
    padding: 18px;
}


.bfm-summary-logo {
    margin-bottom: 14px;
}


.bfm-summary-nav a {
    padding-top: 4px;
    padding-bottom: 4px;
}


.bfm-summary-divider {
    margin-top: 14px;
    margin-bottom: 14px;
}


.bfm-summary-section {
    margin-bottom: 6px;
    padding: 7px 10px;
}


.bfm-summary-total {
    margin-top: 7px;
    padding-top: 7px;
}


.bfm-summary
.bfm-summary-submit-divider {
    margin-top: 10px;
    margin-bottom: 8px;
}


.bfm-summary-required-hint {
    margin: 0 0 6px;

    font-size: 12px;
    line-height: 1.2;

    text-align: center;
}


.bfm-summary-required-hint .bfm-required {
    margin-left: 0;

    font-size: inherit;
}


/* Absenden */

.bfm-summary-submit {
    margin-top: 0;
}


.bfm-summary-submit .bfm-submit {
    width: 100%;

    padding: 9px 12px;

    background:
        var(--wp--preset--color--custom-akzent-3) !important;

    border-color:
        var(--wp--preset--color--custom-akzent-3) !important;

    color:
        var(--wp--preset--color--contrast, #111111) !important;

    font-weight: 700 !important;
}


.bfm-summary-submit .bfm-submit:hover,
.bfm-summary-submit .bfm-submit:focus {
    background:
        var(--wp--preset--color--custom-akzent-3) !important;

    border-color:
        var(--wp--preset--color--custom-akzent-3) !important;

    color:
        var(--wp--preset--color--contrast, #111111) !important;
}


.bfm-summary-submit .bfm-submit:hover,
.bfm-summary-submit .bfm-submit:focus {
    background:
        var(--wp--preset--color--custom-akzent-3) !important;

    border-color:
        var(--wp--preset--color--custom-akzent-3) !important;

    color:
        var(--wp--preset--color--contrast, #111111) !important;
}

/* =========================================================
 * TABLET / MOBIL
 * ========================================================= */

@media (max-width: 800px) {

    .bfm-application,
    .bfm-application-content {
        display: block;
    }


        .bfm-area-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }


    .bfm-area-introduction {
        min-height: 125px;
        margin-top: 18px;
    }


    #bfm-area-introduction-text {
        min-height: 90px;
        padding: 8px 10px;
    }


    .bfm-application-content {
        margin-top: 16px;
    }


    .bfm-services-grid,
    .bfm-products-grid,
    .bfm-address-grid,
    .bfm-contact-grid {
        grid-template-columns: 1fr;
    }


    /*
     * Zusammenfassung fest
     * am unteren Displayrand.
     */

    .bfm-summary {
        position: fixed !important;

        top: auto !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;

        z-index: 99999;

        display: grid;

        grid-template-columns: minmax(0, 1fr);

        gap: 6px 12px;

        align-items: center;

        width: 100% !important;
        max-width: none !important;

        margin: 0 !important;
        padding: 8px 10px;

        box-sizing: border-box;

        background: #fff !important;

        border: 0;
        border-top:
            1px solid rgba(0, 0, 0, 0.15);

        box-shadow:
            0 -3px 10px rgba(0, 0, 0, 0.14);

        font-size: 16px;
        line-height: 1.1;
    }

            .bfm-data-columns {
        grid-template-columns: 1fr;
        gap: 26px;
    }


    #bfm-daten .bfm-field {
        grid-template-columns: 1fr;
        gap: 7px;

        width: 100%;
        max-width: none;
    }

    #bfm-daten .bfm-field > label,
    #bfm-daten .bfm-field > input,
    #bfm-daten .bfm-field > select,
    #bfm-daten .bfm-field > textarea,
    #bfm-daten .bfm-field > .bfm-field-hint {
        grid-column: 1;
    }

    #bfm-daten .bfm-field > label {
        margin-top: 0;
    }

    /* Navigation mobil weg */

    .bfm-summary-nav,
    .bfm-summary-divider {
        display: none;
    }


    /* Das Logo entfällt in der mobilen unteren Menüleiste. */

    .bfm-summary-logo {
        display: none;
    }


    /* Informationen rechts */

    .bfm-summary-section {
        grid-column: 1;

        margin: 0;

        padding: 3px 6px;

        background: transparent;
    }


    .bfm-summary-dimensions {
        margin-top: 3px;
    }


    .bfm-summary-dimensions th {
        padding-bottom: 2px;
    }


    .bfm-summary-dimensions td {
        padding-top: 2px;
    }


    .bfm-price-line {
        margin-bottom: 1px;
    }


    /* Pflichtfeldhinweis und Absenden rechts */

    .bfm-summary-required-hint {
        grid-column: 1;

        margin: 0;

        font-size: 10px;

        text-align: left;
    }


    .bfm-summary-submit {
        grid-column: 1;

        margin-top: 2px;
    }


    .bfm-summary-submit .bfm-submit {
        padding: 5px 8px;

        font-size: 10px;
    }


    /*
     * Platz schaffen, damit das Ende
     * des Formulars nicht hinter der
     * fixen Leiste verschwindet.
     */

    .bfm-application-content {
        padding-bottom: 190px;
    }
}


/* =========================================================
 * KLEINE MOBILGERÄTE
 * ========================================================= */

@media (max-width: 600px) {

    /*
     * Standformen untereinander:
     * Text links, Bild rechts.
     */

    .bfm-standform-grid {
        grid-template-columns: 1fr;

        gap: 10px;
    }


   .bfm-standform-card {
    display: grid;

    grid-template-columns: 1fr;

    align-items: center;

    padding: 12px;
}


    .bfm-standform-header {
    min-height: 0;

    margin: 0 0 8px;
    padding-right: 0;

    text-align: center;
}


    .bfm-standform-image-wrap {
    min-height: 190px;

    margin: 0;
}


.bfm-standform-image {
    max-width: 280px;
    height: 180px;
}
}


/* =========================================================
 * SEHR KLEINE MOBILGERÄTE
 * ========================================================= */

@media (max-width: 500px) {

    .bfm-area-grid {
        grid-template-columns: 1fr;
    }
}
/* =========================================================
 * TEMPORÄRE DESIGN-OVERRIDES
 * Während der Entwicklung gesammelt.
 * Nach Fertigstellung CSS bereinigen.
 * ========================================================= */


/* ---------------------------------------------------------
 * RECHNUNGSDATEN / AUSSTELLERPROFIL
 * --------------------------------------------------------- */

#bfm-daten .bfm-field {
    grid-template-columns:
        115px minmax(0, 1fr);

    gap: 5px 12px;
}


#bfm-daten .bfm-field > label {
    font-size: 0.92em;
    font-weight: 400;
    line-height: 1.35;
}


/* Dropdowns nicht unnötig breit */

.bfm-field-row > select {
    width: 100%;
    max-width: 420px;

    margin: 0;

    justify-self: start;

    box-sizing: border-box;
}

/* ---------------------------------------------------------
 * STANDFORM / STANDGRÖSSE – TRENNUNG
 * --------------------------------------------------------- */

.bfm-standform-selection {
    margin-top: 32px;
    padding-top: 26px;

    border-top:
        1px solid rgba(0, 0, 0, 0.18);
}


.bfm-stand-size > h3 {
    margin-top: 32px;
    padding-top: 26px;

    border-top:
        1px solid rgba(0, 0, 0, 0.18);
}


/* ---------------------------------------------------------
 * STANDGRÖSSE
 * --------------------------------------------------------- */

.bfm-stand-size-grid {
    align-items: center;

    padding: 12px 14px;

    border-radius: 8px;

    background: #fff;
}


.bfm-stand-size-cell {
    min-height: 58px;

    padding: 4px 8px;

    background: transparent;
}


/* ---------------------------------------------------------
 * STAND-HINWEIS
 * --------------------------------------------------------- */

.bfm-stand-hint {
    padding: 14px 18px;

    border-radius: 8px;
}


.bfm-stand-hint-row {
    display: grid;

    grid-template-columns:
        auto minmax(0, 1fr);

    align-items: center;

    gap: 8px 14px;

    text-align: center;
}


.bfm-stand-hint-row strong {
    font-weight: 600;
}


/* ---------------------------------------------------------
 * UNTERABSCHNITTE / ABSTÄNDE
 * --------------------------------------------------------- */

.bfm-service-subsection,
.bfm-extra-products {
    margin-top: 36px;
}


.bfm-service-subsection > h3,
.bfm-extra-products > h3 {
    margin-top: 0;
    margin-bottom: 18px;
}


/* ---------------------------------------------------------
 * AUSWAHLKARTEN
 * --------------------------------------------------------- */

.bfm-service-info,
.bfm-product-option {
    font-weight: 600;
}


.bfm-service-info {
    justify-content: center;
}


/* ---------------------------------------------------------
 * WEITERE PRODUKTE
 * --------------------------------------------------------- */

.bfm-extra-product {
    margin: 24px 0;
    padding: 18px 20px;

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

    background: #fff;

    transition:
        background-color 0.15s ease,
        border-color 0.15s ease;
}


.bfm-extra-product-field {
    display: grid;

    grid-template-columns:
        140px minmax(0, 1fr);

    align-items: start;

    gap: 10px 16px;

    margin-bottom: 10px;
}


.bfm-extra-product-field > label {
    grid-column: 1;
    grid-row: 1;

    margin: 7px 0 0;

    font-weight: 400;
}


.bfm-extra-product-field > input,
.bfm-extra-product-field > textarea {
    width: 100%;
    max-width: none;

    margin: 0;
}


.bfm-extra-product-field > input[type="file"] {
    grid-column: 2;
    grid-row: 1;
}


.bfm-extra-product-field > .bfm-field-hint {
    grid-column: 2;
    grid-row: 2;

    margin: 4px 0 0;
}

.bfm-secondary-button {
    font-weight: 600;
}


/* ---------------------------------------------------------
 * WARTELISTE
 * Text | Ja | Nein
 * --------------------------------------------------------- */

.bfm-waitlist {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        110px
        110px;

    align-items: stretch;

    gap: 12px;

    width: 100%;
    max-width: none;

    margin-top: 28px;

    padding: 0;

    border: 0;

    background: transparent;

    box-sizing: border-box;
}


.bfm-waitlist-question {
    display: flex;

    align-items: center;
    justify-content: center;

    min-height: 58px;

    margin: 0;
    padding: 14px 16px;

    border: 1px solid rgba(0, 0, 0, 0.14);
    border-radius: 8px;

    background: #fff;

    text-align: center;

    font-weight: 400;
}


.bfm-waitlist .bfm-choice-card {
    min-height: 58px;
}


/* ---------------------------------------------------------
 * TRENNLINIE VOR ABSENDEN
 * --------------------------------------------------------- */

.bfm-summary-submit-divider {
    margin-top: 18px;
    margin-bottom: 14px;
}


/* ---------------------------------------------------------
 * MOBIL
 * --------------------------------------------------------- */

@media (max-width: 600px) {

    .bfm-stand-hint-row {
        grid-template-columns: 1fr;

        text-align: center;
    }


    .bfm-extra-product-field {
        grid-template-columns: 1fr;

        gap: 6px;
    }


    .bfm-extra-product-field > label {
        margin-top: 0;
    }


    .bfm-waitlist {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }


    .bfm-waitlist-question {
        grid-column: 1 / -1;
    }
}

/* =========================================================
 * TEMPORÄRE DESIGN-OVERRIDES – RUNDE 2
 * ========================================================= */


/* ---------------------------------------------------------
 * AUSGEFÜLLTE ZUSATZPRODUKTE
 * --------------------------------------------------------- */

.bfm-extra-product.is-active {
    background:
        var(--wp--preset--color--custom-akzent-4);

    border-color:
        var(--wp--preset--color--custom-akzent-4);
}


/* ---------------------------------------------------------
 * STANDKONFIGURATION – TRENNUNGEN
 * --------------------------------------------------------- */

.bfm-standform-row {
    margin-top: 34px;
    padding-top: 26px;

    border-top:
        1px solid rgba(0, 0, 0, 0.18);
}


#bfm-standformen-wrapper {
    min-width: 0;
    margin: 0;
    padding: 0;

    border-top: 0;
}


#bfm-standmenge-wrapper {
    margin-top: 34px;
    padding-top: 26px;

    border-top:
        1px solid rgba(0, 0, 0, 0.18);
}


/*
 * Alte Trennlinie direkt an der Überschrift
 * wieder neutralisieren, damit wir keine
 * doppelte Linie erhalten.
 */

.bfm-stand-size > h3 {
    margin-top: 0;
    padding-top: 0;

    border-top: 0;
}


/* ---------------------------------------------------------
 * STANDGRÖSSE – RUHIGERE OPTIK
 * --------------------------------------------------------- */

.bfm-stand-size-grid {
    max-width: 700px;

    padding: 10px 14px;

    background: #fff;

    border:
        1px solid rgba(0, 0, 0, 0.14);

    border-radius: 8px;
}


.bfm-stand-size-cell {
    min-height: 52px;

    padding: 2px 8px;

    background: transparent;
}


.bfm-stand-size-label {
    margin-bottom: 5px;

    font-size: 0.82em;
    font-weight: 400;

    opacity: 0.7;
}


.bfm-stand-size-value input {
    padding: 6px 8px;
}


.bfm-stand-size-result {
    min-height: 34px;
}


/*
 * Mindestlänge steht unterhalb der
 * eigentlichen Längenanzeige.
 */

.bfm-stand-size-minimum {
    margin-top: 6px;

    font-size: 0.75em;
    font-weight: 400;

    opacity: 0.7;
}


/* ---------------------------------------------------------
 * AUSWAHLKARTEN – SCHRIFT VERTIKAL MITTIG
 * --------------------------------------------------------- */

.bfm-product-option > span {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 100%;

    font-weight: 600;
    text-align: center;
}


.bfm-service-info {
    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    min-height: 100%;

    font-weight: 600;
}


/*
 * Preise bleiben absichtlich leichter,
 * damit nicht alles gleich stark wirkt.
 */

.bfm-service-price {
    font-weight: 400;
}


/* ---------------------------------------------------------
 * PROGRAMM & UNTERSTÜTZUNG
 * --------------------------------------------------------- */

#bfm-leistungen > h3 {
    margin-top: 38px;
    margin-bottom: 12px;
}


/* ---------------------------------------------------------
 * WEITERE PRODUKTE
 * --------------------------------------------------------- */

.bfm-extra-product-field > label {
    font-weight: 400;
}


#bfm-add-product {
    font-weight: 600;
}


/* ---------------------------------------------------------
 * RECHNUNGSDATEN / AUSSTELLERPROFIL
 * --------------------------------------------------------- */

/*
 * Beide Hauptbereiche exakt gleich breit.
 */

.bfm-data-columns {
    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr);

    gap: 36px;
}


/*
 * Rechnungsdaten:
 * Beschriftung etwas breiter,
 * Eingabebereich entsprechend kompakter.
 */

.bfm-data-column-billing .bfm-field {
    grid-template-columns:
        155px minmax(0, 1fr);
}

/*
 * Ausstellerprofil:
 * mehr nutzbarer Platz für längere Inhalte.
 */

.bfm-data-column-profile .bfm-field {
    grid-template-columns:
        170px minmax(0, 1fr);
}

/*
 * Alle Feldbezeichnungen hier normal,
 * nicht fett.
 */

#bfm-daten .bfm-field > label {
    font-weight: 400;
}


/* ---------------------------------------------------------
 * WARTELISTE
 * --------------------------------------------------------- */

.bfm-waitlist {
    grid-template-columns:
        minmax(0, 1fr)
        110px
        110px;

    gap: 12px;
}


.bfm-waitlist-question,
.bfm-waitlist .bfm-choice-card {
    min-height: 62px;
}


.bfm-waitlist-question {
    background:
        rgba(255, 205, 195, 0.5);

    background:
        color-mix(
            in srgb,
            var(
                --wp--preset--color--custom-akzent-4,
                #ffcdc3
            ) 50%,
            transparent
        );

    font-weight: 400;
}

.bfm-waitlist .bfm-choice-card span {
    display: flex;

    align-items: center;
    justify-content: center;

    font-weight: 600;
}


/* ---------------------------------------------------------
 * MENÜ – TRENNUNG VOR ABSENDEN
 * --------------------------------------------------------- */

.bfm-summary-submit-divider {
    display: block;

    margin: 18px 0 14px;

    border-top:
        1px solid currentColor;

    opacity: 0.18;
}


/* ---------------------------------------------------------
 * WINKELSTAND IM MENÜ
 * --------------------------------------------------------- */

#bfm-summary-winkel-row td {
    padding-top: 3px;
}


#bfm-summary-winkel-row
.bfm-summary-operator {
    opacity: 0.6;
}


/* ---------------------------------------------------------
 * MOBIL
 * --------------------------------------------------------- */

@media (max-width: 800px) {

    .bfm-data-columns {
        grid-template-columns: 1fr;

        gap: 28px;
    }


    .bfm-data-column-billing .bfm-field,
    .bfm-data-column-profile .bfm-field {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 600px) {

        .bfm-standform-row,
    #bfm-standmenge-wrapper {
        margin-top: 26px;
        padding-top: 20px;
    }


    .bfm-stand-size-grid {
        padding: 9px 8px;
    }


    .bfm-waitlist {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }


    .bfm-waitlist-question {
        grid-column: 1 / -1;
    }
}

/* =========================================================
 * TEMPORÄRE DESIGN-OVERRIDES – RUNDE 3
 * ========================================================= */


/* ---------------------------------------------------------
 * KOMPAKTE AUSWAHLKARTEN
 * Zusatzleistungen / Programm / Standardprodukte
 * --------------------------------------------------------- */

.bfm-services-grid,
.bfm-products-grid {
    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 12px;
}


.bfm-service-card,
.bfm-product-option {
    min-height: 72px;

    padding: 12px 14px;
}


.bfm-service-info,
.bfm-product-option > span {
    align-items: center;
    justify-content: center;

    text-align: center;
}


/* Mengenfelder bei Tisch / Stuhl */

.bfm-service-card input[type="number"] {
    width: 64px;

    margin: 0 auto;

    padding: 5px 6px;
}


/* ---------------------------------------------------------
 * WICHTIG-HINWEIS
 * --------------------------------------------------------- */

.bfm-stand-hint,
.bfm-stand-hint-row {
    background: #fff;
}


/* ---------------------------------------------------------
 * DATEI-UPLOADS
 * --------------------------------------------------------- */

.bfm-file-upload {
    width: 100%;
}


.bfm-file-upload-control {
    display: flex;

    align-items: center;

    gap: 10px;

    width: 100%;
}


.bfm-file-upload-control input[type="file"] {
    flex: 1;

    min-width: 0;

    margin: 0;
}


.bfm-file-clear {
    flex-shrink: 0;

    padding: 6px 10px;

    font-size: 0.85em;
    font-weight: 600;

    cursor: pointer;
}


.bfm-file-upload > .bfm-field-hint {
    display: block;

    width: 100%;

    margin: 5px 0 0;

    font-size: 0.82em;
}


/* In den Datenspalten bleibt Hinweis rechts */

#bfm-daten .bfm-file-upload {
    grid-column: 2;
}


/* ---------------------------------------------------------
 * WINKELSTAND
 * zweite Berechnungszeile gehört optisch
 * zum selben Berechnungsfeld
 * --------------------------------------------------------- */

.bfm-stand-size-grid {
    margin-bottom: 0;

    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}


/* ---------------------------------------------------------
 * RESPONSIVE
 * --------------------------------------------------------- */

@media (max-width: 1100px) {

    .bfm-services-grid,
    .bfm-products-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}


@media (max-width: 600px) {

    .bfm-services-grid,
    .bfm-products-grid {
        grid-template-columns: 1fr;
    }


    #bfm-daten .bfm-file-upload {
        grid-column: 1;
    }


    .bfm-file-upload-control {
        flex-wrap: wrap;
    }
}

/* =========================================================
 * TEMPORÄRE DESIGN-OVERRIDES – WINKELSTAND EINZEILIG
 * ========================================================= */

/*
 * Normale Standformen bleiben beim bisherigen 5-Spalten-Raster.
 * Nur wenn die zusätzlichen Winkel-Elemente sichtbar sind,
 * wird auf 9 Spalten umgestellt:
 *
 * Länge × Tiefe + Tiefe × Tiefe = Fläche
 */
.bfm-stand-size-grid:has(
    #bfm-stand-size-winkel-add:not([hidden])
) {
    grid-template-columns:
        minmax(0, 1.2fr)
        24px
        minmax(0, 1fr)
        24px
        minmax(0, 1fr)
        24px
        minmax(0, 1fr)
        24px
        minmax(0, 1.15fr);

    gap: 4px;

    max-width: 100%;

    overflow-x: auto;
}


/*
 * Beschriftungen und Werte beginnen in allen Zellen
 * auf derselben Höhe.
 */
.bfm-stand-size-cell {
    justify-content: flex-start;
}


.bfm-stand-size-label {
    display: flex;

    align-items: flex-end;
    justify-content: center;

    min-height: 18px;
}


.bfm-stand-size-value,
.bfm-stand-size-result {
    min-height: 34px;
}


.bfm-stand-size-grid:has(
    #bfm-stand-size-winkel-add:not([hidden])
)
.bfm-stand-size-value input {
    width: 78px;
}


/*
 * Die alten CSS-Regeln für die frühere zweite Winkelzeile
 * bleiben vorläufig im Entwicklungs-CSS, greifen aber nicht
 * mehr, weil das alte HTML-Element entfernt wurde.
 */


@media (max-width: 600px) {

    .bfm-stand-size-grid:has(
        #bfm-stand-size-winkel-add:not([hidden])
    ) {
        min-width: 620px;
    }
}
#bfm-form-reset {
    cursor: pointer;
}

/* =========================================================
 * WINKELSTAND – VERSTECKTE ZUSATZELEMENTE
 * ========================================================= */

#bfm-stand-size-winkel-add[hidden],
#bfm-stand-size-winkel-depth-cell[hidden],
#bfm-stand-size-winkel-multiply[hidden],
#bfm-stand-size-winkel-depth-cell-2[hidden] {
    display: none !important;
}
/* =========================================================
 * TISCHE / STÜHLE – KOMPAKTE DARSTELLUNG
 * ========================================================= */

#bfm-service-table-card,
#bfm-service-chair-card {
    gap: 2px;
    padding: 8px 9px;
}


#bfm-service-ticket-card {
    padding-left: 7px;
    padding-right: 7px;
}


#bfm-ticket-title {
    white-space: nowrap;
}

#bfm-service-table-card .bfm-service-info,
#bfm-service-chair-card .bfm-service-info {
    min-height: 0;
    gap: 0;
}

#bfm-service-table-card .bfm-service-price,
#bfm-service-chair-card .bfm-service-price {
    line-height: 1.1;
}

#bfm-service-table-card input[type="number"],
#bfm-service-chair-card input[type="number"] {
    margin-top: 2px;
    margin-bottom: 0;
}
/* =========================================================
 * ZUSATZLEISTUNGEN – EINHEITLICHE HÖHE UND AUSRICHTUNG
 * ========================================================= */

/*
 * Alle Zusatzleistungskarten haben dieselbe
 * Mindesthöhe und zentrieren ihren Inhalt.
 */
.bfm-services-grid .bfm-service-card {
    height: 105px;
    min-height: 105px;

    box-sizing: border-box;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;
}

/*
 * Textblock innerhalb der Karte nicht mehr
 * auf die gesamte Kartenhöhe strecken.
 */
.bfm-services-grid .bfm-service-info {
    min-height: 0;

    flex: 0 0 auto;

    justify-content: center;
}


/*
 * Tisch und Stuhl bleiben etwas kompakter,
 * weil sie zusätzlich ein Zahlenfeld besitzen.
 */
#bfm-service-table-card,
#bfm-service-chair-card {
    padding: 5px 7px;
    gap: 2px;
}


/*
 * Titel und Preis eng zusammenhalten.
 */
#bfm-service-table-card .bfm-service-info,
#bfm-service-chair-card .bfm-service-info {
    gap: 0;
}


/*
 * Zahlenfeld ebenfalls Teil des
 * vertikal zentrierten Inhaltsblocks.
 */
#bfm-service-table-card input[type="number"],
#bfm-service-chair-card input[type="number"] {
    margin-top: 2px;
    margin-bottom: 0;
}
.bfm-file-upload > .bfm-field-hint,
.bfm-extra-product-field .bfm-field-hint {
    display: block;
    width: 100%;
    margin: 4px 0 0;
    clear: both;
}
.bfm-waitlist-question,
.bfm-waitlist .bfm-choice-card {
    height: 62px;
    min-height: 62px;

    box-sizing: border-box;

    display: flex;
    align-items: center;
    justify-content: center;
}
.bfm-stand-hint-row {
    align-items: start;
    text-align: left;
}

.bfm-stand-hint-row strong {
    white-space: nowrap;
}

.bfm-stand-hint-row > span {
    line-height: 1.5;
}
/* =========================================================
 * SEITENMENÜ – EINHEITLICHE SCHRIFT UND TICKETKÄSTCHEN
 * ========================================================= */

.bfm-summary,
.bfm-summary a,
.bfm-summary span,
.bfm-summary strong,
.bfm-summary th,
.bfm-summary td,
.bfm-summary button {
    font-size: 13px;
}

.bfm-summary-nav a {
    font-size: 13px;
}

.bfm-summary .bfm-nav-arrow {
    font-size: 17px;
}

.bfm-summary-tickets {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    margin-bottom: 8px;
}
.bfm-summary-tickets strong {
    flex-shrink: 0;
}
/* =========================================================
 * HORIZONTALE FORMULARANORDNUNG
 * ========================================================= */

.bfm-option-row,
#bfm-standmenge-wrapper {
    display: grid;

    grid-template-columns:
        minmax(155px, 0.55fr)
        minmax(0, 2fr);

    align-items: start;

    gap: 20px 28px;

    width: 100%;
}

.bfm-option-title,
.bfm-option-row > h3,
#bfm-standmenge-wrapper > h3 {
    margin: 8px 0 0;
    padding: 0;

    border: 0;

    font-size: 1.05em;
    font-weight: 600;
    line-height: 1.25;

    text-align: left;
}

.bfm-option-content {
    width: 100%;
    max-width: 100%;
    min-width: 0;

    box-sizing: border-box;
}

.bfm-option-content .bfm-standform-grid {
    margin-top: 0;
}

.bfm-option-content .bfm-standform-fixed {
    margin-top: 0;
}

#bfm-standmenge-wrapper > .bfm-stand-size-grid {
    width: 100%;
    max-width: 100%;
    min-width: 0;

    margin: 0;

    box-sizing: border-box;
    overflow-x: auto;
}
/* Zusatzleistungen */

#bfm-leistungen {
    display: grid;

    grid-template-columns:
        minmax(155px, 0.55fr)
        minmax(0, 2fr);

    align-items: start;

    gap: 24px 28px;
}

#bfm-leistungen > h2 {
    grid-column: 1 / -1;
}

#bfm-leistungen > .bfm-equipment-title {
    grid-column: 1;
    grid-row: 2;

    align-self: start;
    margin: 0;
    padding: 0;

    font-size: 1.05em;
    line-height: 1.25;
}

#bfm-leistungen > .bfm-services-grid:first-of-type {
    grid-column: 2;
    grid-row: 2;

    align-self: start;
    margin-top: 0;
}

#bfm-leistungen > h3:not(.bfm-equipment-title) {
    grid-column: 1;
    grid-row: 3;

    margin: 8px 0 0;

    font-size: 1.05em;
    line-height: 1.25;
}

#bfm-leistungen > p {
    grid-column: 1;
    grid-row: 4;

    margin: -16px 0 0;

    line-height: 1.4;
}

#bfm-leistungen > .bfm-services-grid:last-of-type {
    grid-column: 2;
    grid-row: 3 / span 2;

    margin-top: 0;
}

/* Produkte */

#bfm-produkte {
    display: grid;

    grid-template-columns:
        minmax(155px, 0.55fr)
        minmax(0, 2fr);

    align-items: start;

    gap: 20px 28px;
}

#bfm-produkte > h2 {
    grid-column: 1 / -1;
}

#bfm-produkte > .bfm-product-offer {
    grid-column: 1 / -1;
    grid-row: 2;

    margin: 0 0 8px;
}

#bfm-produkte > .bfm-ai-confirmation {
    grid-row: 3;
    margin-top: 0;
}

#bfm-produkte > .bfm-ai-confirmation + h3,
#bfm-produkte > .bfm-ai-confirmation + h3 + .bfm-products-grid {
    grid-row: 4;
}

#bfm-produkte > .bfm-ai-confirmation + h3 + .bfm-products-grid + .bfm-extra-products {
    grid-row: 5;
}

.bfm-ai-confirmation.is-disabled {
    opacity: 0.42;
    filter: grayscale(0.65);
}

.bfm-ai-confirmation.is-disabled .bfm-choice-card {
    pointer-events: none;
}

.bfm-ai-confirmation .bfm-waitlist-question,
.bfm-ai-confirmation .bfm-choice-card {
    height: auto;
    min-height: 124px;
}


#bfm-produkte > h3 {
    grid-column: 1;
    grid-row: 3;

    margin: 8px 0 0;

    font-size: 1.05em;
    line-height: 1.25;
}
#bfm-produkte > p {
    grid-column: 1;
    grid-row: 3;

    margin: -12px 0 0;
}

#bfm-produkte > .bfm-products-grid {
    grid-column: 2;
    grid-row: 3;

    width: 100%;
    margin-top: 0;
}

#bfm-produkte > .bfm-extra-products {
    grid-column: 1 / -1;
    grid-row: 4;
}


#bfm-produkte.is-products-disabled > h3,
#bfm-produkte.is-products-disabled > .bfm-products-grid,
#bfm-produkte.is-products-disabled > .bfm-extra-products {
    opacity: 0.42;
    filter: grayscale(0.65);
}


#bfm-produkte.is-products-disabled > .bfm-products-grid,
#bfm-produkte.is-products-disabled > .bfm-extra-products {
    pointer-events: none;
}

/* Zusätzliche Produkte */

.bfm-extra-products {
    display: grid;

    grid-template-columns:
        minmax(155px, 0.55fr)
        minmax(0, 2fr);

    align-items: start;

    gap: 12px 28px;
}

.bfm-extra-products > h3,
.bfm-extra-products > p {
    grid-column: 1;

    margin-right: 0;
}

.bfm-extra-products > h3 {
    grid-row: 1;

    font-size: 1.05em;
    line-height: 1.25;
}

.bfm-extra-products > p {
    grid-row: 2;

    margin-top: 0;

    line-height: 1.4;
}

.bfm-extra-products > .bfm-extra-product,
.bfm-extra-products > .bfm-secondary-button {
    grid-column: 2;
}

.bfm-extra-products > .bfm-extra-product {
    margin-top: 0;
}

/* Mobil wieder untereinander */

@media (max-width: 800px) {

    .bfm-field-row,
    .bfm-option-row,
    #bfm-standmenge-wrapper,
    #bfm-leistungen,
    #bfm-produkte,
    .bfm-extra-products {
        display: block;
    }


    .bfm-field-row > label {
        margin: 0 0 8px;
    }

    .bfm-option-title,
    .bfm-option-row > h3,
    #bfm-standmenge-wrapper > h3,
    #bfm-leistungen > .bfm-equipment-title,
    #bfm-leistungen > h3:not(.bfm-equipment-title),
    #bfm-produkte > h3,
    .bfm-extra-products > h3 {
        margin: 0 0 14px;
    }

    #bfm-leistungen > p,
    #bfm-produkte > p,
    .bfm-extra-products > p {
        margin: 0 0 16px;
    }

    #bfm-leistungen > .bfm-services-grid,
    #bfm-produkte > .bfm-products-grid {
        margin-bottom: 28px;
    }
}
/* =========================================================
 * ZUSTIMMUNGEN UND PDF-DOKUMENTE
 * ========================================================= */

.bfm-consent-row {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        180px;

    gap: 12px;

    align-items: stretch;
}

.bfm-consent-row .bfm-consent-card {
    margin: 0;
}

.bfm-document-link {
    display: flex;

    align-items: center;
    justify-content: center;

    min-height: 58px;
    padding: 12px 16px;

    box-sizing: border-box;

    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 8px;

    background: #f0f0f0;
    color: inherit;

    font-weight: 600;
    text-align: center;
    text-decoration: none;

    transition:
        background-color 0.15s ease,
        border-color 0.15s ease;
}

a.bfm-document-link:hover {
    background:
        var(--wp--preset--color--custom-akzent-4);

    border-color:
        var(--wp--preset--color--custom-akzent-4);
}

.bfm-document-link.is-disabled {
    cursor: default;
    opacity: 0.55;
}

@media (max-width: 600px) {

    .bfm-consent-row {
        grid-template-columns: 1fr;
    }

    .bfm-document-link {
        min-height: 48px;
    }
}
/* =========================================================
 * PROFI / FOOD / PROGRAMM / FACHBESUCHER
 * ========================================================= */

.bfm-simple-application {
    display: grid;

    grid-template-columns:
        280px
        minmax(0, 1fr);

    gap: 40px;

    align-items: start;

    width: 100%;
    margin-top: 24px;
}

.bfm-simple-application[hidden] {
    display: none;
}

.bfm-simple-application > form {
    min-width: 0;
}

.bfm-simple-application > form > .bfm-section {
    padding-top: 0;
}

/*
 * Überschrift wie beim Bereich
 * Standkonfiguration des Hauptformulars.
 */
.bfm-simple-application .bfm-section > h2 {
    background:
        var(--wp--preset--color--custom-akzent-1);
}

/*
 * Der bisherige Button am Formularende
 * wird durch den Button im Menü ersetzt.
 */
.bfm-simple-application
> form
> .bfm-section
> .bfm-submit {
    display: none;
}

.bfm-summary-simple {
    min-height: 0;
}

.bfm-summary-simple .bfm-summary-logo {
    margin-bottom: 0;
}

.bfm-summary-simple .bfm-summary-submit {
    margin-top: 0;
}

/* =========================================================
 * FORMULARINHALT – PROFI / FOOD / PROGRAMM / FACHBESUCHER
 * ========================================================= */

.bfm-simple-application .bfm-form-hint {
    margin: 0 14px 24px;
    padding: 14px 18px;

    border-left:
        4px solid var(
            --wp--preset--color--custom-akzent-1
        );

    border-radius: 0 8px 8px 0;

    background: rgba(0, 0, 0, 0.035);
}


.bfm-simple-application .bfm-form-hint p {
    margin: 0 0 8px;

    line-height: 1.55;
}


.bfm-simple-application .bfm-form-hint p:last-child {
    margin-bottom: 0;
}


.bfm-simple-application .bfm-field {
    display: grid;

    grid-template-columns:
        minmax(170px, 0.55fr)
        minmax(0, 2fr);

    align-items: start;

    gap: 10px 24px;

    margin: 0 14px 16px;
}

/* Erklärungen zu Formularüberschriften und Zusatzleistungen */
.bfm-help {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: fit-content;
    cursor: help;
    outline: none;
}

.bfm-help::after {
    content: '?';
    display: inline-grid;
    place-items: center;
    flex: 0 0 15px;
    width: 15px;
    height: 15px;
    margin-left: 5px;
    border: 1px solid currentColor;
    border-radius: 50%;
    box-sizing: border-box;
    font-size: 9px;
    font-weight: 700;
    line-height: 1;
    opacity: 0.68;
}

.bfm-help-tooltip {
    position: fixed;
    z-index: 1000000;
    width: max-content;
    max-width: min(380px, calc(100vw - 24px));
    padding: 12px 14px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    box-sizing: border-box;
    background: #ffffff;
    color: #222222;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.45;
    white-space: pre-line;
    pointer-events: none;
}

.bfm-help-tooltip[hidden] {
    display: none;
}

.bfm-finish-hint {
    margin: 46px 0 18px;
    padding: 14px 16px;
    border-left: 4px solid var(--wp--preset--color--custom-akzent-1, #3598db);
    border-radius: 0 8px 8px 0;
    background: rgba(0, 0, 0, 0.035);
    font-weight: 600;
}

@media (max-width: 800px) {
    .bfm-finish-hint {
        display: none;
    }

    .bfm-ai-confirmation .bfm-waitlist-question {
        min-height: 112px;
    }

    .bfm-ai-confirmation .bfm-choice-card {
        min-height: 62px;
    }
}

.bfm-programm-upload-intro {
    margin: 24px 0 6px;
    font-weight: 600;
}


.bfm-simple-application .bfm-field > label {
    margin: 8px 0 0;

    font-size: 0.94em;
    font-weight: 500;
    line-height: 1.35;
}


.bfm-simple-application .bfm-field > input,
.bfm-simple-application .bfm-field > select,
.bfm-simple-application .bfm-field > textarea {
    width: 100%;
    max-width: none;

    margin: 0;

    box-sizing: border-box;
}


/* Datenschutzkarte bei Fachbesucher */

.bfm-simple-application .bfm-fachbesucher-consent {
    display: block;

    margin: 22px 14px 16px;
}


.bfm-simple-application
.bfm-fachbesucher-consent
.bfm-consent-card {
    width: 100%;

    margin: 0;
    padding: 15px 17px;

    box-sizing: border-box;

    font-size: 0.94em;
    font-weight: 400;
    line-height: 1.45;
}


/* Mobile Darstellung */

@media (max-width: 800px) {

    .bfm-simple-application {
        display: block;

        padding-bottom: 190px;
    }


    .bfm-simple-application[hidden] {
        display: none;
    }


    .bfm-simple-application .bfm-form-hint {
        margin-left: 0;
        margin-right: 0;
    }


    .bfm-simple-application .bfm-field {
        grid-template-columns: 1fr;

        gap: 6px;

        margin-left: 0;
        margin-right: 0;
    }


    .bfm-simple-application .bfm-field > label {
        margin-top: 0;
    }


    .bfm-simple-application .bfm-fachbesucher-consent {
        margin-left: 0;
        margin-right: 0;
    }


    .bfm-summary-simple .bfm-summary-divider {
        display: none;
    }
}
