body {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Section Head für Booking */
.section-head {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    width: 100%;
    position: relative;
}

.section-head::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 1px;
    background-color: #ccc;
}

.section-head .main-heading {
    display: block;
    font-size: var(--font-size-main-heading);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.section-head .sub-heading {
    display: block;
    color: var(--secondary-color);
    font-size: var(--font-size-base);
    line-height: 1.4;
    max-width: 60ch;
    margin: 0.5rem auto 0 auto;
}

/* Full-width image container */
.title-image-container {
    width: 100%;
    margin: 0;
    padding: 0;
    text-align: center;
}

.title-image {
    width: 100%;
    height: auto;
    display: block;
    margin: 0;
    padding: 0;
}

/* Adjust the container for the booking form */
.container {
    display: flex;
    gap: 20px;
    max-width: 1200px;
    width: 100%;
    padding: 0 20px;
    flex-direction: row;
    margin-top: 20px;
    margin-bottom: 5rem;
}

.booking-container {
    width: 60%;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 30px;
}

.summary-container {
    width: 40%;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    position: relative;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.booking-title {
    text-align: center;
    margin-bottom: 20px;
}

.calendar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#prev-month-button {
    order: 1;
}

#next-month-button {
    order: 2;
    margin-left: auto;
}

.calendar-nav button {
    background-color: transparent;
    border: none;
    font-size: 2em;
    cursor: pointer;
}

.calendar-nav button:focus {
    outline: none;
}

.calendar {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-direction: row;
}

.calendar .month {
    width: 45%;
    flex-shrink: 0;
}

.calendar h3 {
    text-align: center;
    margin-bottom: 10px;
    font-size: var(--font-size-large);
}

.calendar .days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.calendar .day {
    text-align: center;
    padding: 0;  
    border-radius: 50%;
    cursor: pointer;
    font-size: 1em;
    position: relative;
    width: 35px; 
    height: 35px; 
    line-height: 35px; 
    display: inline-block; 
}

/* Leere Felder und gebuchte Tage */
.calendar .day.disabled {
    background-color: transparent !important;
    color: #ccc;
    cursor: default;
    pointer-events: none;
}

.calendar .day.booked {
    color: #d3d3d3;
    text-decoration: line-through;
    pointer-events: none;
    background-color: transparent;
}

.calendar .day.past {
    color: #d3d3d3; 
    text-decoration: line-through; 
    pointer-events: none; 
    background-color: transparent; 
}

/* Animation bei ungültiger Auswahl */
.calendar .day.invalid {
    background-color: var(--secondary-color);
    color: white;
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
}

/* Hover und ausgewählt */
.calendar .day.selected,
.calendar .day:hover {
    background-color: var(--secondary-color);
    color: white;
}

.calendar .day.in-range {
    background-color: var(--secondary-extreme-light);
    color: black;
}

.calendar .day-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.calendar .day-wrapper span {
    display: block;
}

.calendar .day-wrapper .weekday {
    font-size: 0.8em;
    color: #666;
}

.price-per-night {
    font-size: 24px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    font-weight: bold;
}

.date-display {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    padding: 10px 0;
    border-bottom: 1px solid #ccc;
}

#display-check-in,
#display-check-out {
    font-weight: bold;
    font-size: 16px;
}

.guests-selector {
    margin-bottom: 20px;
    position: relative;
}

.guests-selector button {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    text-align: left;
    background-color: #fff;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.guests-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    padding: 15px;
    z-index: 10;
    font-size: 14px;
}

.guests-dropdown.active {
    display: block;
}

.guests-dropdown div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.guests-dropdown label {
    font-weight: bold;
    color: #333;
}

.guest-counter {
    display: flex;
    align-items: center;
}

.guest-counter button {
    background-color: #f0f0f0;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #333;
    transition: background-color 0.3s;
}

.guest-counter button:hover {
    background-color: #ddd;
}

.guest-counter span {
    margin: 0 15px;
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.progress-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    width: 100%;
    max-width: 1200px;
    padding-left: 12px;
    padding-right: 12px;
}

.step {
    display: flex;
    align-items: center;
    position: relative;
}

.step .circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #ccc;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 16px;
}

.step.completed .circle {
    background-color: var(--secondary-color);
}

.step span {
    margin-left: 10px;
    font-size: 14px;
    color: #333;
}

.line {
    flex-grow: 1;
    height: 1px;
    background-color: #ccc;
    margin: 0 10px;
}

.step.completed span {
    color: var(--secondary-color);
    font-weight: bold;
}

