:root{
  --radius: 14px;
  --border: #e5e7eb;
  --text: #111827;
  --muted: #6b7280;
  --bg: #ffffff;
  --shadow: 0 10px 30px rgba(0,0,0,.12);

  /* ======= Größe des Datepickers zentral hier steuern ======= */

  --dp-font-size: 18px;
  --dp-cell-height: 64px;
  --dp-cell-width: 64px;
  --dp-day-font: 18px;      /* Zahl im Tag */
  --dp-price-font: 11px;    /* Preiszeile */
  --dp-gap: 14px;           /* Abstand zwischen den beiden Monaten */
  --dp-col-gap: 0px;
    /* daraus abgeleitet */
  --dp-month-width: calc(
    7 * var(--dp-cell-width) + 6 * var(--dp-col-gap)
  );
}

body{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  margin: 0;
  color: var(--text);
  background: #f7f7fb;
}

.page{ max-width: 1100px; margin: 0 auto; padding: 18px; }
.layout{ display: grid; gap: 14px; }

@media (min-width: 900px){
  .layout{ grid-template-columns: 1fr 320px; align-items: start; }
  .summary{ position: sticky; top: 14px; }
}
@media (max-width: 899.98px){
  .summary{ position: sticky; top: 0; z-index: 5; border-radius: 0; }
}
@media (max-width: 899.98px){
  .summary .value{
    font-size: 14px;
    white-space: nowrap;
  }
  .summary .muted{
    display: none; /* große Erklärtexte ausblenden */
  }
}


.card{
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(0,0,0,.02);
  padding: 14px;
}

