/* ============================================================
   SAHR APPARTEMENTS — preise-infos.css
   Seitenspezifische Styles für preise-infos.html.
   Globale Styles und Custom Properties: css/global.css
   ============================================================ */


/* === BLOCK: preise-hero === */

.preise-hero .hero__img {
  height: clamp(480px, 74vh, 820px);
}

/* === END BLOCK: preise-hero === */


/* === BLOCK: preise-intro === */

.preise-intro__lead {
  max-width: 640px;
  margin-top: 16px;
  margin-bottom: 40px;
  font-size: 1.05rem;
  color: var(--color-text);
  line-height: 1.7;
}

.preise-intro__highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 40px;
  margin-top: 8px;
}

.preise-highlight {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text);
}

.preise-highlight__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-section-sage-soft);
  color: var(--color-primary);
  flex-shrink: 0;
}

/* === END BLOCK: preise-intro === */


/* === BLOCK: preisrechner === */

.preisrechner__lead {
  max-width: 580px;
  margin-top: 12px;
  margin-bottom: 48px;
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

.preisrechner__note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 32px;               /* Luft zwischen Buchen-Button und Telefon/Mail-Hinweis */
  font-size: 0.88rem;
  color: var(--color-text-muted);
}

.preisrechner__note svg {
  flex-shrink: 0;
  color: var(--color-text-muted);
}

.preisrechner__note a {
  color: var(--color-headline);
  font-weight: 600;
  text-decoration: none;
}

.preisrechner__note a:hover {
  color: var(--color-primary);
}

/* === END BLOCK: preisrechner === */


/* === BLOCK: inklusive === */

.inklusive-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.inklusive-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.97rem;
  color: var(--color-text);
  font-weight: 500;
}

.inklusive-item svg {
  flex-shrink: 0;
  color: var(--color-primary);
}

/* === END BLOCK: inklusive === */


/* === BLOCK: buchungsinfos === */

.buchungsinfos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.buchungsinfo-card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 32px;
}

.buchungsinfo-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--color-section-sage-soft);
  color: var(--color-primary);
  margin-bottom: 20px;
}

.buchungsinfo-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-headline);
  margin-bottom: 12px;
}

.buchungsinfo-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.buchungsinfo-card li {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.buchungsinfo-card li strong {
  color: var(--color-text);
}

/* === END BLOCK: buchungsinfos === */


/* === BLOCK: preise-break === */

.preise-break {
  text-align: center;
}

.preise-break .section-badge {
  justify-content: center;
}

.preise-break h2 {
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: 16px;
}

.preise-break p {
  max-width: 520px;
  margin-inline: auto;
  margin-bottom: 40px;
  font-size: 1.05rem;
  color: var(--color-stone);
  line-height: 1.7;
}

/* === END BLOCK: preise-break === */


/* === BLOCK: preisübersicht === */

.preistabelle-intro {
  max-width: 580px;
  margin-top: 12px;
  margin-bottom: 48px;
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* Season Cards */
.saison-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 56px;
}

.saison-card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-left-width: 4px;
  border-radius: 16px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
}

.saison-card--neben    { border-left-color: var(--color-stone); }
.saison-card--zwischen { border-left-color: var(--color-section-sage); }
.saison-card--haupt    { border-left-color: var(--color-primary-hover); }
.saison-card--hoch     { border-left-color: var(--color-primary); }

.saison-card__from {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-bottom: 2px;
}

.saison-card__price {
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--color-headline);
  line-height: 1;
  margin-bottom: 2px;
}

.saison-card__unit {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 18px;
}

