/* Villa Reservation Modal v1 Demo */
/* Stil exakt nach Screenshot 2 (Tisch) und Screenshot 3 (Zimmer) */

.vr-modal-backdrop {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9000;
  padding: 30px;
  font-family: var(--vr-font-body, 'Lora', Georgia, serif);
}
.vr-modal-backdrop.is-open { display: flex; }

.vr-modal-backdrop {
  /* Blur die echte Seite dahinter, Bokeh Effekt durch Backdrop Filter */
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}
.vr-modal-backdrop::before {
  content: '';
  position: absolute;
  inset: 0;
  /* Warme Bokeh Lichter ueberlagern, halbtransparent */
  background:
    radial-gradient(circle at 12% 18%, rgba(184,146,74,.28), transparent 22%),
    radial-gradient(circle at 78% 12%, rgba(212,178,116,.22), transparent 18%),
    radial-gradient(circle at 88% 82%, rgba(110,26,36,.28), transparent 25%),
    radial-gradient(circle at 22% 88%, rgba(74,17,24,.22), transparent 22%);
  pointer-events: none;
}
.vr-modal-backdrop::after {
  content: '';
  position: absolute;
  inset: 0;
  /* Sehr dezenter dunkler Tint damit Modal Fokus behaelt */
  background: rgba(20,12,8,.28);
  pointer-events: none;
}

.vr-modal {
  position: relative;
  z-index: 1;
  background: var(--vr-creme, #F8F2E4);
  width: 100%;
  max-width: 980px;
  display: grid;
  grid-template-columns: 340px 1fr;
  border-radius: 8px;
  overflow: hidden;
  box-shadow:
    0 80px 180px -10px rgba(0,0,0,.95),
    0 50px 100px -20px rgba(0,0,0,.85),
    0 25px 50px -15px rgba(0,0,0,.6),
    0 0 0 0.5px rgba(255,255,255,.5),
    0 0 100px -20px rgba(255,255,255,.08);
  animation: vr-modal-in .35s cubic-bezier(.2,.8,.2,1);
  max-height: calc(100vh - 60px);
  color: var(--vr-anthrazit, #1A1410);
}
@keyframes vr-modal-in {
  from { opacity: 0; transform: translateY(20px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Brand Panel links */
.vr-modal__side {
  position: relative;
  color: var(--vr-creme, #F8F2E4);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.vr-modal--table .vr-modal__side {
  background: linear-gradient(160deg, var(--vr-burgund, #6E1A24) 0%, var(--vr-burgund-tief, #4A0E18) 100%);
}
.vr-modal--table .vr-modal__side::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(184,146,74,.25), transparent 50%),
    radial-gradient(circle at 80% 90%, rgba(184,146,74,.15), transparent 40%);
  pointer-events: none;
}
.vr-modal--room .vr-modal__side {
  background: linear-gradient(160deg, var(--vr-gold-tief, #8E6E2E) 0%, #5a4520 100%);
}
.vr-modal--room .vr-modal__side::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(212,178,116,.30), transparent 50%),
    radial-gradient(circle at 80% 90%, rgba(110,26,36,.20), transparent 40%);
  pointer-events: none;
}
.vr-modal__side > * { position: relative; z-index: 1; }

.vr-modal__logo {
  /* Old top logo position, deprecated */
  display: none;
}

.vr-modal__crest {
  margin: 8px 0 26px;
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.vr-modal__crest::before,
.vr-modal__crest::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 38px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.35));
}
.vr-modal__crest::before { left: 14%; }
.vr-modal__crest::after  { right: 14%; transform: scaleX(-1); }
.vr-modal__crest img {
  width: 130px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,.45));
  opacity: .96;
}

.vr-modal__eyebrow {
  font-family: var(--vr-font-display, 'Fraunces', serif);
  font-style: italic;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--vr-gold-hell, #D4B070);
  margin-bottom: 10px;
}
.vr-modal--room .vr-modal__eyebrow { color: #f0e0bc; }

.vr-pill-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--vr-creme, #F8F2E4);
  margin-bottom: 18px;
  align-self: flex-start;
}
.vr-pill-live::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7fd99a;
  box-shadow: 0 0 0 0 rgba(127,217,154,.7);
  animation: vr-pulse 2s infinite;
}
@keyframes vr-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(127,217,154,.7); }
  70%  { box-shadow: 0 0 0 8px rgba(127,217,154,0); }
  100% { box-shadow: 0 0 0 0 rgba(127,217,154,0); }
}

