#mab-language,
.mab-booking input,
.mab-booking select,
.mab-booking textarea,
.mab-booking button {
    font: inherit;
}

.mab-booking {
    --mab-color: #825E24;
    color: var(--mab-color);
    max-width: 820px;
    margin: 0 auto;
}

.mab-field {
    margin: 0 0 14px;
}

.mab-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
}

.mab-required {
    margin-left: 2px;
}

.mab-field input[type="text"],
.mab-field input[type="email"],
.mab-field input[type="number"],
.mab-field select,
.mab-field textarea,
#mab-language {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--mab-color);
    border-radius: 6px;
    padding: 8px 10px;
    color: #222;
    background: #fff;
}

.mab-checkbox label {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    font-weight: 400;
}

.mab-checkbox input {
    margin-top: 4px;
}

.mab-calendars {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 292px));
    gap: 18px;
    justify-content: center;
    margin: 18px 0;
}

.mab-calendar {
    border: 1px solid var(--mab-color);
    border-radius: 10px;
    padding: 10px;
    max-width: 292px;
    box-sizing: border-box;
}

.mab-calendar-header {
    display: grid;
    grid-template-columns: 34px 1fr 34px;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    font-weight: 700;
}

.mab-calendar-header > div {
    text-align: center;
}

.mab-calendar-nav {
    background: var(--mab-color);
    color: #fff;
    border: 0;
    border-radius: 6px;
    width: 30px;
    height: 30px;
    min-width: 30px;
    line-height: 30px;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mab-calendar table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.mab-calendar th,
.mab-calendar td {
    width: 14.2857%;
    text-align: center;
    box-sizing: border-box;
}

.mab-calendar th {
    font-size: 12px;
    font-weight: 700;
    padding: 4px 0;
}

.mab-calendar td {
    padding: 2px;
}

.mab-day {
    width: 30px;
    height: 30px;
    max-width: 100%;
    border: 1px solid var(--mab-color);
    border-radius: 50%;
    background: var(--mab-color);
    color: #fff;
    cursor: pointer;
    padding: 0;
    line-height: 28px;
    text-align: center;
}

.mab-day:hover:not(:disabled) {
    filter: brightness(0.92);
}

.mab-day.is-selected,
.mab-day.is-range {
    background: #4f3612;
    border-color: #4f3612;
    color: #fff;
}

.mab-day:disabled,
.mab-day.is-blocked,
.mab-day.is-past {
    color: #999;
    background: #e6e6e6;
    border-color: #d0d0d0;
    cursor: not-allowed;
    text-decoration: line-through;
}

.mab-selected {
    margin: 8px 0 18px;
    padding: 9px 12px;
    border-left: 4px solid var(--mab-color);
    background: rgba(130, 94, 36, 0.08);
}

.mab-note {
    margin: 6px 0 12px;
    padding: 9px 11px;
    background: rgba(130, 94, 36, 0.08);
    border-left: 4px solid var(--mab-color);
    color: #4b3820;
    font-size: 14px;
}

.mab-submit {
    background: var(--mab-color);
    color: #fff;
    border: 0;
    border-radius: 8px;
    padding: 10px 18px;
    cursor: pointer;
}

.mab-message {
    margin-bottom: 12px;
}

.mab-message.mab-error {
    color: #8a1f1f;
}

.mab-message.mab-success {
    color: #1f7a1f;
    font-weight: 600;
    margin-top: 12px;
}

@media (max-width: 700px) {
    .mab-calendars {
        grid-template-columns: minmax(0, 292px);
    }
}


.mab-calendar table,
.mab-calendar thead,
.mab-calendar tbody,
.mab-calendar tr,
.mab-calendar th,
.mab-calendar td {
    border: 0 !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
}

.mab-calendar th::before,
.mab-calendar th::after,
.mab-calendar td::before,
.mab-calendar td::after,
.mab-calendar tr::before,
.mab-calendar tr::after {
    display: none !important;
    content: none !important;
}


.mab-price-box {
    margin: 8px 0 18px;
    padding: 11px 13px;
    border: 1px solid var(--mab-color);
    border-radius: 8px;
    background: rgba(130, 94, 36, 0.08);
    color: var(--mab-color);
}

.mab-price-box strong {
    font-weight: 700;
}

.mab-price-note {
    margin: 5px 0 0;
    font-size: 13px;
    color: #5f4a2b;
}


.mab-price-lines {
    margin-top: 6px;
    line-height: 1.55;
}

.mab-price-total {
    font-weight: 700;
}


.mab-calendar-unsynced {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    text-align: center;
    font-size: 14px;
    background: rgba(130, 94, 36, 0.06);
    color: #5f4a2b;
    line-height: 1.45;
}


.mab-sync-limit-note {
    margin-top: -4px;
    margin-bottom: 18px;
}


.mab-note,
.mab-warning,
.mab-sync-limit-note,
.mab-bike-note,
.mab-family-note {
    color: #882021 !important;
}

.mab-note a,
.mab-sync-limit-note a {
    color: #882021 !important;
    font-weight: 600;
}


/* Warnhinweise komplett rot darstellen */
.mab-sync-limit-note,
.mab-family-note,
.mab-bike-note {
    border-color: #882021 !important;
    border-left-color: #882021 !important;
    color: #882021 !important;
    background: rgba(136, 32, 33, 0.08) !important;
}

.mab-sync-limit-note a,
.mab-family-note a,
.mab-bike-note a {
    color: #882021 !important;
    font-weight: 700;
}


.mab-max-persons-note {
    color: #882021 !important;
    background: rgba(136, 32, 33, 0.08);
    border-left: 4px solid #882021;
    padding: 10px 12px;
    margin-top: -4px;
    margin-bottom: 12px;
}


.mab-day.is-arrival-date:not(.is-selected) {
    background: #fff;
    color: var(--mab-color);
    border: 2px solid var(--mab-color);
    text-decoration: none;
}


/* Judith – mobile friendly booking overview */
.mab-judith { max-width: 980px; margin: 0 auto; }
.mab-judith-card {
    border: 1px solid #ddd;
    border-left: 5px solid #825E24;
    border-radius: 8px;
    padding: 14px;
    margin: 0 0 14px;
    background: #fff;
}
.mab-judith-date { display:flex; gap:8px; align-items:baseline; margin-bottom:12px; font-size:1.08em; }
.mab-judith-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px 18px; }
.mab-judith-grid div { display:flex; flex-direction:column; }
.mab-judith-grid b { color:#825E24; font-size:.88em; margin-bottom:2px; }
.mab-accounting-table { width:100%; border-collapse:collapse; margin-bottom:28px; }
.mab-accounting-table th,.mab-accounting-table td { padding:9px; border-bottom:1px solid #ddd; text-align:left; }
.mab-quarter-row { background:#f7f3ed; }
.mab-year-row { background:#eee3d3; }
@media (max-width: 650px) {
    .mab-judith-grid { grid-template-columns:1fr; gap:8px; }
    .mab-judith-date { flex-direction:column; gap:1px; }
    .mab-accounting-table { font-size:.86em; }
    .mab-accounting-table th,.mab-accounting-table td { padding:6px 4px; }
}


/* Judith 2.8.1 – kompakter und klarer */
.mab-judith-card {
    padding: 16px 0 20px !important;
    margin: 0 0 18px !important;
    border: 0 !important;
    border-bottom: 2px solid #825E24 !important;
    border-radius: 0 !important;
    background: transparent !important;
}
.mab-judith-date {
    display: flex;
    gap: 8px;
    align-items: baseline;
    margin-bottom: 12px;
    font-size: 1.1em;
}
.mab-judith-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.mab-judith-list > div {
    display: grid;
    grid-template-columns: 150px 1fr;
    column-gap: 14px;
    align-items: start;
}
.mab-judith-list b {
    color: #825E24;
}
.mab-judith-list span {
    padding-left: 2px;
}
.mab-judith-notes span {
    white-space: normal;
}
@media (max-width: 650px) {
    .mab-judith-list > div {
        grid-template-columns: 1fr;
        gap: 2px;
    }
    .mab-judith-list span {
        padding-left: 0;
    }
}


/* Judith 2.8.3 – gestaltete Kartenansicht */
.mab-judith {
    max-width: 820px;
    margin: 0 auto;
}

.mab-judith-card {
    background: #fff !important;
    border: 1px solid rgba(130, 94, 36, 0.22) !important;
    border-radius: 14px !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    padding: 0 !important;
    margin: 0 0 22px !important;
    overflow: hidden;
}

.mab-judith-card-header {
    margin: 0 !important;
    padding: 14px 16px !important;
    background: rgba(130, 94, 36, 0.10);
    border-bottom: 1px solid rgba(130, 94, 36, 0.18);
    display: flex !important;
    align-items: baseline !important;
    gap: 8px !important;
    flex-wrap: wrap;
}

.mab-judith-card-header strong {
    color: #825E24;
    font-size: 1.13rem;
    line-height: 1.2;
}

.mab-judith-card-header span {
    color: #555;
    font-size: 0.98rem;
}

.mab-judith-list {
    display: flex !important;
    flex-direction: column;
    gap: 0 !important;
    padding: 6px 16px 12px;
}

.mab-judith-row,
.mab-judith-list > div {
    display: grid !important;
    grid-template-columns: 145px minmax(0, 1fr) !important;
    gap: 18px !important;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    align-items: start;
}

.mab-judith-row:last-child,
.mab-judith-list > div:last-child {
    border-bottom: 0;
}

.mab-judith-row b,
.mab-judith-list b {
    color: #825E24 !important;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: .01em;
    line-height: 1.35;
}

.mab-judith-row span,
.mab-judith-list span {
    color: #222;
    font-size: 1rem;
    line-height: 1.45;
    padding: 0 !important;
}

.mab-judith-checkin span {
    font-weight: 700;
    font-size: 1.05rem;
}

.mab-judith-origin span {
    display: inline-block;
    width: fit-content;
    padding: 2px 8px !important;
    border-radius: 999px;
    background: rgba(130, 94, 36, 0.10);
    color: #825E24;
    font-weight: 700;
    font-size: .9rem;
}

.mab-judith-notes span {
    white-space: normal;
    background: #faf7f2;
    border-radius: 8px;
    padding: 8px 10px !important;
}

@media (max-width: 650px) {
    .mab-judith {
        padding: 0 2px;
    }

    .mab-judith-card {
        border-radius: 12px !important;
        margin-bottom: 18px !important;
    }

    .mab-judith-card-header {
        padding: 13px 14px !important;
    }

    .mab-judith-list {
        padding: 4px 14px 10px;
    }

    .mab-judith-row,
    .mab-judith-list > div {
        grid-template-columns: 1fr !important;
        gap: 3px !important;
        padding: 9px 0;
    }

    .mab-judith-row b,
    .mab-judith-list b {
        font-size: .8rem;
        text-transform: uppercase;
        letter-spacing: .04em;
    }

    .mab-judith-row span,
    .mab-judith-list span {
        font-size: 1rem;
    }

    .mab-judith-notes span {
        margin-top: 2px;
    }
}


/* Judith 2.8.4 – sichtbare Kartenansicht */
.mab-judith {
    max-width: 820px !important;
    margin: 0 auto !important;
}

.mab-judith-card {
    background: #ffffff !important;
    border: 1px solid #d8c8ae !important;
    border-radius: 14px !important;
    box-shadow: 0 3px 14px rgba(0,0,0,.08) !important;
    margin: 0 0 26px !important;
    overflow: hidden !important;
}

.mab-judith-card-header {
    display: flex !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
    align-items: baseline !important;
    padding: 15px 18px !important;
    background: #f3ede4 !important;
    border-bottom: 1px solid #d8c8ae !important;
}

.mab-judith-card-header strong {
    color: #825E24 !important;
    font-size: 1.2rem !important;
    font-weight: 700 !important;
}

.mab-judith-card-header span {
    color: #555 !important;
    font-size: 1rem !important;
}

.mab-judith-body {
    padding: 6px 18px 12px !important;
}

.mab-judith-row {
    display: grid !important;
    grid-template-columns: 150px minmax(0,1fr) !important;
    column-gap: 20px !important;
    padding: 10px 0 !important;
    border-bottom: 1px solid #ececec !important;
}

.mab-judith-row:last-child {
    border-bottom: 0 !important;
}

.mab-judith-label {
    color: #825E24 !important;
    font-weight: 700 !important;
    font-size: .9rem !important;
}

.mab-judith-value {
    color: #222 !important;
    font-size: 1rem !important;
    line-height: 1.5 !important;
}

.mab-judith-strong {
    font-weight: 700 !important;
}

.mab-origin-badge {
    display: inline-block !important;
    background: #f3ede4 !important;
    color: #825E24 !important;
    border-radius: 999px !important;
    padding: 2px 9px !important;
    font-weight: 700 !important;
    font-size: .9rem !important;
}

.mab-judith-note-box {
    background: #faf7f2 !important;
    border-left: 3px solid #825E24 !important;
    padding: 8px 10px !important;
    border-radius: 6px !important;
}

@media (max-width:650px) {
    .mab-judith-card {
        margin-bottom: 20px !important;
    }

    .mab-judith-card-header {
        padding: 13px 14px !important;
    }

    .mab-judith-body {
        padding: 4px 14px 10px !important;
    }

    .mab-judith-row {
        grid-template-columns: 1fr !important;
        row-gap: 3px !important;
        padding: 9px 0 !important;
    }

    .mab-judith-label {
        font-size: .78rem !important;
        text-transform: uppercase !important;
        letter-spacing: .04em !important;
    }

    .mab-judith-value {
        font-size: 1rem !important;
    }
}


/* Judith Finanzübersicht */
.mabj-finance-wrap{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:14px;
    margin:0 0 24px;
}
.mabj-finance-card{
    background:#fff;
    border:1px solid #d9c9af;
    border-radius:14px;
    box-shadow:0 3px 12px rgba(0,0,0,.06);
    overflow:hidden;
}
.mabj-finance-title{
    background:#825E24;
    color:#fff;
    font-weight:700;
    font-size:1.05rem;
    padding:11px 14px;
}
.mabj-finance-row{
    display:flex;
    justify-content:space-between;
    gap:16px;
    padding:9px 14px;
    border-bottom:1px solid #eee;
}
.mabj-finance-row span{color:#555}
.mabj-finance-row strong{color:#222;white-space:nowrap}
.mabj-finance-total{
    background:#f3ede4;
    border-bottom:0;
}
.mabj-finance-total span,
.mabj-finance-total strong{
    color:#825E24;
    font-weight:700;
}
@media(max-width:650px){
    .mabj-finance-wrap{grid-template-columns:1fr}
}
