/* =====================================================================
   Dili Appartement - neue Bausteine
   Anfrage in drei Schritten, Belegungskalender, Karte
   ===================================================================== */

/* ================================================================== *
   Anfrage in drei Schritten
 * ================================================================== */
.wizard {
  max-width: 940px;
  margin: 36px auto 0;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 18px 50px -28px rgba(34, 59, 50, 0.45);
  overflow: hidden;
}

/* ---- Fortschritt ---- */
.wizard__steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--palette-1);
}

.wizard__step {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 20px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 15px;
  line-height: 1.25;
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.wizard__step + .wizard__step { box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.12); }

.wizard__step-no {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease-spring);
}

.wizard__step.is-current { color: #ffffff; background: rgba(255, 255, 255, 0.06); }
.wizard__step.is-current .wizard__step-no {
  background: var(--palette-10);
  border-color: var(--palette-10);
  color: var(--palette-1);
  transform: scale(1.08);
}
.wizard__step.is-done { color: var(--palette-7); }
.wizard__step.is-done .wizard__step-no {
  background: var(--palette-7);
  border-color: var(--palette-7);
  color: var(--palette-1);
}

/* ---- Panels ---- */
.wizard__body { padding: 32px; }

.wizard__panel[hidden] { display: none; }
.wizard__panel { animation: wiz-in var(--dur-slow) var(--ease-out) both; }
@keyframes wiz-in {
  from { opacity: 0; transform: translateX(12px); }
  to   { opacity: 1; transform: none; }
}
.wizard__panel.is-back { animation-name: wiz-in-back; }
@keyframes wiz-in-back {
  from { opacity: 0; transform: translateX(-12px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .wizard__panel { animation: none; }
}

.wizard__title {
  margin-bottom: 6px;
  font-family: var(--font-heading);
  font-size: 34px;
  line-height: 1.1;
}
.wizard__hint {
  margin-bottom: 24px;
  color: var(--palette-5);
  font-size: 16px;
}

/* ---- Fusszeile mit Navigation ---- */
.wizard__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 32px 32px;
}
.wizard__foot .btn { min-width: 168px; }

.wizard__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: none;
  color: var(--palette-2);
  font-family: var(--font-body);
  font-size: 16px;
  cursor: pointer;
  transition: color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.wizard__back:hover { color: var(--palette-1); transform: translateX(-3px); }
.wizard__back[hidden] { display: none; }

/* Zusammenfassung der bisherigen Auswahl */
.wizard__summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-bottom: 24px;
}
.wizard__chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--palette-8);
  color: var(--palette-1);
  font-size: 15px;
  line-height: 1.2;
}
.wizard__chip svg { width: 16px; height: 16px; fill: currentColor; }

/* ================================================================== *
   Belegungskalender
 * ================================================================== */
.cal { --cell: 44px; }

.cal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.cal__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid #d7ded8;
  border-radius: 50%;
  background: #ffffff;
  color: var(--palette-1);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), transform var(--dur) var(--ease-spring), border-color var(--dur) var(--ease);
}
.cal__nav:hover:not(:disabled) { background: var(--palette-8); border-color: var(--palette-2); transform: scale(1.06); }
.cal__nav:disabled { opacity: 0.35; cursor: not-allowed; }

.cal__months {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}
.cal__month-name {
  margin-bottom: 10px;
  font-size: 17px;
  font-weight: 700;
  text-align: center;
}
.cal__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 2px;
}
.cal__dow {
  padding: 6px 0;
  color: var(--palette-5);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
}

.cal__day {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--cell);
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--palette-1);
  font-family: var(--font-body);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease-spring);
}
.cal__day:hover:not(:disabled) { background: var(--palette-8); transform: scale(1.06); }
.cal__day--empty { visibility: hidden; }

/* Belegte und vergangene Tage: durchgestrichen, nicht nur ausgegraut,
   damit die Bedeutung nicht allein an der Farbe haengt. */
