/* ==========================================================================
   Buchungsseite – V-Office bringt Bootstrap 3 + Ahrens-CSS global mit.
   Diese Regeln stellen das Theme wieder her und gestalten das Modul.
   ========================================================================== */
html { font-size: 100% !important; }
body.mm-booking { font-family: var(--font-sans) !important; font-size: 1.0625rem !important; line-height: 1.7 !important; color: var(--ink-2) !important; background: var(--bg) !important; }
body.mm-booking :is(h1, h2, h3, h4) { font-family: var(--font-serif) !important; font-weight: 400 !important; color: var(--ink) !important; letter-spacing: -.015em; }
body.mm-booking .mm-header a, body.mm-booking .mm-footer a { text-decoration: none !important; }
body.mm-booking .mm-menu a { color: var(--ink); }
body.mm-booking .mm-footer h3 { font-family: var(--font-sans) !important; color: #d6c49b !important; letter-spacing: .14em !important; font-size: .75rem !important; }
body.mm-booking .mm-footer ul { padding: 0; }
body.mm-booking .mm-btn { color: var(--btn-fg) !important; }
body.mm-booking label { font-weight: 600; }

.mm-bk-wrap { margin-top: 8px; }

/* Wohnungswahl */
.mm-bk-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 20px; }
.mm-bk-switch a {
	position: relative;
	display: grid;
	grid-template-columns: auto 1fr;
	column-gap: 14px;
	align-items: center;
	padding: 18px 20px;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 0 0 1px var(--line);
	color: inherit !important;
	text-decoration: none !important;
	transition: box-shadow 200ms ease, transform 160ms var(--ease-out);
	-webkit-tap-highlight-color: transparent;
}
.mm-bk-switch a:active { transform: scale(.98); }
.mm-bk-switch-dot { grid-row: span 2; width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line); transition: box-shadow 200ms var(--ease-out); }
.mm-bk-switch strong { font-family: var(--font-serif); font-weight: 400; font-size: 1.375rem; color: var(--ink); line-height: 1.2; }
.mm-bk-switch span:not(.mm-bk-switch-dot) { font-size: .875rem; color: var(--muted); }
.mm-bk-switch a.is-active { box-shadow: 0 0 0 1.5px var(--navy), var(--shadow); }
.mm-bk-switch a.is-active .mm-bk-switch-dot { box-shadow: inset 0 0 0 6px var(--navy); }
@media (hover: hover) and (pointer: fine) { .mm-bk-switch a:not(.is-active):hover { box-shadow: 0 0 0 1px #d6cbb2; } }
@media (max-width: 600px) { .mm-bk-switch { grid-template-columns: 1fr; } }

/* Ablauf */
.mm-bk-steps { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0 0 20px !important; padding: 0 !important; counter-reset: s; font-size: .875rem; color: var(--ink-2); }
.mm-bk-steps li { counter-increment: s; display: flex; align-items: center; }
.mm-bk-steps li::before { content: counter(s); display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--sand); color: var(--navy); font-size: .75rem; font-weight: 700; margin-right: 8px; }

/* Karte mit Modul */
.mm-bk { position: relative; background: #fff; border-radius: 20px; box-shadow: var(--shadow), 0 0 0 1px rgba(22, 33, 58, .05); padding: clamp(18px, 3vw, 36px); min-height: 360px; }
.mm-bk-skeleton { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.mm-bk-skeleton span { height: 300px; border-radius: 12px; background: linear-gradient(90deg, var(--shell) 0%, var(--sand) 50%, var(--shell) 100%); background-size: 200% 100%; animation: mm-shimmer 1.4s linear infinite; }
.mm-bk-skeleton span:nth-child(3) { display: none; }
.mm-bk.is-ready .mm-bk-skeleton { display: none; }
@media (max-width: 760px) { .mm-bk-skeleton { grid-template-columns: 1fr; } .mm-bk-skeleton span:nth-child(2) { display: none; } }
@keyframes mm-shimmer { to { background-position: -200% 0; } }

.mm-pick { display: none; align-items: center; gap: 12px; margin: 0 0 18px; padding: 12px 16px; border-radius: 12px; background: var(--navy); color: #fff; font-size: .9375rem; line-height: 1.5; }
.mm-pick .mm-icon { width: 20px; height: 20px; color: #d6c49b; }
.mm-pick b { color: #e8dcc0; margin-right: 4px; }
.mm-bk:has(.v-caltable.selecting-ar):not(:has(.till-day)) .mm-pick-ar,
.mm-bk:has(.v-caltable.selecting-de) .mm-pick-de,
.mm-bk:has(.v-caltable.selecting-ar):has(.till-day) .mm-pick-ok { display: flex; }
@keyframes mm-pick-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

.mm-legend { display: flex; flex-wrap: wrap; gap: 18px; font-size: .8125rem; color: var(--muted); margin: 10px 0 0; }
.mm-legend span::before { content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 4px; vertical-align: -1px; margin-right: 7px; }
.mm-legend .free::before { background: var(--sand); box-shadow: inset 0 0 0 1px var(--line); }
.mm-legend .busy::before { background: #e7e9ef; }
.mm-legend .sel::before { background: var(--navy); }
.mm-fallback { display: none; padding: 20px; background: var(--sand); border-radius: 12px; margin-top: 16px; }
.mm-fallback a { color: var(--navy) !important; font-weight: 600; text-decoration: underline !important; }

/* Info-Karten */
.mm-bk-info { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.mm-bk-info > div { background: var(--shell); border-radius: 16px; padding: 24px; box-shadow: 0 0 0 1px var(--line-soft); }
.mm-bk-info .mm-icon { width: 26px; height: 26px; color: var(--teal); margin-bottom: 12px; }
.mm-bk-info h3 { font-size: 1.25rem !important; margin: 0 0 8px !important; }
.mm-bk-info p { font-size: .9375rem; margin: 0; }
@media (max-width: 900px) { .mm-bk-info { grid-template-columns: 1fr; } }

/* Fehlende Theme-Werte im Modul */
.mm-bk .v-calheader h4, .mm-bk .v-cal-monthtitle { font-family: var(--font-serif) !important; }
.mm-bk .btn-go, .mm-bk .book-btn.btn-go { transition: transform 160ms var(--ease-out), background-color 200ms ease !important; }
.mm-bk .btn:active { transform: scale(.97); }
.mm-bk .form-control { border-radius: 12px !important; }
/* Buchungsmodul: Kalender */
.mm-bk .booking-voffice-container { font-family: var(--font-sans); }
.mm-bk .container-fluid { padding: 0; }
.mm-bk .v-calheader h4, .mm-bk .v-cal-monthtitle { font-size: 20px !important; color: var(--navy) !important; }
.mm-bk .v-calheader .fa { color: var(--gold) !important; }
.mm-bk .v-caltable { width: 100%; border-collapse: separate; border-spacing: 3px; border: 0 !important; }
.mm-bk .v-caltable th { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: #8a8a8a; font-weight: 600; text-align: center; padding: 4px 0; border: 0 !important; }
.mm-bk .v-cal-day { border: 0 !important; border-radius: 4px; text-align: center; height: 38px; font-size: 14px; }
.mm-bk .v-cal-day.ar-ok { background: var(--sand) !important; color: var(--navy) !important; font-weight: 600; cursor: pointer; }
body .mm-bk .v-calendar .v-caltable td.v-cal-day.de-ok { background: var(--sand) !important; color: var(--navy) !important; font-weight: 600; cursor: pointer; }
@media (hover: hover) {
  body .mm-bk .v-calendar .v-caltable td.v-cal-day.ar-ok:hover, body .mm-bk .v-calendar .v-caltable td.v-cal-day.de-ok:hover { background: var(--gold) !important; color: #fff !important; }
}
/* Nach gewählter Anreise: nur mögliche Abreisetage hervorheben */
body .mm-bk .v-calendar .v-caltable.selecting-de td.v-cal-day.ar-ok:not(.de-ok):not(.from-day) { background: transparent !important; color: #c4c4c4 !important; font-weight: 400; }
body .mm-bk .v-calendar .v-caltable.selecting-de td.v-cal-day.de-ok:not(.from-day) { box-shadow: inset 0 0 0 2px var(--gold); }

/* Hinweisbalken: welcher Schritt ist dran */
.mm-pick { display: none; margin: 0 0 18px; padding: 12px 16px; border-radius: 6px; background: var(--navy); color: #fff; font-size: 15px; line-height: 1.5; }
.mm-pick b { color: #e3d9bd; }
.mm-bk:has(.v-caltable.selecting-ar):not(:has(.till-day)) .mm-pick-ar,
.mm-bk:has(.v-caltable.selecting-de) .mm-pick-de,
.mm-bk:has(.v-caltable.selecting-ar):has(.till-day) .mm-pick-ok { display: block; }
body .mm-bk .v-calendar .v-caltable td.v-cal-day.ne { background: #e7e9ef !important; color: #a3a8b5 !important; text-decoration: line-through; }
body .mm-bk .v-calendar .v-caltable td.v-cal-day.ar { background: linear-gradient(135deg, var(--sand) 50%, #e7e9ef 50%) !important; color: var(--navy) !important; }
body .mm-bk .v-calendar .v-caltable td.v-cal-day.de { background: linear-gradient(135deg, #e7e9ef 50%, var(--sand) 50%) !important; }
body .mm-bk .v-calendar .v-caltable td.v-cal-day.past { background: transparent !important; color: #cfcfcf !important; }
body .mm-bk .v-calendar .v-caltable td.v-cal-day.stay-day { background: #e3d9bd !important; color: var(--navy) !important; }
body .mm-bk .v-calendar .v-caltable td.v-cal-day.from-day, body .mm-bk .v-calendar .v-caltable td.v-cal-day.till-day { background: var(--navy) !important; color: #fff !important; }

.mm-legend { display: flex; flex-wrap: wrap; gap: 18px; font-size: 13px; margin: 6px 0 0; }
.mm-legend span::before { content: ""; display: inline-block; width: 14px; height: 14px; border-radius: 3px; vertical-align: -2px; margin-right: 6px; }
.mm-legend .free::before { background: var(--sand); border: 1px solid var(--line); }
.mm-legend .busy::before { background: #e7e9ef; }
.mm-legend .sel::before { background: var(--navy); }

/* Formular */
.mm-bk h2 { font-size: 26px !important; margin: 30px 0 16px !important; }
.mm-bk h3 { font-size: 22px !important; margin: 30px 0 10px !important; }
.mm-bk .form-control { height: 46px; border: 1px solid #ddd6c3; border-radius: 4px; box-shadow: none; font-size: 15px; color: #333; }
.mm-bk .form-control:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(193,176,134,.25); }
/* Datum wird nur im großen Kalender gewählt; die Felder zeigen den Zeitraum nur an */
.mm-bk .date-input { pointer-events: none; background: #faf8f2 !important; color: var(--navy) !important; font-weight: 600; caret-color: transparent; }
.mm-bk .date-input::placeholder { color: #9a9a9a; font-weight: 400; }
.mm-bk .mm-datelabel { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: #8a8a8a; margin: 0 0 4px; }
body > .datepicker.datepicker-dropdown { display: none !important; }

/* Preise & Extras (Schritt 2) */
.mm-bk table.price-table { width: 100%; margin: 0 0 6px !important; border: 0 !important; border-collapse: collapse; background: transparent !important; }
.mm-bk table.price-table td, .mm-bk table.price-table th { border: 0 !important; border-bottom: 1px solid #f0ece1 !important; background: transparent !important; padding: 12px 4px !important; font-size: 15px; color: #333; vertical-align: middle !important; }
.mm-bk table.price-table td.price { text-align: right; white-space: nowrap; color: var(--navy); font-weight: 600; }
.mm-bk table.price-table tr.service-info td { border-bottom: 1px solid var(--line) !important; padding: 0 4px 12px !important; margin-top: -8px; font-size: 13px; color: #8a8a8a; }
.mm-bk table.price-table tr:has(+ tr.service-info:not(.ng-hide)) td { border-bottom: 0 !important; padding-bottom: 2px !important; }
.mm-bk table.price-table tr:last-child td { border-bottom: 0 !important; }
.mm-bk table.price-table tr.service-info td, .mm-bk table.price-table tr.service-info td * { font-weight: 400 !important; font-size: 13px !important; color: #8a8a8a !important; }
.mm-bk table.price-table td.service-title { position: relative; }
.mm-bk table.price-table td.service-title:has(.btn-sm:not(.ng-hide)) { padding-left: 52px !important; }
.mm-bk table.price-table td.service-title:has(.btn-default:not(.ng-hide)) { padding-left: 92px !important; }
.mm-bk table.price-table tr:has(.btn-sm:not(.ng-hide)) + tr.service-info td { padding-left: 52px !important; }
.mm-bk table.price-table tr:has(.btn-default:not(.ng-hide)) + tr.service-info td { padding-left: 92px !important; }
.mm-bk table.price-table .btn-sm { position: absolute; left: 8px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; padding: 0 !important; border-radius: 50% !important; line-height: 29px; font-size: 12px; box-shadow: none !important; transition: background .15s, color .15s, border-color .15s; }
.mm-bk table.price-table .btn-default:not(.ng-hide) + .btn-warning { left: 48px; }
body .mm-bk table.price-table .btn-warning { background: #fff !important; border: 1.5px solid var(--gold) !important; color: #a8955f !important; }
body .mm-bk table.price-table .btn-default { background: #fff !important; border: 1.5px solid #cfd3dc !important; color: var(--navy) !important; }
body .mm-bk table.price-table .btn-sm:hover { background: var(--navy) !important; border-color: var(--navy) !important; color: #fff !important; }
/* Gebuchte Extras (mit -/+) dezent hervorheben */
.mm-bk table.price-table tr:has(.btn-default:not(.ng-hide)), .mm-bk table.price-table tr:has(.btn-default:not(.ng-hide)) + tr.service-info { background: #faf8f2 !important; }
.mm-bk table.price-table tr:has(.btn-default:not(.ng-hide)) td.service-title { color: var(--navy) !important; font-weight: 600; }
/* Gesamtbetrag */
.mm-bk table.price-table tr.total td, .mm-bk table.price-table tr.total th { border-top: 2px solid var(--navy) !important; border-bottom: 0 !important; padding-top: 16px !important; font-family: var(--font-serif) !important; font-size: 20px !important; color: var(--navy) !important; font-weight: 400 !important; }
/* Optionale Extras: ganze Zeile antippbar */
.mm-bk .optionals { margin-top: 36px; }
.mm-bk .optionals h3 { font-size: 22px !important; margin: 0 0 6px !important; padding-bottom: 12px; }
.mm-bk .optionals h3::after { content: "Antippen zum Hinzufügen \2013 der Gesamtpreis aktualisiert sich sofort."; display: block; font-family: var(--font-sans); font-size: 13px; color: #8a8a8a; margin-top: 6px; }
.mm-bk .optionals table.price-table tr { cursor: pointer; transition: background .15s; }
.mm-bk .optionals table.price-table td.price { color: #5f6060; font-weight: 600; }
@media (hover: hover) {
  .mm-bk .optionals table.price-table tr:hover, .mm-bk .optionals table.price-table tr:has(+ tr.service-info:hover), .mm-bk .optionals table.price-table tr:hover + tr.service-info { background: #faf8f2 !important; }
  .mm-bk .optionals table.price-table tr:hover .btn-warning, .mm-bk .optionals table.price-table tr:has(+ tr.service-info:hover) .btn-warning { background: var(--gold) !important; border-color: var(--gold) !important; color: #fff !important; }
  .mm-bk .optionals table.price-table tr:hover td.price, .mm-bk .optionals table.price-table tr:has(+ tr.service-info:hover) td.price { color: var(--navy); }
}

/* Buttons */
.mm-bk .btn-go, .mm-bk .book-btn.btn-go { background: var(--navy) !important; border: 0 !important; border-radius: 30px !important; color: #fff !important; text-transform: uppercase; letter-spacing: .08em; font-size: 14px !important; font-weight: 600; padding: 16px 28px !important; transition: background .2s; }
body .mm-bk .booking-voffice-container .btn.btn-go:hover, body .mm-bk .booking-voffice-container .btn.btn-go:focus { background: var(--gold) !important; color: #fff !important; }
body .mm-bk .booking-voffice-container .btn-default.book-btn { background: transparent !important; border: 0 !important; color: #5f6060 !important; font-size: 14px !important; text-transform: uppercase; letter-spacing: .08em; padding: 16px 20px !important; margin-right: 6px; }
body .mm-bk .booking-voffice-container .btn-default.book-btn:hover { color: var(--navy) !important; text-decoration: underline; }



@media (max-width: 900px) { .mm-bk { padding: 18px; } }
@media (max-width: 600px) {
  .mm-bk .booking-voffice-container [class*="col-"] { width: 100% !important; float: none !important; }
  .mm-bk .inline-row { display: block !important; }
  .mm-bk .inline-row > .form-group { display: block !important; width: 100% !important; float: none !important; margin: 0 !important; }
  .mm-bk .form-control { margin-bottom: 8px; }
  .mm-bk .book-btn.pull-right { float: none !important; display: block; width: 100%; margin: 8px 0 0 !important; }
}

/* Wunschzeitraum aus der Suche */
.mm-bk-wish { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 18px; padding: 14px 18px; border-radius: 12px; font-size: .9375rem; line-height: 1.5; }
.mm-bk-wish[hidden] { display: none; }
.mm-bk-wish.is-wait { background: var(--shell); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }
.mm-bk-wish.is-ok { background: #eaf5f2; color: #145c4e; }
.mm-bk-wish.is-no { background: #fdf3e6; color: #7a4a12; }
.mm-bk:has(.mm-bk-wish:not([hidden])) .mm-pick { display: none !important; }
.mm-bk-wish.is-ok ~ .mm-pick { display: none !important; }
.mm-bk-wish-link { display: inline-block; margin-top: 6px; font-weight: 600; color: var(--navy) !important; text-decoration: underline !important; }

/* ==========================================================================
   Modul-Layout (Feinschliff): Raster statt Bootstrap-Floats
   ========================================================================== */
.mm-bk .container-fluid { padding: 0 !important; }
.mm-bk .row { margin: 0 !important; }
.mm-bk .row::before, .mm-bk .row::after { display: none !important; }
.mm-bk [class*="col-"] { float: none !important; width: auto !important; padding: 0 !important; }

/* Zwei Monate nebeneinander */
.mm-bk .container-fluid > .row:first-child { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(24px, 4vw, 56px); }
@media (max-width: 760px) { .mm-bk .container-fluid > .row:first-child { grid-template-columns: 1fr; gap: 24px; } }

.mm-bk .v-calheader h4 { display: flex; align-items: center; justify-content: space-between; margin: 0 0 10px !important; padding: 0; }
.mm-bk .v-calheader .v-cal-monthtitle { order: 2; flex: 1; text-align: center; font-size: 1.25rem !important; }
.mm-bk .v-calheader .pull-left { order: 1; float: none !important; }
.mm-bk .v-calheader .pull-right { order: 3; float: none !important; }
.mm-bk .v-calheader .scroll-btn { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 999px; transition: background-color 160ms ease, transform 160ms var(--ease-out); }
.mm-bk .v-calheader .scroll-btn:active { transform: scale(.94); }
@media (hover: hover) and (pointer: fine) { .mm-bk .v-calheader .scroll-btn:hover { background: var(--sand); } }

.mm-bk .v-caltable { border-spacing: 4px !important; table-layout: fixed; }
.mm-bk .v-caltable th { font-size: .6875rem !important; letter-spacing: .1em !important; color: var(--muted) !important; padding: 0 0 6px !important; }
body .mm-bk .v-calendar .v-caltable td.v-cal-day { height: 44px !important; border-radius: 10px !important; font-size: .9375rem !important; color: #b9bdc7; transition: background-color 120ms ease, box-shadow 120ms ease; }
body .mm-bk .v-calendar .v-caltable td.v-cal-day.past { color: #d6d8de !important; }
body .mm-bk .v-calendar .v-caltable td.v-cal-day.ne { text-decoration: line-through; text-decoration-color: rgba(163, 168, 181, .7); }

/* Bereich „Preise & Buchen“ klar abgesetzt */
.mm-bk .container-fluid > .row + .row { margin-top: 28px !important; padding-top: 28px; border-top: 1px solid var(--line-soft); }
body.mm-booking .mm-content .mm-bk .info-col-header h2,
body.mm-booking .mm-bk .info-col-header h2 { font-size: 1.5rem !important; line-height: 1.2 !important; margin: 0 0 18px !important; }
body.mm-booking .mm-content .mm-bk h3,
body.mm-booking .mm-bk .optionals h3 { font-size: 1.375rem !important; }

/* Felder: Raster mit Abständen */
.mm-bk .inline-group { margin: 0 0 12px; }
.mm-bk .inline-row { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.mm-bk .inline-row > .form-group { width: auto !important; float: none !important; margin: 0 !important; padding: 0 !important; display: block !important; }
.mm-bk .inline-row .form-control { width: 100% !important; height: 50px !important; margin: 0 !important; padding: 0 16px !important; border-radius: 12px !important; border: 0 !important; box-shadow: inset 0 0 0 1px var(--line) !important; background-color: #fff; font-size: 1rem !important; color: var(--ink) !important; }
.mm-bk .inline-row select.form-control { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7385' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") !important; background-repeat: no-repeat !important; background-position: right 14px center !important; padding-right: 40px !important; }
.mm-bk .inline-row .form-control:focus { box-shadow: inset 0 0 0 1.5px var(--navy), 0 0 0 4px rgba(23, 55, 115, .1) !important; outline: none; }
.mm-bk .mm-datelabel { font-size: .6875rem !important; font-weight: 600; letter-spacing: .12em !important; margin: 0 0 6px !important; color: var(--muted) !important; }
.mm-bk .date-input { background: var(--shell) !important; }
.mm-bk .date-input:placeholder-shown { color: var(--muted) !important; font-weight: 400; }

/* Preis & Buttons */
.mm-bk .subprice { margin-top: 8px; }
.mm-bk .price-details-btn { font-size: .875rem; color: var(--muted) !important; }
.mm-bk .book-btn.btn-go { min-height: 52px; }
.mm-legend { padding-top: 16px; margin-top: 20px !important; border-top: 1px solid var(--line-soft); }
.mm-bk-wish { display: block; }
.mm-bk-wish strong { color: inherit; }