#reserve-button {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 5px;
    width: 100%;
    cursor: pointer;
    font-size: 16px;
    margin-top: 20px;
    transition: background-color 0.3s;
}

#reserve-button:hover {
    background-color: var(--secondary-light);
}

.disclaimer {
    text-align: center;
    margin: 15px 0;
    font-size: 14px;
    color: #888;
}

.cost-breakdown p {
    display: flex;
    justify-content: space-between;
    margin: 5px 0;
    font-size: 14px;
}

.cost-breakdown .total {
    font-weight: bold;
    font-size: 18px;
    margin-top: 10px;
}

.villa-note {
    font-size: 14px;
    color: #666;
    margin-top: 15px;
    line-height: 1.4;
    padding-top: 10px;
    border-top: 1px solid #ccc;
}

.promo-code {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.promo-code label {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 5px;
}

.promo-code-input-container {
    display: flex;
    gap: 10px;
        .promo-code-input-container {
            flex-direction: column;
            gap: 8px;
        }
}

.promo-code input {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    flex: 1;
}

#apply-promo-button {
    background-color: #0066cc;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

#apply-promo-button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

#apply-promo-button:enabled:hover {
    background-color: #005bb5;
}

.promo-feedback {
    margin-top: 10px;
    font-size: 14px;
    color: red;
}

.promo-feedback.success {
    color: green;
}

/* ===== Promo-Banner ===== */
#promo-applied-section {
    background: var(--primary-color);
    padding: 15px;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border: 1px solid #e1e6e1;
    gap: 12px;
}

#promo-applied-section .promo-banner__content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Titel (ohne Icon) */
#promo-applied-section .promo-banner__title {
    font-weight: 700;
    font-size: 16px;
    line-height: 1;
}

/* 2. Zeile: –10 % angewendet */
#promo-applied-section .promo-percent-line {
    margin-top: 2px;
    font-size: 14px;
    color: #333;
}

/* 3. Zeile: Ersparnis … */
#promo-applied-section .promo-banner__sub {
    margin-top: 4px;
    font-size: 13px;
    line-height: 1.2;
    color: #555;
}
#promo-applied-section .promo-amount {
    font-weight: 700;
}

/* Entfernen-Button als kleine Pill-Schaltfläche */
#promo-applied-section .promo-banner__remove {
    appearance: none;
    background: rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.12);
    color: #333;
    padding: 6px 10px;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    font-size: 13px;
    transition: background .15s ease, border-color .15s ease, transform .05s ease;
}
#promo-applied-section .promo-banner__remove:hover {
    background: rgba(0,0,0,0.06);
    border-color: rgba(0,0,0,0.18);
}
#promo-applied-section .promo-banner__remove:active {
    transform: translateY(1px);
}

/* Close-Dropdown */
.close-dropdown {
    text-align: right;
    cursor: pointer;
    font-size: 14px;
    color: #0066cc;
    margin-top: 10px;
}

.close-dropdown:hover {
    text-decoration: underline;
}

/* === Neues CSS für die Fehlermeldungen === */
.booking-error {
    display: none;
    margin-top: 15px;
    padding: 15px;
    border-left: 5px solid #b30738;
    background-color: #ffe4eb;
    color: #b30738;
    font-size: 15px;
    font-weight: 500;
    border-radius: 3px;
}

.booking-error.visible {
    display: block;
}

/* Responsive Design Anpassungen */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        gap: 10px;
    }

    .booking-container,
    .summary-container {
        width: 100%;
    }

    .calendar {
        flex-direction: column;
    }

    .calendar .month {
        width: 100%;
    }

    .price-per-night {
        font-size: 20px;
    }

    .date-display {
        font-size: 14px;
    }

    .guests-selector button {
        font-size: 14px;
    }

    .guest-counter span {
        font-size: 14px;
    }

    #reserve-button {
        font-size: 14px;
        padding: 10px;
    }

    /* Promo-Banner: Button unter den Text rutschen lassen */
    #promo-applied-section {
        align-items: flex-start;
        gap: 10px;
    }

    /* Rabattcode-Sektion mobil: Button unter das Input-Feld, volle Breite */
    .promo-code-input-container {
        flex-direction: column;
        gap: 8px;
    }
    #apply-promo-button {
        width: 100%;
        box-sizing: border-box;
        margin-top: 4px;
    }
}

.tooltip {
    position: absolute;
    background: #000;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1000;
}

.tooltip.visible {
    opacity: 1;
}

/* Booking page: Footer immer volle Breite */
.footer {
  align-self: stretch;
  width: 100%;
}

