/* helikopter-rundflug.com — Grundformen der Module aus site-werkzeuge (angebot, verfuegbarkeit,
   finder) im Rundflug-Design. Die Module bringen ihr eigenes CSS mit (angebot.css, finder.css,
   verfuegbarkeit.css) und setzen die Grundklassen der mst-Vorlage voraus (mst-section, mst-btn,
   mst-card, mst-selector …). Diese stehen hier, mit den Farben von style.css.

   Die Module rechnen mit der Abstandsskala der mst-Vorlage (--s-1 = 4 px … --s-6 = 64 px), Rundflug
   mit einer eigenen in rem. Deshalb gelten die mst-Werte nur innerhalb der Modul-Bausteine. */

.mst-section, .mst-trustbar, .mst-avail-link {
  --s-1: 4px; --s-2: 8px; --s-3: 16px; --s-4: 24px; --s-5: 40px; --s-6: 56px;
  --r-sm: 6px; --r-md: 10px; --r-lg: 14px;
  --c-primary: var(--c-brand-2);
  --c-primary-dark: var(--c-brand);
  --c-primary-soft: #e6eef6;
  --c-ink-soft: var(--c-ink-2);
  --c-border: var(--c-line);
  --c-muted: var(--c-band);
  --c-warm: #f6efe4;
  --c-warm-dark: #eadcc4;
  --c-star: #a85a05;
  --c-success: var(--c-gut);
  --f-sans: inherit;
  --f-serif: inherit;
}

/* Abschnitte stehen im Inhaltsbereich der Seite (.hrf-wrap), nicht über die volle Breite */
.hrf-content .mst-section { padding: var(--s-5) 0 var(--s-3); }
.hrf-content .mst-section--muted { background: none; }
.hrf-content .mst-container { max-width: none; margin: 0; padding: 0; }
.mst-container { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--s-3); }
.mst-container--narrow { max-width: 820px; }
.mst-center { text-align: center; }
.hrf-content .mst-center { text-align: left; }
.mst-section__title {
  font-size: clamp(1.3rem, 3vw, 1.7rem); color: var(--c-brand); line-height: 1.25;
  margin: 0 0 var(--s-2); scroll-margin-top: calc(var(--kopf) + var(--seitennav) + 14px);
}
.mst-section__sub { color: var(--c-ink-2); margin: 0 0 var(--s-4); max-width: 72ch; }
.mst-section[id] { scroll-margin-top: calc(var(--kopf) + var(--seitennav) + 14px); }

/* Knöpfe wie .hrf-btn: Pille, Buchen in Orange */
.mst-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  border: 1px solid var(--c-brand-2); border-radius: 999px; background: #fff; color: var(--c-brand-2);
  padding: .6rem 1.25rem; font: inherit; font-weight: 700; font-size: .94rem; line-height: 1.3;
  text-decoration: none; cursor: pointer; white-space: nowrap;
}
.mst-btn:hover { background: var(--c-band); color: var(--c-brand-2); }
.mst-btn--primary { background: var(--c-cta); border-color: var(--c-cta); color: #fff; }
.mst-btn--primary:hover { background: var(--c-cta-dark); border-color: var(--c-cta-dark); color: #fff; }
.mst-btn--ghost { background: transparent; border-color: var(--c-line); color: var(--c-brand-2); }
.mst-btn--large { padding: .75rem 1.5rem; font-size: 1rem; }
.mst-btn--block { display: flex; width: 100%; }

/* Chips als schlichte Textlabels (ruhige Gestaltung, regeln.md) */
.mst-chip { display: inline-block; font-size: .8rem; font-weight: 700; color: var(--c-ink-2); }
.mst-chip--live { color: var(--c-brand-2); }

.mst-price-unit { font-weight: 400; color: var(--c-ink-2); font-size: .8rem; }

/* Raster und Karten (Empfehlungen) */
.mst-grid { display: grid; gap: var(--s-3); }
.mst-grid--2 { grid-template-columns: repeat(2, 1fr); }
.mst-grid--3 { grid-template-columns: repeat(3, 1fr); }
.mst-grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 959px) { .mst-grid--3, .mst-grid--4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 599px) { .mst-grid--2, .mst-grid--3, .mst-grid--4 { grid-template-columns: 1fr; } }
.mst-card {
  display: flex; flex-direction: column; overflow: hidden; background: #fff; color: var(--c-ink);
  border: 1px solid var(--c-line); border-radius: var(--r);
}
.mst-card__img { width: 100%; aspect-ratio: 16/10; object-fit: cover; background: var(--c-band); }
.mst-card__body { display: flex; flex-direction: column; gap: var(--s-2); flex: 1; padding: var(--s-3); }
.mst-card__title { margin: 0; font-size: 1.05rem; line-height: 1.3; color: var(--c-brand); }
.mst-card__usp { margin: 0; color: var(--c-ink-2); font-size: .93rem; }
.mst-card__meta {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s-2);
  margin-top: auto; padding-top: var(--s-2); border-top: 1px solid var(--c-line);
}
.mst-card__price { font-weight: 700; color: var(--c-gut); }
.mst-card__rating { color: var(--c-ink-2); font-size: .9rem; }
.mst-card__rating strong { color: var(--c-star); }