.vr-modal__title {
  font-family: var(--vr-font-display, 'Fraunces', serif);
  font-size: 34px;
  line-height: 1.05;
  color: var(--vr-creme, #F8F2E4);
  font-weight: 500;
  margin: 0 0 14px;
  letter-spacing: -.01em;
}
.vr-modal__lead {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(247,241,229,.78);
  margin: 0 0 24px;
  max-width: 260px;
}

.vr-phone {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.12);
}
.vr-phone__label {
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(247,241,229,.55);
  margin-bottom: 6px;
}
.vr-phone__num {
  font-family: var(--vr-font-display, 'Fraunces', serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--vr-creme, #F8F2E4);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.vr-phone__num:hover { color: var(--vr-gold-hell, #D4B070); }
.vr-phone__sub {
  font-size: 12px;
  color: rgba(247,241,229,.55);
  font-style: italic;
  margin-top: 4px;
}

/* Form Panel rechts */
.vr-modal__content {
  padding: 32px 36px;
  position: relative;
  overflow-y: auto;
  max-height: calc(100vh - 60px);
  scrollbar-width: thin;
  scrollbar-color: var(--vr-linie, #C9B998) transparent;
}
.vr-modal__content::-webkit-scrollbar { width: 6px; }
.vr-modal__content::-webkit-scrollbar-thumb {
  background: var(--vr-linie, #C9B998);
  border-radius: 3px;
}

.vr-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--vr-creme-tief, #EFE6D2);
  color: var(--vr-anthrazit, #1A1410);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  border: 0;
  cursor: pointer;
  transition: all .15s;
  font-family: inherit;
  line-height: 1;
}
.vr-close:hover {
  background: var(--vr-linie, #C9B998);
  color: var(--vr-burgund, #6E1A24);
  transform: rotate(90deg);
}

.vr-form { display: block; }
.vr-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
}
.vr-form__full { grid-column: 1 / -1; }

.vr-field { display: flex; flex-direction: column; }
.vr-field__label {
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--vr-text-muted, #6B5E50);
  margin-bottom: 6px;
  font-weight: 600;
}
.vr-field input,
.vr-field select,
.vr-field textarea {
  padding: 9px 12px;
  border: 1px solid var(--vr-linie, #C9B998);
  background: #fff;
  font-size: 14px;
  color: var(--vr-anthrazit, #1A1410);
  border-radius: 3px;
  font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.vr-field input:focus,
.vr-field select:focus,
.vr-field textarea:focus {
  outline: none;
  border-color: var(--vr-gold, #B8924A);
  box-shadow: 0 0 0 3px rgba(184,146,74,.15);
}
.vr-field textarea {
  resize: none;
  line-height: 1.5;
}

.vr-slots {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
}
.vr-slot {
  padding: 9px 4px;
  border: 1px solid var(--vr-linie, #C9B998);
  background: #fff;
  font-size: 13px;
  border-radius: 3px;
  text-align: center;
  cursor: pointer;
  transition: all .15s;
  color: var(--vr-anthrazit, #1A1410);
  font-variant-numeric: tabular-nums;
  font-family: inherit;
}
.vr-slot:hover:not(:disabled):not(.is-selected) {
  border-color: var(--vr-gold, #B8924A);
  background: var(--vr-creme-tief, #EFE6D2);
}
.vr-slot.is-selected {
  background: var(--vr-burgund, #6E1A24);
  color: var(--vr-creme, #F8F2E4);
  border-color: var(--vr-burgund, #6E1A24);
  box-shadow: 0 4px 12px -4px rgba(110,26,36,.4);
}
.vr-slot:disabled {
  background: #f0e8d6;
  color: #bbab94;
  cursor: not-allowed;
  text-decoration: line-through;
}

.vr-apts {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}
.vr-apt {
  padding: 10px 8px;
  border: 1px solid var(--vr-linie, #C9B998);
  background: #fff;
  border-radius: 3px;
  cursor: pointer;
  text-align: center;
  transition: all .15s;
  color: var(--vr-anthrazit, #1A1410);
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 72px;
  justify-content: center;
  font-family: inherit;
}
.vr-apt:hover:not(:disabled):not(.is-selected) {
  border-color: var(--vr-gold, #B8924A);
  background: var(--vr-creme-tief, #EFE6D2);
  transform: translateY(-1px);
}
.vr-apt.is-selected {
  background: var(--vr-gold-tief, #8E6E2E);
  color: var(--vr-creme, #F8F2E4);
  border-color: var(--vr-gold-tief, #8E6E2E);
  box-shadow: 0 4px 12px -4px rgba(138,106,47,.4);
}
.vr-apt:disabled {
  background: #f0e8d6;
  color: #bbab94;
  cursor: not-allowed;
}
.vr-apt__name {
  font-family: var(--vr-font-display, 'Fraunces', serif);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.15;
}
.vr-apt__meta {
  font-size: 10px;
  opacity: .75;
  letter-spacing: .02em;
}

.vr-alert {
  padding: 9px 12px;
  background: #fef3eb;
  border-left: 3px solid var(--vr-gold, #B8924A);
  font-size: 12px;
  color: var(--vr-anthrazit, #1A1410);
  border-radius: 2px;
  line-height: 1.4;
}
.vr-alert--error {
  background: #fdebeb;
  border-color: var(--vr-error, #A02830);
  color: var(--vr-error, #A02830);
}

.vr-counter {
  font-size: 10px;
  color: var(--vr-text-muted, #6B5E50);
  text-align: right;
  margin-top: 3px;
  font-variant-numeric: tabular-nums;
  letter-spacing: .05em;
}
.vr-counter.is-warn   { color: var(--vr-gold-tief, #8E6E2E); }
.vr-counter.is-danger { color: var(--vr-error, #A02830); }

.vr-submit-row {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.vr-submit {
  flex: 1;
  padding: 14px 24px;
  background: var(--vr-burgund, #6E1A24);
  color: var(--vr-creme, #F8F2E4);
  font-size: 14px;
  letter-spacing: .08em;
  font-weight: 500;
  text-transform: uppercase;
  border-radius: 2px;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  transition: all .25s ease;
  box-shadow: 0 12px 30px -10px rgba(110,26,36,.4);
}
.vr-submit:hover {
  background: var(--vr-burgund-tief, #4A0E18);
  transform: translateY(-1px);
}
.vr-submit:disabled {
  opacity: .6;
  cursor: not-allowed;
  transform: none;
}
.vr-modal--room .vr-submit {
  background: var(--vr-gold-tief, #8E6E2E);
  box-shadow: 0 12px 30px -10px rgba(138,106,47,.4);
}
.vr-modal--room .vr-submit:hover { background: #6e5424; }

/* Erfolgs Zustand */
.vr-success {
  text-align: center;
  padding: 40px 20px;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}
.vr-success.is-visible { display: flex; }
.vr-success__check {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--vr-success, #4A6B3A);
  color: #fff;
  font-size: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  animation: vr-check-pop .5s cubic-bezier(.2,.8,.2,1);
}
@keyframes vr-check-pop {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.vr-success__title {
  font-family: var(--vr-font-display, 'Fraunces', serif);
  color: var(--vr-burgund, #6E1A24);
  font-size: 26px;
  margin: 0 0 8px;
  font-weight: 500;
}
.vr-success__text {
  color: var(--vr-text-muted, #6B5E50);
  max-width: 320px;
  margin: 0 0 22px;
  font-size: 14px;
  line-height: 1.5;
}
.vr-success__close {
  background: transparent;
  color: var(--vr-burgund, #6E1A24);
  padding: 12px 24px;
  font-size: 14px;
  letter-spacing: .08em;
  font-weight: 500;
  text-transform: uppercase;
  border-radius: 2px;
  border: 1px solid var(--vr-burgund, #6E1A24);
  cursor: pointer;
  font-family: inherit;
  transition: all .25s ease;
}
.vr-success__close:hover {
  background: var(--vr-burgund, #6E1A24);
  color: var(--vr-creme, #F8F2E4);
}

/* Mobile */
@media (max-width: 860px) {
  .vr-modal {
    grid-template-columns: 1fr;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
  }
  .vr-modal__side { padding: 24px; }
  .vr-modal__title { font-size: 26px; }
  .vr-modal__lead { margin-bottom: 16px; }
  .vr-phone { margin-top: 18px; }
  .vr-modal__content {
    padding: 24px;
    max-height: none;
    overflow-y: visible;
  }
  .vr-form__grid { grid-template-columns: 1fr; }
  .vr-slots      { grid-template-columns: repeat(4, 1fr); }
  .vr-apts       { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .vr-modal-backdrop { padding: 10px; }
  .vr-slots { grid-template-columns: repeat(3, 1fr); }
}


/* Success Details Box v1 - Professionelle Reservierungs Uebersicht */
.vr-success__details {
  background: rgba(184, 146, 74, 0.08);
  border: 1px solid rgba(184, 146, 74, 0.3);
  border-radius: 8px;
  padding: 18px 24px;
  margin: 8px auto 16px;
  max-width: 420px;
  text-align: left;
}
.vr-success__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(184, 146, 74, 0.18);
  gap: 16px;
}
.vr-success__row:last-child {
  border-bottom: none;
}
.vr-success__label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.55);
  font-weight: 500;
  flex-shrink: 0;
}
.vr-success__value {
  font-size: 17px;
  font-weight: 600;
  color: #5d1a2e;
  letter-spacing: 0.01em;
  text-align: right;
}
.vr-success__note {
  font-size: 14px;
  color: rgba(0,0,0,0.65);
  margin: 12px 0 0;
  font-style: italic;
  text-align: center;
}


/* v8.15 Mobile Modal Fix - Scroll funktioniert auf Smartphone */
@media (max-width: 768px) {
  .vr-modal-backdrop {
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    align-items: flex-start !important;
    padding: 10px !important;
  }
  .vr-modal {
    max-height: none !important;
    flex-direction: column !important;
    width: 100% !important;
    margin: 0 0 20px 0 !important;
  }
  .vr-modal__side {
    width: 100% !important;
    padding: 20px !important;
  }
  .vr-modal__content {
    width: 100% !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 20px !important;
  }
  .vr-modal__crest {
    display: none !important;
  }
  .vr-form__grid {
    grid-template-columns: 1fr !important;
  }
  .vr-success__details {
    max-width: 100% !important;
  }
  .vr-modal__lead {
    display: none !important;
  }
  .vr-phone {
    display: none !important;
  }
}

/* v8.15 DayBlock Polish */
.vr-dayblock {
  text-align: center;
  padding: 24px 20px;
}
.vr-dayblock__icon {
  font-size: 36px;
  margin-bottom: 12px;
}
.vr-dayblock__title {
  font-size: 18px;
  font-weight: 600;
  color: #5d1a2e;
  margin-bottom: 12px;
  letter-spacing: 0.01em;
}
.vr-dayblock__reason {
  font-size: 14px;
  color: rgba(0,0,0,0.7);
  line-height: 1.5;
  margin-bottom: 18px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}
.vr-dayblock__phone {
  display: inline-block;
  padding: 12px 24px;
  background: #5d1a2e;
  color: #fff !important;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background 0.2s, transform 0.1s;
  font-size: 15px;
}
.vr-dayblock__phone:hover {
  background: #4a1424;
  transform: translateY(-1px);
}


/* v8.17 Mobile Robust Override - hoechste Spezifitaet via !important und spaete Position im File */
@media (max-width: 768px) {
  /* Backdrop wird scrollbar, nimmt komplette Viewport ein */
  .vr-modal-backdrop {
    position: fixed !important;
    inset: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    align-items: flex-start !important;
    padding: 0 !important;
  }
  /* Modal stapelt vertikal, volle Breite, ohne Border Radius */
  .vr-modal {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    max-height: none !important;
    margin: 0 !important;
    border-radius: 0 !important;
    min-height: 100vh !important;
    position: relative !important;
  }
  /* Sidebar kompakt oben, nur Title und Live Badge */
  .vr-modal__side {
    width: 100% !important;
    padding: 18px 16px !important;
    border-radius: 0 !important;
    text-align: center !important;
  }
  /* Auf Mobile alle dekorativen Sidebar Elemente ausblenden */
  .vr-modal__crest,
  .vr-modal__lead,
  .vr-phone {
    display: none !important;
  }
  .vr-modal__title {
    font-size: 22px !important;
    margin: 8px 0 0 0 !important;
  }
  .vr-modal__eyebrow {
    font-size: 11px !important;
  }
  /* Form Content volle Breite, viel Padding fuer Komfort */
  .vr-modal__content {
    width: 100% !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 20px 16px 24px 16px !important;
    border-radius: 0 !important;
    position: relative !important;
  }
  /* Felder 1 Spalte, klarer Abstand */
  .vr-form__grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
  }
  .vr-form__grid > .vr-field {
    width: 100% !important;
  }
  /* Inputs Selects einheitlich, iOS native Styling deaktivieren */
  .vr-field input,
  .vr-field select {
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
    line-height: 1.2 !important;
    font-size: 16px !important;
    box-sizing: border-box !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    padding: 0 12px !important;
    width: 100% !important;
    border-radius: 6px !important;
  }
  /* Date Input speziell ausrichten */
  .vr-field input[type="date"] {
    text-align: left !important;
    display: flex !important;
    align-items: center !important;
  }
  .vr-field textarea {
    width: 100% !important;
    font-size: 16px !important;
    box-sizing: border-box !important;
    min-height: 80px !important;
    padding: 10px 12px !important;
    border-radius: 6px !important;
  }
  /* Submit Button STICKY am Bottom - immer erreichbar */
  .vr-submit-row {
    position: sticky !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: #f7efe2 !important;
    padding: 14px 16px 14px 16px !important;
    margin: 20px -16px 0 -16px !important;
    border-top: 1px solid rgba(184, 146, 74, 0.25) !important;
    z-index: 10 !important;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.05) !important;
  }
  .vr-submit {
    width: 100% !important;
    height: 52px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
  }
  /* Close Button groesseres Touch Target */
  .vr-close {
    width: 44px !important;
    height: 44px !important;
    font-size: 28px !important;
    top: 8px !important;
    right: 8px !important;
  }
  /* Slot Buttons konsistent */
  .vr-slots {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
  }
  .vr-slot {
    height: 44px !important;
    font-size: 14.5px !important;
    -webkit-appearance: none !important;
    appearance: none !important;
  }
  /* Success Box auf Mobile */
  .vr-success__details {
    max-width: 100% !important;
    padding: 14px 16px !important;
  }
  .vr-success__row {
    padding: 8px 0 !important;
  }
  .vr-success__value {
    font-size: 15px !important;
  }
  /* DayBlock kompakter */
  .vr-dayblock {
    padding: 24px 16px !important;
  }
  .vr-dayblock__reason {
    font-size: 13px !important;
  }
  /* Form bleibt visible, aber Personen Auswahl Pfeil aktiv halten */
  .vr-field select {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%23B8924A' d='M6 8L0 0h12z'/></svg>") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    padding-right: 36px !important;
  }
}

/* === FIX v821: Zimmer Modal Apartments Layout === */
/* VIP Suite spannt Reihe 1, vier weitere Apartments fuellen Reihe 2 */
.vr-apts {
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 8px !important;
}
.vr-apts > .vr-apt:first-child {
  grid-column: 1 / -1;
}
.vr-apt {
  min-height: 80px;
}
@media (max-width: 720px) {
  .vr-apts {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }
  .vr-apts > .vr-apt:first-child {
    grid-column: 1 / -1;
  }
}
@media (max-width: 480px) {
  .vr-apts {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  .vr-apt {
    min-height: 64px;
    padding: 12px 10px;
  }
}
/* === /FIX v821 === */

/* === FIX v822: Apartments Overflow plus Visual Polish === */
/* minmax(0,1fr) verhindert dass langes Wort wie Familienzimmer den Grid sprengt */
.vr-apts {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 10px !important;
}
.vr-apts > .vr-apt {
  min-width: 0 !important;
  min-height: 64px !important;
  padding: 12px 8px !important;
  overflow: hidden;
}
.vr-apts > .vr-apt .vr-apt__name {
  font-size: 13px;
  line-height: 1.2;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}
.vr-apts > .vr-apt .vr-apt__meta {
  font-size: 10px;
}
@media (max-width: 720px) {
  .vr-apts {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 480px) {
  .vr-apts {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .vr-apts > .vr-apt {
    padding: 14px 12px !important;
    min-height: 56px !important;
  }
}
/* === /FIX v822 === */

/* === FIX v823: Apartments Typography Refinement === */
/* Kompakte Schrift auf Desktop, eine Zeile pro Name, Ellipsis als Sicherung */
.vr-apts > .vr-apt {
  padding: 10px 6px !important;
  min-height: 60px !important;
}
.vr-apts > .vr-apt .vr-apt__name {
  font-size: 11.5px !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
  hyphens: none !important;
}
.vr-apts > .vr-apt .vr-apt__meta {
  font-size: 9.5px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
@media (max-width: 720px) {
  .vr-apts > .vr-apt {
    min-height: 64px !important;
    padding: 12px 8px !important;
  }
  .vr-apts > .vr-apt .vr-apt__name {
    font-size: 13px !important;
  }
  .vr-apts > .vr-apt .vr-apt__meta {
    font-size: 11px !important;
  }
}
@media (max-width: 480px) {
  .vr-apts > .vr-apt {
    min-height: 56px !important;
    padding: 14px 12px !important;
  }
  .vr-apts > .vr-apt .vr-apt__name {
    font-size: 14.5px !important;
  }
  .vr-apts > .vr-apt .vr-apt__meta {
    font-size: 12px !important;
  }
}
/* === /FIX v823 === */

/* === FIX v824: Korrekte Selektoren plus Success Detail Box === */
/* JS rendert: <button class="vr-apt"><strong>Name</strong><span>Meta</span></button> */
#vr-mr-apts.vr-apts > .vr-apt {
  padding: 10px 6px !important;
  min-height: 60px !important;
}
#vr-mr-apts.vr-apts > .vr-apt > strong {
  display: block;
  font-family: var(--vr-font-display, 'Fraunces', serif);
  font-size: 11.5px !important;
  line-height: 1.2 !important;
  font-weight: 500 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 100%;
}
#vr-mr-apts.vr-apts > .vr-apt > span {
  display: block;
  font-size: 9.5px !important;
  opacity: 0.75;
  margin-top: 2px;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 100%;
}
@media (max-width: 720px) {
  #vr-mr-apts.vr-apts > .vr-apt > strong { font-size: 13px !important; }
  #vr-mr-apts.vr-apts > .vr-apt > span { font-size: 11px !important; }
}
@media (max-width: 480px) {
  #vr-mr-apts.vr-apts > .vr-apt {
    padding: 14px 12px !important;
    min-height: 56px !important;
  }
  #vr-mr-apts.vr-apts > .vr-apt > strong { font-size: 14px !important; }
  #vr-mr-apts.vr-apts > .vr-apt > span { font-size: 12px !important; }
}
.vr-success__details {
  margin: 20px 0;
  padding: 16px 20px;
  background: rgba(184, 146, 74, 0.08);
  border: 1px solid rgba(184, 146, 74, 0.3);
  border-radius: 8px;
  text-align: left;
}
.vr-success__details-title {
  font-family: var(--vr-font-display, 'Fraunces', serif);
  font-size: 13px;
  font-weight: 500;
  margin: 0 0 12px 0;
  color: var(--vr-anthrazit, #1A1410);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.vr-success__list {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 6px 16px;
  margin: 0;
  font-size: 13px;
}
.vr-success__list dt {
  font-weight: 500;
  color: var(--vr-anthrazit, #1A1410);
  opacity: 0.75;
}
.vr-success__list dd {
  margin: 0;
  color: var(--vr-anthrazit, #1A1410);
  word-break: break-word;
}
@media (max-width: 480px) {
  .vr-success__details { padding: 14px 16px; }
  .vr-success__list {
    grid-template-columns: 1fr;
    gap: 2px;
    font-size: 14px;
  }
  .vr-success__list dt {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 8px;
    opacity: 0.6;
  }
  .vr-success__list dt:first-child { margin-top: 0; }
}
/* === /FIX v824 === */

/* === FIX v825: Schrift +1px plus Klick Sicherheit === */
#vr-mr-apts.vr-apts > .vr-apt {
  pointer-events: auto !important;
  cursor: pointer !important;
  position: relative;
  z-index: 1;
}
/* pointer-events none auf Kindern, damit Click immer zum Button geht */
#vr-mr-apts.vr-apts > .vr-apt > strong {
  font-size: 12.5px !important;
  pointer-events: none !important;
}
#vr-mr-apts.vr-apts > .vr-apt > span {
  font-size: 10.5px !important;
  pointer-events: none !important;
}
@media (max-width: 720px) {
  #vr-mr-apts.vr-apts > .vr-apt > strong { font-size: 14px !important; }
  #vr-mr-apts.vr-apts > .vr-apt > span { font-size: 11.5px !important; }
}
@media (max-width: 480px) {
  #vr-mr-apts.vr-apts > .vr-apt > strong { font-size: 15px !important; }
  #vr-mr-apts.vr-apts > .vr-apt > span { font-size: 12.5px !important; }
}
/* === /FIX v825 === */

/* === FIX v826: Mobile Modal Scrolling plus VIP Grid Column Fix === */
@media (max-width: 720px) {
  .vr-modal {
    max-height: 92vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .vr-modal__content {
    padding-bottom: 32px;
  }
}
@media (max-width: 480px) {
  .vr-modal {
    max-height: 95vh;
  }
  /* VIP Suite grid-column 1/-1 verhaelt sich auf 1-Spalten Grid komisch.
     auf Mobile setzen wir auto damit VIP wie alle anderen Karten ist */
  #vr-mr-apts.vr-apts > .vr-apt:first-child {
    grid-column: auto !important;
  }
  /* Touch action explizit erlauben fuer Karten */
  #vr-mr-apts.vr-apts > .vr-apt {
    touch-action: manipulation;
  }
}
/* === /FIX v826 === */

/* === FIX v827: Tisch Style Detail Box plus is-taken Styling === */
.vr-success__details {
  margin: 20px 0 24px 0 !important;
  padding: 0 !important;
  background: rgba(184, 146, 74, 0.06) !important;
  border: 1px solid rgba(184, 146, 74, 0.25) !important;
  border-radius: 8px !important;
  text-align: left !important;
  overflow: hidden !important;
}
.vr-success__details-title {
  display: none !important;
}
.vr-success__list {
  display: grid !important;
  grid-template-columns: max-content 1fr !important;
  gap: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}
.vr-success__list dt {
  padding: 14px 20px !important;
  margin: 0 !important;
  font-weight: 500 !important;
  color: var(--vr-anthrazit, #1A1410) !important;
  opacity: 0.6 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  font-size: 11px !important;
  border-bottom: 1px solid rgba(184, 146, 74, 0.18) !important;
  display: flex !important;
  align-items: center !important;
}
.vr-success__list dd {
  padding: 14px 20px !important;
  margin: 0 !important;
  color: var(--vr-anthrazit, #1A1410) !important;
  font-family: var(--vr-font-display, 'Fraunces', serif) !important;
  font-size: 14.5px !important;
  text-align: right !important;
  font-weight: 500 !important;
  border-bottom: 1px solid rgba(184, 146, 74, 0.18) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
}
.vr-success__list dt:nth-last-of-type(1),
.vr-success__list dd:nth-last-of-type(1) {
  border-bottom: none !important;
}
/* is-taken Apartment deutlich ausgegraut */
#vr-mr-apts .vr-apt.is-taken {
  background: #ede5d3 !important;
  color: #a8987a !important;
  cursor: not-allowed !important;
  border-color: #d4c5a3 !important;
}
#vr-mr-apts .vr-apt.is-taken > strong,
#vr-mr-apts .vr-apt.is-taken > span {
  color: #a8987a !important;
  text-decoration: line-through;
}
#vr-mr-apts .vr-apt.is-taken:hover {
  background: #ede5d3 !important;
  transform: none !important;
  box-shadow: none !important;
}
@media (max-width: 480px) {
  .vr-success__list dt {
    padding: 12px 16px !important;
    font-size: 10px !important;
  }
  .vr-success__list dd {
    padding: 12px 16px !important;
    font-size: 13px !important;
  }
}
/* === /FIX v827 === */


/* ===== v829 Daten korrigieren Action Wrapper ===== */
.vr-success__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 16px;
}
.vr-success__edit {
  background: transparent;
  color: #6b1212;
  border: 1.5px solid #6b1212;
  padding: 10px 28px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  font-family: inherit;
  border-radius: 0;
  min-width: 180px;
}
.vr-success__edit:hover, .vr-success__edit:focus-visible {
  background: #6b1212;
  color: #fff;
  outline: none;
}
@media (max-width: 480px) {
  .vr-success__actions { flex-direction: column-reverse; gap: 8px; }
  .vr-success__actions > button { width: 100%; }
}
/* ===== Ende v829 ===== */
/* ===== Ende v829 Tooltip ===== */

/* ===== v829-tooltip-custom: Villa-Style Custom Tooltip ===== */
.vr-tooltip {
  position: fixed;
  z-index: 99999;
  pointer-events: none;
  max-width: 320px;
  padding: 11px 18px 12px 18px;
  background: linear-gradient(135deg, #4a1118 0%, #6b1212 100%);
  color: #f5e5b8;
  border: 1px solid rgba(184, 146, 74, 0.55);
  border-radius: 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  font-style: italic;
  line-height: 1.45;
  letter-spacing: 0.2px;
  text-align: center;
  white-space: pre-line;
  box-shadow: 0 10px 28px rgba(74, 17, 24, 0.42), 0 3px 8px rgba(0,0,0,0.22);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  left: -9999px;
  top: -9999px;
}
.vr-tooltip--visible {
  opacity: 1;
  transform: translateY(0);
}
.vr-tooltip::before {
  content: "";
  position: absolute;
  left: var(--vr-arrow-left, 50%);
  margin-left: -6px;
  bottom: -6px;
  width: 11px;
  height: 11px;
  background: linear-gradient(135deg, #4a1118 0%, #6b1212 100%);
  border-right: 1px solid rgba(184, 146, 74, 0.55);
  border-bottom: 1px solid rgba(184, 146, 74, 0.55);
  transform: rotate(45deg);
}
@media (max-width: 480px) {
  .vr-tooltip {
    max-width: 260px;
    font-size: 13px;
    padding: 9px 14px 10px 14px;
  }
}
/* ===== end Villa Custom Tooltip ===== */

/* ===== v829-tooltip-mobile: Centered Variante fuer Touch Devices ===== */
.vr-tooltip--centered {
  position: fixed !important;
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%) !important;
  transition: opacity 0.22s ease !important;
  max-width: 88vw !important;
  font-size: 14.5px !important;
  padding: 14px 22px 15px 22px !important;
  line-height: 1.5 !important;
}
.vr-tooltip--centered::before {
  display: none !important;
}
/* ===== end Centered Variante ===== */

/* v829-fix: Luft und Layout in der Erfolgs Uebersicht */
.vr-success__details { padding: 0 26px !important; }
.vr-success__row { padding: 14px 0 !important; align-items: center !important; }
.vr-success__value { overflow-wrap: anywhere !important; word-break: break-word !important; }
.vr-success__note { font-size: 15px !important; font-style: normal !important; margin: 18px 0 18px !important; color: rgba(0,0,0,0.72) !important; text-align: center !important; line-height: 1.55 !important; }
.vr-success__actions { display: flex !important; gap: 14px !important; justify-content: center !important; flex-wrap: wrap !important; margin-top: 8px !important; }
.vr-success__actions .vr-success__close { display: inline-block !important; width: auto !important; margin: 0 !important; }
@media (max-width: 640px) {
  .vr-success__details { padding: 14px 18px !important; }
}

/* v829: Kontakt Optionen bei belegtem Tag */
.vr-dayblock__opts { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.vr-dayblock__opt { display: inline-flex; align-items: center; justify-content: center; padding: 12px 22px; border-radius: 8px; background: #5d1a2e; color: #fff; text-decoration: none; font-size: 15px; font-weight: 500; border: 1px solid #5d1a2e; transition: background .2s, color .2s; }
.vr-dayblock__opt:link, .vr-dayblock__opt:visited { color: #fff; }
.vr-dayblock__opt:hover, .vr-dayblock__opt:focus { background: #f3ebdd; color: #1a1410; }
@media (max-width: 640px) { .vr-dayblock__opts { flex-direction: column; } }