.saison-card__period {
  margin-top: auto;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* Year Toggle */
.preistabelle-wrapper {
  margin-top: 0;
}

.preistabelle-toggle {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.preistabelle-toggle__btn {
  padding: 9px 26px;
  border-radius: 50px;
  border: 1.5px solid var(--color-border);
  background: transparent;
  font-family: var(--font-primary);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.preistabelle-toggle__btn.is-active {
  background: var(--color-dark-surface);
  border-color: var(--color-dark-surface);
  color: var(--color-white);
}

.preistabelle-toggle__btn:hover:not(.is-active) {
  border-color: var(--color-headline);
  color: var(--color-headline);
}

/* Price Table */
.preistabelle {
  border: 1px solid var(--color-border);
  border-radius: 16px;
  overflow: hidden;
}

.preistabelle--hidden {
  display: none;
}

.preistabelle__scroll {
  overflow-x: auto;
}

.preistabelle table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  table-layout: fixed;
}

.preistabelle thead th {
  background: var(--color-bg);
  padding: 13px 20px;
  text-align: left;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--color-border);
  white-space: nowrap;
}

.preistabelle thead th:first-child  { width: 36%; }
.preistabelle thead th:nth-child(2),
.preistabelle thead th:nth-child(3),
.preistabelle thead th:nth-child(4),
.preistabelle thead th:nth-child(5) { width: 16%; text-align: right; }

.preistabelle tbody tr {
  border-bottom: 1px solid var(--color-border);
  transition: background 0.15s ease;
}

.preistabelle tbody tr:last-child {
  border-bottom: none;
}

.preistabelle tbody tr:hover {
  background: var(--color-bg);
}

.preistabelle tbody td {
  padding: 16px 20px;
  color: var(--color-text);
  vertical-align: middle;
  white-space: nowrap;
}

.preistabelle tbody td:first-child {
  font-weight: 500;
  color: var(--color-headline);
}

.preistabelle tbody td:nth-child(2),
.preistabelle tbody td:nth-child(3),
.preistabelle tbody td:nth-child(4),
.preistabelle tbody td:nth-child(5) {
  font-weight: 600;
  text-align: right;
}

.pt-row--hoch {
  background: var(--color-section-sage-soft);
}

.pt-row--hoch:hover {
  background: #DFE5D7;
}

.preistabelle__footnote {
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* === END BLOCK: preisübersicht === */


/* === BLOCK: preise-responsive === */

@media (max-width: 900px) {
  .saison-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .buchungsinfos-grid {
    grid-template-columns: 1fr;
  }
  .preise-intro__highlights {
    gap: 14px 24px;
  }
  .preistabelle tbody td {
    padding: 13px 16px;
  }
  .preistabelle thead th {
    padding: 11px 16px;
  }
}

@media (max-width: 480px) {
  .buchungsinfo-card {
    padding: 24px;
  }
  .preise-break h2 {
    font-size: 1.6rem;
  }
  .saison-cards {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .saison-card {
    padding: 20px 18px;
  }
  .saison-card__price {
    font-size: 1.7rem;
  }
}

/* Preistabelle schmal: Mit table-layout: fixed, festen %-Breiten und nowrap lief der Text
   unter ~700 px über die Zellgrenzen (Datum in „80 €", Kopf „2–3 Pers." in „4 Pers.",
   „6 Pers." rechts abgeschnitten) — der Scroll-Container griff nie, weil die Tabelle selbst
   nie breiter wurde. Jetzt: Breiten nach Inhalt, Zeitraum und Kopf dürfen umbrechen, weniger
   Innenabstand. Der Zellentext bleibt unverändert (main.js liest das Enddatum daraus). */
@media (max-width: 640px) {
  .preistabelle table {
    table-layout: auto;
    font-size: 0.86rem;
  }
  .preistabelle thead th:nth-child(n) {
    width: auto;
    padding: 10px 6px;
    white-space: normal;
    letter-spacing: 0.04em;
  }
  .preistabelle tbody td {
    padding: 12px 6px;
  }
  .preistabelle tbody td:first-child {
    white-space: normal;
  }
  .preistabelle thead th:first-child,
  .preistabelle tbody td:first-child {
    padding-left: 14px;
  }
  .preistabelle thead th:last-child,
  .preistabelle tbody td:last-child {
    padding-right: 14px;
  }
}

/* === END BLOCK: preise-responsive === */