/* Innenleben sauber zentrieren, ohne 100vw-Scroll */
.footer-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 480px) {
    .calendar-nav button {
        font-size: 1.5em;
    }

    .calendar .day {
        width: 30px;
        height: 30px;
        line-height: 30px;
    }

    .price-per-night {
        font-size: 18px;
    }

    .date-display {
        font-size: 12px;
    }

    #reserve-button {
        font-size: 12px;
        padding: 8px;
    }
}

/* Media Query für Bildschirmbreiten unter 930px */
@media (max-width: 930px) {
    .container {
        flex-direction: column;
        align-items: center;
    }

    .booking-container, 
    .summary-container {
        width: 100%;
        max-width: 600px;
    }

    .booking-container {
        margin-bottom: 20px;
    }
}

/* === Minimal polish: Gesamtsumme (total) line === */
.cost-breakdown .total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0 4px;
  margin-top: 12px;
  border-top: 1px solid #e6e6e6;
  font-size: 16px; /* Label-Größe */
}

#total-cost {
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  text-align: right;
  white-space: nowrap;
}

.incl {
  grid-column: 1 / -1;
  display: flex;
  width: 100%;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  margin-top: -6px;
  font-size: 12px;
  color: #666;
  text-align: right;
}

/* --- Progress-Bar vereinheitlichen (wie Payment) --- */
.step.active .circle {
  background: var(--secondary-color);
  color: #fff;
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--secondary-color) 25%, transparent);
}
.progress-bar .line {
  height: 3px;
  background: linear-gradient(90deg, var(--secondary-color), var(--secondary-light));
}

/* Rabatt-Zeile in der Kostenübersicht */
.cost-breakdown .discount-row {
  display: flex;
  justify-content: space-between;
  margin: 5px 0 0;
  font-size: 14px;
  color: #b30738;
}

.cost-breakdown .discount-row #discount-value {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Flash-Meldung unter dem Promo-Eingabefeld */
.promo-feedback {
  display: none;                 /* Standard: verborgen */
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 15px;
  line-height: 1.3;
  border-left: 5px solid transparent;
  align-items: center;
  gap: 8px;
  transition: opacity .3s ease;
}
.promo-feedback.visible {
  display: flex;
}
.promo-feedback .icon {
  font-family: 'Material Symbols Outlined';
  font-variation-settings: 'wght' 600;
  font-size: 20px;
  line-height: 1;
}

/* Erfolgszustand */
.promo-feedback.success {
  color: #0f5132;
  background: #d1e7dd;          /* sanftes Grün */
  border-left-color: #0f5132;
}

/* Fehlerzustand */
.promo-feedback.error {
  color: #842029;
  background: #f8d7da;          /* sanftes Rot */
  border-left-color: #842029;
}

/* Automatische Ausblendung */
.promo-feedback.fade-out {
  opacity: 0;
}

/* Optional: den angewendeten %-Text im Banner etwas prominenter machen */
#promo-applied-section .promo-percent {
  font-size: 18px;
  font-weight: 800;
  color: var(--secondary-color);
}

/* ===== Mobile Optimierung: Progress Bar ===== */
@media (max-width: 992px) {
  /* Progress Bar: Text unter Kreis, zentriert */
  .step {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .step-label {
    margin-left: 0 !important;
    margin-top: 6px;
    font-size: 13px;
  }
}

@media (max-width: 768px) {
  .progress-bar {
    padding-left: 20px;
    padding-right: 20px;
  }
  
  .step .circle {
    width: 32px;
    height: 32px;
    font-size: 15px;
  }
  
  .line {
    margin: 0 8px;
  }
  
  /* Volltext ausblenden, Kurztext zeigen */
  .label-full {
    display: none;
  }
  
  .label-short {
    display: inline;
  }
  
  .step-label {
    font-size: 12px;
  }
}

@media (max-width: 450px) {
  /* Nur Nummern, kein Text */
  .progress-bar {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Alle Texte ausblenden */
  .step-label {
    display: none;
  }
  
  .line {
    margin: 0 6px;
  }
}

@media (max-width: 380px) {
  /* Kleinere Kreise für sehr kompakte Displays */
  .step .circle {
    width: 28px;
    height: 28px;
    font-size: 13px;
  }
  
  .line {
    margin: 0 5px;
  }
}

/* Desktop: Volltext neben Kreis */
@media (min-width: 769px) {
  .label-full {
    display: inline;
  }
  
  .label-short {
    display: none;
  }
}
