/* 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); }
}