.cal__day:disabled {
  color: #a7b0a8;
  cursor: not-allowed;
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}
.cal__day--booked:disabled { background: repeating-linear-gradient(135deg, #f0f2f0 0 5px, #e2e7e2 5px 10px); }

.cal__day--start,
.cal__day--end {
  background: var(--palette-1);
  color: #ffffff;
  font-weight: 700;
}
.cal__day--start { border-radius: 8px 2px 2px 8px; }
.cal__day--end   { border-radius: 2px 8px 8px 2px; }
.cal__day--start.cal__day--end { border-radius: 8px; }
.cal__day--in    { background: var(--palette-7); border-radius: 2px; }
.cal__day--hover { background: #dbe6de; border-radius: 2px; }

.cal__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 18px;
  color: var(--palette-5);
  font-size: 14px;
}
.cal__legend span { display: inline-flex; align-items: center; gap: 8px; }
.cal__legend i {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  flex: 0 0 auto;
}
.cal__legend .is-free   { background: #ffffff; box-shadow: inset 0 0 0 1px #cfd6d0; }
.cal__legend .is-booked { background: repeating-linear-gradient(135deg, #f0f2f0 0 5px, #e2e7e2 5px 10px); box-shadow: inset 0 0 0 1px #cfd6d0; }
.cal__legend .is-chosen { background: var(--palette-1); }

.cal__status {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 8px;
  background: var(--palette-8);
  font-size: 15px;
  line-height: 1.5;
}
.cal__status--error { background: #fbe3df; color: #b82105; }
.cal__status--ok { background: #dff0e4; color: #13612e; }
.cal__status[hidden] { display: none; }

/* ---- Zaehler fuer Personen ---- */
.counter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid #e3e8e4;
}
.counter:last-of-type { border-bottom: 0; }
.counter__label { font-size: 17px; font-weight: 500; }
.counter__note { display: block; color: var(--palette-5); font-size: 14px; font-weight: 400; }
.counter__controls { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.counter__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid #cfd6d0;
  border-radius: 50%;
  background: #ffffff;
  color: var(--palette-1);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease-spring);
}
.counter__btn:hover:not(:disabled) { background: var(--palette-8); border-color: var(--palette-2); transform: scale(1.08); }
.counter__btn:disabled { opacity: 0.35; cursor: not-allowed; }
.counter__value {
  min-width: 40px;
  font-size: 18px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .cal__day, .cal__nav, .counter__btn, .wizard__back, .wizard__step-no { transition: none; }
  .cal__day:hover, .cal__nav:hover, .counter__btn:hover, .wizard__back:hover { transform: none; }
}

@media all and (max-width: 900px) {
  .cal__months { grid-template-columns: minmax(0, 1fr); gap: 22px; }
}

@media all and (max-width: 767px) {
  .wizard { margin-top: 24px; border-radius: 14px; }
  .wizard__step { flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px 10px; font-size: 12px; }
  .wizard__body { padding: 22px 18px; }
  .wizard__title { font-size: 26px; }
  .wizard__hint { font-size: 15px; margin-bottom: 18px; }
  .wizard__foot { flex-direction: column-reverse; align-items: stretch; gap: 12px; padding: 16px 18px 24px; }
  .wizard__foot .btn { width: 100%; min-width: 0; }
  .wizard__back { justify-content: center; }
  .cal { --cell: 40px; }
}

/* ================================================================== *
   Karte und Anfahrt
 * ================================================================== */
/* Weisser Grund, damit sich der Abschnitt vom Anfrageformular darueber
   absetzt. Sonst laufen zwei gleichfarbige Blöcke ineinander. */
.mapsec {
  padding-top: 80px;
  padding-bottom: 80px;
}
.mapsec__inner {
  max-width: var(--content-width);
  margin-inline: auto;
  padding-inline: var(--content-edge-padding);
}
.mapsec__grid {
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
  margin-top: 32px;
}
.mapsec__info .display { margin-bottom: 20px; }
.mapsec__row {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid #dde3de;
}
.mapsec__row:last-of-type { border-bottom: 0; }
.mapsec__row svg { width: 22px; height: 22px; flex: 0 0 auto; fill: var(--palette-2); margin-top: 2px; }
.mapsec__row dt { font-weight: 700; font-size: 16px; }
.mapsec__row dd { margin: 2px 0 0; font-size: 17px; }
.mapsec__row a { color: inherit; text-decoration: none; }
.mapsec__row a:hover { color: var(--palette-2); text-decoration: underline; }
.mapsec__cta { margin-top: 24px; }

.mapsec__frame {
  position: relative;
  min-height: 420px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--palette-7);
}
.mapsec__frame iframe { display: block; width: 100%; height: 100%; min-height: 420px; border: 0; }

@media all and (max-width: 1024px) {
  .mapsec__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}
@media all and (max-width: 767px) {
  .mapsec { padding: 56px 0; }
  .mapsec__inner { padding-inline: 20px; }
  .mapsec__frame, .mapsec__frame iframe { min-height: 320px; }
}

/* ---- Platzhalter, solange die Karte nicht freigegeben ist ---- */
.consent-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  height: 100%;
  min-height: 420px;
  padding: 32px 24px;
  background:
    linear-gradient(rgba(34, 59, 50, 0.04), rgba(34, 59, 50, 0.04)),
    repeating-linear-gradient(45deg, #eef2ee 0 12px, #e6ece7 12px 24px);
  border: 1px solid #cfd9d1;
  border-radius: 12px;
  text-align: center;
}
.consent-placeholder svg { width: 40px; height: 40px; fill: var(--palette-2); }
.consent-placeholder p { margin: 0; max-width: 46ch; font-size: 16px; line-height: 1.6; }
.consent-placeholder .consent-placeholder__note { color: var(--palette-5); font-size: 14px; }

@media all and (max-width: 767px) {
  .consent-placeholder { min-height: 320px; }
}

/* ================================================================== *
   Kleinigkeiten
 * ================================================================== */

/* Ein Anker, der den fixierten Kopfbereich beruecksichtigt */
[id] { scroll-margin-top: calc(var(--header-h) + 24px); }

/* Ruhiger Platzhalter, solange ein Foto laedt. Bewusst nur fuer Fotos:
   Logos und Symbole sind transparent und wuerden sonst eine Flaeche
   hinter sich bekommen. */
.rounded-img img,
.gallery__item img,
.tabs__gallery img,
.carousel__slide img { background-color: #eef2ee; }

/* Karten und Bilder reagieren beim Ueberfahren */
.rounded-img { overflow: hidden; border-radius: 5px; }
.rounded-img img { transition: transform var(--dur-slow) var(--ease); }
.season-card:hover .rounded-img img,
.rounded-img:hover img { transform: scale(1.03); }

@media (prefers-reduced-motion: reduce) {
  .rounded-img img { transition: none; }
  .season-card:hover .rounded-img img,
  .rounded-img:hover img { transform: none; }
}

/* Galerie: Bilder reagieren auf Zeiger */
.gallery__item a,
.tabs__gallery a,
.carousel__slide a { display: block; overflow: hidden; border-radius: 1px; }
.gallery__item img,
.tabs__gallery img,
.carousel__slide img { transition: transform var(--dur-slow) var(--ease), filter var(--dur) var(--ease); }
.gallery__item a:hover img,
.tabs__gallery a:hover img,
.carousel__slide a:hover img { transform: scale(1.04); filter: brightness(1.04); }

@media (prefers-reduced-motion: reduce) {
  .gallery__item img, .tabs__gallery img, .carousel__slide img { transition: none; }
  .gallery__item a:hover img, .tabs__gallery a:hover img, .carousel__slide a:hover img { transform: none; }
}

/* Textlinks im Fliesstext */
.activity__text a,
.text-page a {
  text-underline-offset: 3px;
  transition: color var(--dur) var(--ease);
}

/* Hinweis, wenn der Belegungsplan gerade nicht erreichbar ist */
.cal__note {
  margin-top: 10px;
  color: var(--palette-5);
  font-size: 14px;
  line-height: 1.5;
}