.row{ display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.title{ font-weight: 800; }
.muted{ color: var(--muted); font-size: 13px; }
.value{ font-weight: 800; }

.btn{
  appearance: none;
  border: 1px solid var(--border);
  background: #111827;
  color: #fff;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
}
.btn.secondary{ background: #fff; color: #111827; }
.btn:focus{ outline: 3px solid rgba(59,130,246,.35); outline-offset: 2px; }

dialog{
  width: min(980px, 96vw);
  border: 0;
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 0;
  background: var(--bg);
}
dialog::backdrop{ background: rgba(0,0,0,.45); }

.modalHead{
  display:flex; align-items:center; justify-content:space-between;
  padding: 14px 14px 10px 14px;
  border-bottom: 1px solid var(--border);
}
.modalTitle{ font-size: 18px; font-weight: 900; margin: 0; }

.iconBtn{
  appearance:none;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
  font-weight: 800;
}
.iconBtn:focus{ outline: 3px solid rgba(59,130,246,.35); outline-offset: 2px; }

.modalBody{ padding: 14px; }

/* ======= 2 Monate ohne riesige Leerräume ======= */
.dpGrid{
  display: grid;
  grid-template-columns: repeat(2, max-content);
  justify-content: center;
  gap: var(--dp-gap);
}

/* ======= Picker global größer machen ======= */
.air-datepicker{
  font-size: var(--dp-font-size);
}

/* Zellen höher machen (wichtig gegen Überlappung) */
.air-datepicker-body--cells.-days-{
  grid-auto-rows: var(--dp-cell-height);
}
.air-datepicker-cell{
  height: auto;              /* übernimmt grid row height */
}

/* Tag/Preis Layout in der Zelle */
.cellWrap{
  height: 100%;
  display: grid;
  grid-template-rows: 1fr auto;
  justify-items: center;
  align-items: center;
  line-height: 1.05;
  padding-top: 6px;
}
.cellDay{
  font-size: var(--dp-day-font);
  font-weight: 800;
}
.cellPrice{
  font-size: var(--dp-price-font);
  color: var(--muted);
  padding-bottom: 6px;
  white-space: nowrap;
}

/* Rechter Monat: Titel soll sichtbar bleiben, nur Buttons ausblenden */
.dpRight .air-datepicker-nav--action{
  visibility: hidden;        /* hält Layout stabil, Titel bleibt zentriert */
  pointer-events: none;
}

/* Tage-Grid: 7 gleich breite Spalten */
.air-datepicker-body--cells.-days-{
  grid-template-columns: repeat(7, var(--dp-cell-width));
  grid-template-rows: repeat(6, var(--dp-cell-height));
  grid-auto-rows: unset; /* wichtig: überschreibt vorherige auto-rows */
}


/* =========================
   FIX: 2 INSTANZEN sauber nebeneinander
   ========================= */

.dpGrid{
  display: grid;
  grid-template-columns: repeat(2, max-content);
  justify-content: center;
  gap: var(--dp-gap);
}

/* ✅ NICHT den gesamten Datepicker auf 2-Monatsbreite zwingen!
   Jede Instanz bekommt genau ihre Monatsbreite */
.air-datepicker,
.air-datepicker--content,
.air-datepicker-body{
  width: var(--dp-month-width);
  max-width: var(--dp-month-width);
  box-sizing: border-box;
}

/* Tage-Grid bleibt fest */
.air-datepicker-body--cells.-days-{
  width: var(--dp-month-width);
}

/* Mobile: 1 Spalte */
@media (max-width: 960px){
  .dpGrid{
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  /* im Mobile darf der Datepicker flexibel werden */
  .air-datepicker,
  .air-datepicker--content,
  .air-datepicker-body{
    width: 100%;
    max-width: 100%;
  }

  .air-datepicker-body--cells.-days-{
    width: 100%;
    grid-template-columns: repeat(7, 1fr);
  }
}

/* ===== Gäste-Auswahl (kompakt, klickbar) ===== */

.guestBox{
  margin-top: 14px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

.guestTop{
  width: 100%;
  text-align: left;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;

  border: 1px solid var(--border);
  background: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
}

.guestTop:focus{
  outline: 3px solid rgba(59,130,246,.35);
  outline-offset: 2px;
}

.guestLabel{ font-weight: 800; font-size: 14px; }
.guestSummary{ color: var(--muted); font-size: 13px; }

.guestChevron{
  font-weight: 900;
  opacity: .7;
  transition: transform .15s ease;
}
.guestTop[aria-expanded="true"] .guestChevron{
  transform: rotate(180deg);
}

/* Controls: standard untereinander */
.guestControls{
  margin-top: 10px;
  display: grid;
  gap: 10px;
}

.guestRow{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  max-width: 250px;
}

.guestTitle{ font-weight: 800; font-size: 14px; }
.guestHint{ font-size: 12px; color: var(--muted); }

/* Stepper */
.stepper{
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Erwachsene noch kompakter */
.stepper--compact{
  gap: 6px;
}

.stepBtn{
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
  font-weight: 900;
  font-size: 18px;
  line-height: 1;
}
.stepper--compact .stepBtn{
  width: 30px;
  height: 30px;
  border-radius: 9px;
  font-size: 17px;
}

.stepBtn:focus{
  outline: 3px solid rgba(59,130,246,.35);
  outline-offset: 2px;
}
.stepBtn:disabled{ opacity: .45; cursor: not-allowed; }

.stepVal{
  min-width: 22px;
  text-align: center;
  font-weight: 900;
  font-size: 14px;
}

.guestFooter{
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
}

/* =====>= 960px: Erwachsene + Kinder nebeneinander, Kleinkinder darunter ===== */
@media (min-width: 960px){
  .guestControls{
    grid-template-columns: 1fr 1fr 1fr;
    align-items: start;
  }
  .guestAdult{ grid-column: 1; }
  .guestChild{ grid-column: 2; }
  .guestInfant{ grid-column: 3; } /* darunter über volle Breite */
}

/* hidden-Attribut immer respektieren */
.guestControls[hidden]{
  display: none !important;
}
.guestControls{
  display: grid;
}

.reservation{
  display: grid;
  gap: 14px;
}

.resTitle{
  font-size: 20px;
  font-weight: 900;
}

.resDates{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.resBox{
  background: #f5f6f8;
  border-radius: 12px;
  padding: 10px;
  text-align: center;
}

.resLabel{
  font-size: 13px;
  font-weight: 700;
  color: #2563eb;
}

.resDayName{
  font-size: 11px;
  letter-spacing: .04em;
  color: #6b7280;
}

.resDayNum{
  font-size: 42px;
  font-weight: 900;
  line-height: 1;
}

.resMonth{
  font-size: 12px;
  color: #6b7280;
}

.resMeta{
  border-top: 1px solid var(--border);
  padding-top: 10px;
  display: grid;
  gap: 8px;
}

.resMetaRow{
  display: flex;
  justify-content: space-between;
}

.resMetaLabel{
  font-size: 13px;
  color: #6b7280;
}

.resMetaValue{
  font-weight: 800;
}

.resNights{
  text-align: center;
  font-weight: 800;
  color: #2563eb;
}

.resEdit{
  background: #34d399;
  border: none;
}

.resTotal{
  display: flex;
  justify-content: space-between;
  font-size: 18px;
}

.resNext{
  background: #93c5fd;
}

.resNext:disabled{
  opacity: .6;
  cursor: not-allowed;
}

.resHint{
  font-size: 12px;
  color: #6b7280;
  text-align: center;
}
.steps{
  display: flex;
  margin-bottom: 18px;
  overflow: hidden;
  border-radius: 10px;
  background: #f1f5f9;
}

.step{
  flex: 1;
  padding: 12px;
  text-align: center;
  font-weight: 800;
  color: #64748b;
  background: transparent;
}

.step.active{
  background: #2563eb;
  color: white;
}

/* ===== Mobile Step-Anzeige ===== */
@media (max-width: 900px){
  .steps{
    display: flex;
    gap: 8px;
    padding: 6px;
  }

  .step{
    flex: 0 0 auto;
    padding: 8px 10px;
    border-radius: 8px;
    font-weight: 800;
    background: #e5e7eb;
    color: #374151;
  }

  /* Text standardmäßig ausblenden */
  .step .stepText{
    display: none;
  }

  /* Aktiver Step: Nummer + Text */
  .step.active{
    background: #2563eb;
    color: white;
  }

  .step.active .stepText{
    display: inline;
    margin-left: 6px;
  }

  /* Gesperrte Steps visuell klar */
  .step[aria-disabled="true"]{
    opacity: .45;
  }
}

.categoryGrid{
  display: grid;
  gap: 20px;
}

.categoryCard{
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: white;
}

.catImage{
  height: 220px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.catBadge{
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(0,0,0,.65);
  color: white;
  padding: 6px 10px;
  border-radius: 8px;
  font-weight: 900;
}

.catBody{
  padding: 14px;
}

.catDesc{
  font-size: 14px;
  color: #374151;
  margin-bottom: 14px;
}

.catFooter{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.catPrice strong{
  font-size: 18px;
}

.catPrice span{
  display: block;
  font-size: 12px;
  color: #6b7280;
}

.btn.green{ background:#22c55e; }
.btn.blue{ background:#3b82f6; }

.categoryCard.unavailable{
  opacity: .55;
}
/* ===== Steps: Panels ein-/ausblenden ===== */
.stepPanel{
  display: none;
}
.stepPanel.active{
  display: block;
}
.steps .step{
  opacity: .5;
}
.steps .step.unlocked{
  opacity: 1;
}
.steps .step[aria-disabled="true"]{
  pointer-events: none;
}

.formGrid{
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.formGrid label{
  display: flex;
  flex-direction: column;
  font-weight: 700;
  font-size: 13px;
}

.formGrid input{
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.paymentBox{
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.payOption{
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.payOption.disabled{
  opacity: .45;
}

.payHint{
  font-size: 12px;
  color: #6b7280;
}

.stepActions{
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

.guestSection{
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  margin: 18px 0;
  background: #fafafa;
}

.guestSectionHead{
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.checkboxRow{
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
}

/* ===== Einheitliches Input-Design (input + select) ===== */
.formGrid input,
.formGrid select{
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-size: 14px;
  background: #fff;
  color: #111827;
}

/* Select-spezifisch: natives Styling entfernen */
.formGrid select{
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 8 10 12 14 8'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px;
}

/* Fokus-Zustand identisch */
.formGrid input:focus,
.formGrid select:focus{
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37,99,235,.15);
}

.formGrid .error input,
.formGrid .error select{
  border-color: #dc2626;
  background: #fef2f2;
}

.formError{
  font-size: 12px;
  color: #dc2626;
  margin-top: 4px;
}

.reqHint{
  float: right;
  font-size: 12px;
  color: #6b7280;
  font-weight: 600;
}
.confirm{
  display: grid;
  gap: 18px;
}

.confirmCard{
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  background: #fff;
}

.confirmCard h3{
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 900;
}

.confirmText{
  line-height: 1.6;
}

.confirmGrid{
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(140px,1fr));
  gap: 14px;
}

.confirmGrid .label{
  font-size: 12px;
  color: var(--muted);
  display: block;
}

.priceCard{
  background: linear-gradient(135deg,#f8fafc,#eef2ff);
  border-color: #c7d2fe;
}

.priceMain{
  text-align: center;
  margin-bottom: 10px;
}

.priceLabel{
  font-size: 13px;
  color: var(--muted);
}

.priceValue{
  display: block;
  font-size: 36px;
  font-weight: 900;
  color: #2563eb;
  margin-top: 4px;
}

.priceHint{
  font-size: 12px;
  color: #6b7280;
  text-align: center;
}
.air-datepicker-cell.is-blocked {
  background: repeating-linear-gradient(
    45deg,
    #f1f5f9,
    #f1f5f9 6px,
    #e5e7eb 6px,
    #e5e7eb 12px
  );
  color: #9ca3af;
  cursor: not-allowed;
}

.cellBlocked{
  font-size: 10px;
  color: #6b7280;
  padding-bottom: 6px;
  white-space: nowrap;
  opacity: .9;
}

/* ===== Übernehmen-Buttons (einheitlich grün) ===== */

.btn-confirm{
  background: #22c55e;        /* identisch zu euren grünen Buttons */
  border: none;
  color: white;
}

.btn-confirm:hover{
  background: #16a34a;
}

.btn-confirm:focus{
  outline: 3px solid rgba(34,197,94,.35);
  outline-offset: 2px;
}

/* obere Version: kleiner & dezenter */
.btn-confirm--small{
  padding: 6px 10px;
  font-size: 13px;
  border-radius: 8px;
}
.modalActions{
  display: flex;
  align-items: center;
  gap: 8px;
}
.guestFooter{
  margin-top: 20px;
  padding: 16px 20px 20px;   /* ⬅ unten bewusst mehr */
  display: flex;
  justify-content: flex-end;
}
/* Tage aus anderen Monaten komplett unsichtbar */
.air-datepicker-cell.is-hidden{
  visibility: hidden;
  pointer-events: none;
}