/* Vergleichstabelle des Faktenblatts; auf dem Telefon Karten je Zeile */
.mst-compare { overflow-x: auto; }
.mst-compare__table { width: 100%; border-collapse: collapse; background: #fff; font-size: .93rem; }
.mst-compare__table th, .mst-compare__table td { padding: .55rem .7rem; text-align: left; border-bottom: 1px solid var(--c-line); vertical-align: top; }
.mst-compare__table th { color: var(--c-ink-2); font-weight: 700; font-size: .85rem; background: var(--c-band); }
.mst-compare__note { margin: var(--s-3) 0 0; color: var(--c-ink-2); font-size: .88rem; }
@media (max-width: 699px) {
  .mst-compare__table, .mst-compare__table tbody { display: block; }
  .mst-compare__table thead { display: none; }
  .mst-compare__table tr { display: block; border: 1px solid var(--c-line); border-radius: var(--r); padding: .5rem .75rem; margin-bottom: .75rem; }
  .mst-compare__table td { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; border-bottom: 1px dashed var(--c-line); text-align: right; }
  .mst-compare__table td:last-child { border-bottom: 0; }
  .mst-compare__table td::before { content: attr(data-label); color: var(--c-ink-2); font-size: .82rem; font-weight: 700; text-align: left; flex-shrink: 0; }
  .mst-compare__table td:first-child { display: block; text-align: left; border-bottom: 1px solid var(--c-line); padding-bottom: .5rem; }
  .mst-compare__table td:first-child::before { display: none; }
}

/* Finder */
.mst-selector { background: #fff; border: 1px solid var(--c-line); border-radius: var(--r); padding: var(--s-4); }
.mst-selector__step { display: none; }
.mst-selector__step.is-active { display: block; }
.mst-selector__q { font-size: 1.15rem; font-weight: 700; color: var(--c-brand); margin-bottom: var(--s-3); }
.mst-selector__options { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-2); margin-bottom: var(--s-3); }
@media (max-width: 599px) { .mst-selector__options { grid-template-columns: 1fr; } }
.mst-selector__option {
  display: flex; align-items: center; padding: .7rem .9rem; border: 1px solid var(--c-line); border-radius: var(--r);
  background: #fff; color: var(--c-ink); font: inherit; font-size: .95rem; text-align: left; cursor: pointer;
}
.mst-selector__option:hover, .mst-selector__option.is-selected { border-color: var(--c-brand-2); background: #e6eef6; }
.mst-selector__progress { display: flex; gap: 6px; margin-bottom: var(--s-3); }
.mst-selector__dot { width: 22px; height: 6px; border-radius: 999px; background: var(--c-line); }
.mst-selector__dot.is-active { background: var(--c-brand-2); }
.mst-selector__result { display: none; padding-top: var(--s-3); border-top: 1px solid var(--c-line); }
.mst-selector__result.is-active { display: block; }

/* Trust-Leiste unter dem Kopf der Zielseite */
.mst-trustbar { border-bottom: 1px solid var(--c-line); background: #fff; }
.mst-trustbar .mst-container { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; padding-top: .8rem; padding-bottom: .8rem; }

/* Faktenblatt: Zahlen und kurze Werte nicht umbrechen */
@media (min-width: 700px) {
  .mst-facts__table td:nth-child(2), .mst-facts__table td:last-child { white-space: nowrap; }
}
