.mg-a4-form {
    max-width: 820px;
    margin: 0 auto;
    font-family: inherit;
}


/* Vorgeschalteter Auswahl-Assistent (Herkunft & Bestellart) */

.mg-step-wizard {
    background: #fff;
    border: 1px solid #e2e8f0;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 28px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.mg-wizard-title {
    margin: 0 0 12px 0;
    font-size: 1.1rem;
    color: #2c3e35;
}

.mg-choice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 12px;
}

.mg-choice-card {
    display: flex;
    flex-direction: column;
    padding: 14px 16px;
    border: 2px solid #dcd5c7;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    background: #fcfbf9;
    position: relative;
}

.mg-choice-card:hover {
    border-color: #2c3e35;
}

.mg-choice-card.mg-card-active {
    border-color: #2c3e35;
    background: #eef5f0;
}

.mg-choice-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.mg-choice-title {
    font-weight: 700;
    font-size: 1rem;
    color: #2c3e35;
}

.mg-choice-sub {
    font-size: 0.82rem;
    color: #666;
    margin-top: 4px;
}

.mg-info-banner {
    background: #fff3cd;
    color: #856404;
    padding: 12px 15px;
    border-left: 4px solid #ffc107;
    border-radius: 4px;
    font-size: 0.92rem;
}


/* Genussbegleitung & A4-Tabelle */

.mg-genuss-toggle-box {
    background: #f4f1ea;
    border: 1px solid #dcd5c7;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 25px;
}

.mg-genuss-fields-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.mg-genuss-fields-grid label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.mg-genuss-fields-grid input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.mg-cat-title {
    border-bottom: 2px solid #2c3e35;
    padding-bottom: 6px;
    margin-top: 32px;
    margin-bottom: 10px;
    font-size: 1.2rem;
    color: #2c3e35;
    letter-spacing: 0.03em;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px;
}

.mg-cat-subtitle {
    font-size: 0.88rem;
    font-weight: 400;
    color: #666;
    letter-spacing: normal;
    font-style: italic;
}

.mg-menu-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 18px;
}

.mg-menu-table tr {
    border-bottom: 1px solid #eaeaea;
    transition: background 0.15s;
}

.mg-menu-table tr.mg-row-active {
    background-color: #eef5f0;
}

.mg-menu-table td {
    padding: 11px 6px;
    vertical-align: middle;
}

.mg-col-check {
    width: 38px;
    text-align: center;
}

.mg-col-check input[type="checkbox"] {
    width: 22px;
    height: 22px;
    accent-color: #2c3e35;
    cursor: pointer;
}

.mg-col-info label {
    display: block;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1.3;
    margin: 0;
}

.mg-desc {
    font-size: 0.85rem;
    color: #555;
    margin-top: 3px;
    line-height: 1.35;
}


/* Gang-Optionen */

.mg-course-addon {
    margin-top: 7px;
    padding: 5px 9px;
    background: #fff;
    border: 1px dashed #2c3e35;
    border-radius: 4px;
    display: inline-block;
}

.mg-course-addon label {
    font-size: 0.83rem !important;
    font-weight: 600;
    color: #2c3e35;
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.mg-course-addon input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #2c3e35;
}

.mg-col-price {
    width: 90px;
    text-align: right;
    font-weight: 600;
    white-space: nowrap;
    font-size: 0.95rem;
}

.mg-col-qty {
    width: 68px;
    text-align: right;
}

.mg-col-qty input[type="number"] {
    width: 56px;
    padding: 6px 4px;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

.mg-submit-bar {
    position: sticky;
    bottom: 0;
    background: rgba(255, 255, 255, 0.96);
    padding: 12px 0;
    border-top: 1px solid #ddd;
    z-index: 99;
    backdrop-filter: blur(4px);
}

.mg-submit-btn {
    width: 100%;
    padding: 15px !important;
    font-size: 1.05rem !important;
    background-color: #2c3e35 !important;
    color: #fff !important;
    border-radius: 6px !important;
    text-align: center;
    border: none !important;
    cursor: pointer;
}

#mg_order_type_field label.radio {
    display: inline-block;
    margin-right: 18px;
    font-weight: 600;
    cursor: pointer;
}

#mg_time_slot option:disabled {
    color: #999;
    background: #f2f2f2;
}


/* Flatpickr: Grafische Darstellung gesperrter Tage (Ruhetag & Betriebsurlaub) */

.flatpickr-day.mg-closed-day,
.flatpickr-day.flatpickr-disabled.mg-closed-day {
    background-color: #fee2e2 !important;
    color: #991b1b !important;
    text-decoration: line-through;
    border-color: #fecaca !important;
    opacity: 0.85;
}

.flatpickr-day.mg-closed-day-info {
    background-color: #fff1f2;
    color: #9f1239;
    position: relative;
}

.flatpickr-day.mg-closed-day-info::after {
    content: "";
    position: absolute;
    bottom: 3px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: #e11d48;
}