/* ============================================================
 * service-form.css — felmar.phnx.dev Service-Form (Phase 2)
 * Geladen via render_header() extra_css nach index.v14.css.
 *
 * Styling fuer das von src/js/service-form.js gerenderte Formular.
 * JS rendert .sf-Praefix-Klassen; die service-form-.step- und .btn-
 * Namen sind als Alias-Selektoren mit abgedeckt.
 *
 * Design-System:
 *   primary   sand-coral  #ff7e5f
 *   secondary deep-teal   #1a4a5c
 *   accent    gold        #f5b14c
 *   8px-Grid (padding 16/24px) · radius 12/8/24 · font 16px
 *   Touch-Targets >= 44px · transitions 200-300ms ease-out
 *   focus 3px outline accent · reduced-motion · dark-mode
 * ============================================================ */

.sf-root,
.service-form-wrap {
  --sf-coral: #ff7e5f;
  --sf-coral-deep: #e8603f;
  --sf-teal: #1a4a5c;
  --sf-teal-soft: #2a6378;
  --sf-gold: #f5b14c;
  --sf-ink: #333344;
  --sf-muted: #5c5c5c;
  /* Bundle-#9 (C): Marken-Orange als TEXT-Farbe, WCAG-AA auf Paper/Sand
   * (Hintergrunds-Korall bleibt --sf-coral). */
  --sf-coral-text: #c0501e;
  --sf-paper: #fffdf8;
  --sf-sand: #fdf1e7;
  --sf-line: #e4d9cb;
  --sf-danger: #c0392b;
  --sf-ok: #2e7d5b;
  --sf-radius-card: 12px;
  --sf-radius-input: 8px;
  --sf-radius-btn: 24px;
  --sf-t: 240ms ease-out;
  display: grid;
  gap: 24px;
  max-width: 640px;
  margin: 0 auto;
  padding: 24px 16px 32px;
  color: var(--sf-ink);
  font-size: 16px;
  line-height: 1.5;
}

/* ---------- Header / Titel ---------- */

.sf-title,
.service-form-header {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(30px, 6vw, 42px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--sf-teal);
}

/* ---------- Header (Back + Titel) ---------- */

.sf-header {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.sf-btn.sf-back {
  background: transparent;
  color: var(--sf-teal);
  border: none;
  box-shadow: none;
  min-height: 44px;
  padding: 8px 12px;
  font-size: 15px;
}

.sf-btn.sf-back:hover {
  color: var(--sf-coral-deep);
  text-decoration: underline;
}

/* ---------- Progress ---------- */

.sf-progress,
.service-form-progress {
  display: grid;
  gap: 8px;
}

.sf-progress-bar {
  height: 8px;
  border-radius: 999px;
  background: var(--sf-coral);
  transition: width var(--sf-t);
}

.sf-progress {
  background: var(--sf-sand);
  border-radius: 999px;
  padding: 6px;
}

.sf-progress .sf-progress-bar {
  background: linear-gradient(90deg, var(--sf-coral), var(--sf-gold));
  min-width: 8%;
}

.sf-progress-text {
  justify-self: end;
  color: var(--sf-muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

/* ---------- Step-Panel (Card) ---------- */

.sf-panel,
.service-form-body,
.service-form-step {
  display: grid;
  gap: 16px;
  padding: 24px 16px;
  background: var(--sf-paper);
  border: 1px solid var(--sf-line);
  border-radius: var(--sf-radius-card);
  box-shadow: 0 10px 28px rgba(26, 74, 92, 0.08);
}

@media (min-width: 640px) {
  .sf-panel,
  .service-form-body,
  .service-form-step {
    padding: 24px;
  }
  .sf-root,
  .service-form-wrap {
    padding: 24px;
  }
}

/* ---------- Fields ---------- */

.sf-field,
.step-field {
  display: grid;
  gap: 8px;
}

.sf-label,
.step-label {
  color: var(--sf-teal);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sf-input,
.step-input,
.step-select,
.step-textarea,
.step-password {
  width: 100%;
  min-height: 48px;           /* Touch-Target >= 44 */
  padding: 12px 16px;
  border: 1.5px solid var(--sf-line);
  border-radius: var(--sf-radius-input);
  background: #fff;
  color: var(--sf-ink);
  font: inherit;
  font-size: 16px;             /* verhindert iOS-Zoom */
  transition: border-color var(--sf-t), box-shadow var(--sf-t), background var(--sf-t);
}

.sf-input:hover,
.step-input:hover,
.step-select:hover,
.step-textarea:hover,
.step-password:hover {
  border-color: var(--sf-coral);
}

.sf-input:focus-visible,
.step-input:focus-visible,
.step-select:focus-visible,
.step-textarea:focus-visible,
.step-password:focus-visible {
  outline: 3px solid var(--sf-gold);
  outline-offset: 1px;
  border-color: var(--sf-coral);
}

textarea.step-textarea {
  min-height: 120px;
  resize: vertical;
}

select.sf-input,
.step-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='10' viewBox='0 0 16 10'%3E%3Cpath d='M1 1l7 7 7-7' fill='none' stroke='%231a4a5c' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}

/* date_range: zwei Felder untereinander */
.sf-type-date_range {
  gap: 12px;
}

/* ---------- Checkbox (custom) ---------- */

.sf-checkbox,
.step-checkbox {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.sf-checkbox-label,
.step-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 44px;            /* Touch-Target */
  padding: 8px 0;
  cursor: pointer;
  font-size: 15px;
  color: var(--sf-ink);
}

.sf-checkbox-label::before,
.step-checkbox-label::before {
  content: '';
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  margin-top: 1px;
  border: 2px solid var(--sf-line);
  border-radius: 6px;
  background: #fff;
  transition: background var(--sf-t), border-color var(--sf-t);
}

.sf-checkbox:checked + .sf-checkbox-label::before,
.sf-checkbox-label:has(.sf-checkbox:checked)::before,
.step-checkbox:checked + .step-checkbox-label::before,
.step-checkbox-label:has(.step-checkbox:checked)::before {
  background: var(--sf-coral) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 13l4 4L19 7' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
  border-color: var(--sf-coral);
}

/* Label enthaelt die Box als firstChild -> ::before ersetzt Optik,
   Original-Box bleibt unsichtbar aber tastbar/fokussierbar */
.sf-checkbox:focus-visible + .sf-checkbox-label::before,
.sf-checkbox-label:has(.sf-checkbox:focus-visible)::before,
.step-checkbox:focus-visible + .step-checkbox-label::before,
.step-checkbox-label:has(.step-checkbox:focus-visible)::before {
  outline: 3px solid var(--sf-gold);
  outline-offset: 2px;
}

/* ---------- Stripe Card Mount ---------- */

.sf-stripe-mount,
.step-stripe-card {
  min-height: 52px;
  padding: 14px 16px;
  border: 1.5px solid var(--sf-line);
  border-radius: var(--sf-radius-input);
  background: #fff;
  transition: border-color var(--sf-t), box-shadow var(--sf-t);
}

.sf-stripe-mount:focus-within,
.step-stripe-card:focus-within {
  outline: 3px solid var(--sf-gold);
  outline-offset: 1px;
  border-color: var(--sf-coral);
}

/* ---------- Error / Success / Loading ---------- */

.sf-error,
.step-error {
  min-height: 0;
  margin: 0;
  padding: 0;
  color: var(--sf-danger);
  font-size: 14px;
  font-weight: 600;
}

.sf-error:not(:empty),
.step-error:not(:empty) {
  padding: 12px 16px;
  background: #fdecea;
  border-radius: var(--sf-radius-input);
}

.sf-success,
.service-form-success {
  display: grid;
  gap: 16px;
  justify-items: start;
  padding: 24px 16px;
  background: #eaf6f0;
  border: 1px solid #bfe3d2;
  border-radius: var(--sf-radius-card);
}

@media (min-width: 640px) {
  .sf-success,
  .service-form-success {
    padding: 24px;
  }
}

.sf-success-msg {
  margin: 0;
  color: var(--sf-ok);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
}

.service-form-loading {
  display: grid;
  gap: 12px;
  justify-items: center;
  padding: 48px 16px;
  color: var(--sf-muted);
  font-size: 15px;
}

.service-form-loading::before {
  content: '';
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid var(--sf-line);
  border-top-color: var(--sf-coral);
  animation: sf-spin 800ms linear infinite;
}

@keyframes sf-spin {
  to { transform: rotate(360deg); }
}

/* ---------- Smooth Transitions (Open/Close) ---------- */

.sf-root { animation: sfFadeIn 200ms ease-out; }

@keyframes sfFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes sfFadeOut {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(8px); }
}

/* ---------- Navigation / Buttons ---------- */

.sf-nav,
.step-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.sf-btn,
.btn-prev,
.btn-next,
.step-nav button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;            /* Touch-Target >= 44 */
  padding: 12px 28px;
  border: 1.5px solid transparent;
  border-radius: var(--sf-radius-btn);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background var(--sf-t), color var(--sf-t), border-color var(--sf-t),
              transform var(--sf-t), box-shadow var(--sf-t);
}

.sf-btn:focus-visible,
.sf-see-more:focus-visible,
.step-nav button:focus-visible {
  outline: 3px solid var(--sf-gold);
  outline-offset: 2px;
}

/* Primary (Next / Submit) */
.sf-next,
.btn-next {
  margin-left: auto;
  background: linear-gradient(135deg, var(--sf-coral), var(--sf-coral-deep));
  color: #fff;
  box-shadow: 0 6px 16px rgba(255, 126, 95, 0.35);
}

.sf-next:hover:not(:disabled),
.btn-next:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(255, 126, 95, 0.42);
}

.sf-next:active:not(:disabled),
.btn-next:active:not(:disabled) {
  transform: translateY(0);
}

.sf-next:disabled,
.btn-next:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

/* Secondary (Prev) */
.sf-prev,
.btn-prev {
  background: transparent;
  color: var(--sf-teal);
  border-color: var(--sf-line);
}

.sf-prev:hover,
.btn-prev:hover {
  border-color: var(--sf-teal);
  background: rgba(26, 74, 92, 0.06);
}

/* Tertiary (Cancel / Back) */
.sf-cancel,
.step-nav .btn-cancel {
  background: transparent;
  color: var(--sf-muted);
  border: none;
  box-shadow: none;
  min-height: 44px;            /* Touch-Target */
  padding: 10px 20px;
}

.sf-cancel:hover,
.step-nav .btn-cancel:hover {
  color: var(--sf-teal);
  text-decoration: underline;
}

/* ---------- Dark-Mode (prefers-color-scheme) ---------- */

@media (prefers-color-scheme: dark) {
  .sf-root,
  .service-form-wrap {
    --sf-ink: #e8eef1;
    --sf-muted: #b6c4ca; /* Bundle-#9 (C): 4.5:1+ auf Dark-Paper */
    --sf-coral-text: #ff9d7e; /* Bundle-#9 (C): AA auf dunklem Grund */
    --sf-paper: #12262e;
    --sf-sand: #16303a;
    --sf-line: #2c4750;
    color: var(--sf-ink);
  }

  .sf-input,
  .step-input,
  .step-select,
  .step-textarea,
  .step-password,
  .sf-stripe-mount,
  .step-stripe-card {
    background: #0d1e25;
    color: var(--sf-ink);
    color-scheme: dark; /* native date/select picker dunkel */
  }

  .sf-panel,
  .service-form-body,
  .service-form-step {
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  }
}

/* ---------- Results: Horizontale Galerie (Search-First) ---------- */

.sf-results-grid {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 16px;
  padding: 8px 0;
  scroll-padding-left: 0;
}

.sf-result-card {
  min-width: 280px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  background: var(--sf-paper);
  border: 1px solid var(--sf-line);
  border-radius: var(--sf-radius-card);
  box-shadow: 0 10px 28px rgba(26, 74, 92, 0.08);
  padding: 16px;
}

.sf-card-photo {
  border-radius: var(--sf-radius-input);
  background: var(--sf-sand);
  display: grid;
  place-items: center;
  min-height: 120px;
  font-size: 48px;
  margin-bottom: 12px;
}

.sf-card-body {
  display: grid;
  gap: 4px;
  flex: 1;
}

.sf-card-name {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 20px;
  color: var(--sf-teal);
}

.sf-card-city,
.sf-card-specs {
  margin: 0;
  color: var(--sf-muted);
  font-size: 14px;
}

.sf-card-price {
  margin: 4px 0 8px;
  color: var(--sf-ink);
  font-size: 16px;
  font-weight: 700;
}

.sf-card-amenities {
  margin: 8px 0 0;
  color: var(--sf-muted);
  font-size: 13px;
}

.sf-results .sf-book-now {
  margin-top: auto;
  background: linear-gradient(135deg, var(--sf-coral), var(--sf-coral-deep));
  color: #fff;
  border: none;
  box-shadow: 0 6px 16px rgba(255, 126, 95, 0.35);
}

/* ---------- Gallery-Stepper / Dots ---------- */

.sf-gallery {
  position: relative;
  display: grid;
  gap: 8px;
}

nav.sf-gallery-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 4px 0;
}

.sf-gallery-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--sf-line);
  cursor: pointer;
  transition: background var(--sf-t), transform var(--sf-t);
}

.sf-gallery-dot-active {
  background: var(--sf-coral);
  transform: scale(1.25);
}

.sf-gallery-dot:focus-visible {
  outline: 3px solid var(--sf-gold);
  outline-offset: 2px;
}

/* ---------- Reduced Motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .sf-root *,
  .service-form-wrap *,
  .sf-root *::before,
  .service-form-wrap *::before {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .sf-btn:hover:not(:disabled),
  .btn-next:hover:not(:disabled) {
    transform: none;
  }
}

/* ============================================================
 * Summary-5 (A-F) — Dot-Progress, Step-Back/Header-X, Hub-Overlay,
 * Card-Cover-Fotos, SEE MORE, Property-Detail-View
 * ============================================================ */

/* (C) Hub-Shell-Overlay: Hub bleibt im DOM, nur visuell versteckt */
.sf-hub-shell {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--sf-paper, #fffdf8);
  display: flex;
  flex-direction: column;
  /* Bundle-#10 (D): Scroll-Trap Fix — der Body muss innerhalb der
   * Shell scrollen (nicht der window). Body braucht `min-height: 0`
   * in Flex-Container damit Scroll funktioniert. Detail-View wächst
   * in die Shell, Body scrollt seinen Inhalt. window scroll bleibt 0. */
}

.sf-hub-hidden {
  visibility: hidden;
  pointer-events: none;
}

/* (A) Wizard-Dot-Indicator: 4 Dots, aktiver gross + Orange */
.sf-progress-dots {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  padding: 16px 0;
}

.sf-progress-dots .sf-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--sf-line);
  background: transparent;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  line-height: 0;
  color: #fff;
}

.sf-progress-dots .sf-dot.is-done {
  background: var(--sf-coral);
  border-color: var(--sf-coral);
}

.sf-progress-dots .sf-dot.is-done::after {
  content: '\2713'; /* checkmark */
  font-size: 8px;
  font-weight: 700;
  line-height: 1;
}

.sf-progress-dots .sf-dot.is-active {
  width: 12px;
  height: 12px;
  background: var(--sf-coral);
  border-color: var(--sf-coral);
}

/* (B) Header: Previous-step links, X-Close rechts */
.sf-header .sf-header-spacer {
  min-width: 1px;
}

.sf-btn.sf-close-x {
  background: transparent;
  border: none;
  box-shadow: none;
  color: var(--sf-muted);
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  margin-left: auto;
}

.sf-btn.sf-close-x:hover {
  color: var(--sf-danger);
  background: var(--sf-sand);
}

/* (E) Echtes Cover-Foto in der Card statt Emoji */
.sf-result-card .sf-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 16px 16px 0 0;
  display: block;
  background: var(--sf-sand);
}

.sf-result-card .sf-card-photo {
  min-height: 120px;
}

/* Card hat jetzt Foto oben ohne Innen-Padding — Padding in Body verlagern */
.sf-result-card.has-cover {
  padding: 0;
}

.sf-result-card.has-cover .sf-card-body,
.sf-result-card.has-cover .sf-card-actions {
  padding: 0 16px 16px;
}

.sf-result-card.has-cover .sf-card-body {
  padding-top: 12px;
}

/* (D) Card-Actions: SEE MORE dezent links, BOOK NOW orange rechts */
.sf-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}

/* Bundle-#9 (B): SEE MORE als dezenter Pill-Button mit Korall-Rahmen.
 * WICHTIG: JS rendert class 'sf-see-more' OHNE sf-btn — der alte Selektor
 * .sf-btn.sf-see-more griff daher nie. Beide Varianten abgedeckt. */
.sf-btn.sf-see-more,
.sf-see-more {
  background: transparent;
  border: 1px solid var(--sf-coral);
  box-shadow: none;
  color: var(--sf-coral-text);
  text-decoration: none;
  font: inherit;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 8px 16px;
  min-height: 44px;
  font-size: 15px;
  border-radius: var(--sf-radius-btn);
  cursor: pointer;
  transition: background var(--sf-t), color var(--sf-t), border-color var(--sf-t);
}

.sf-btn.sf-see-more:hover,
.sf-see-more:hover {
  background: rgba(255, 126, 95, 0.12);
  color: var(--sf-coral-text);
  border-color: var(--sf-coral-deep);
}

.sf-card-actions .sf-book-now {
  flex: 1 1 auto;
  max-width: 60%;
}

/* (F) Property-Detail-View */
.sf-detail-view {
  display: grid;
  gap: 16px;
  /* Bundle-#8 (B): Sticky-Bookbar-Fix — Content muss voll scrollbar sein,
   * Footer (Button + Padding + Safe-Area) darf About/Description nicht
   * überdecken. 96px reichten nicht, deshalb 132px + safe-area.
   * Bundle-#9 (A): Padding 0 0 ... nahm auch das SEITLICHE Padding weg,
   * deshalb sahen Bilder/Text zu weit links aus. Seitlich wieder 16px,
   * Hero blutet mit margin: 0 -16px sauber bis zum Rand aus. */
  padding: 0 16px calc(180px + env(safe-area-inset-bottom, 0px));
  max-width: 100%;
  overflow-x: hidden;
}

.sf-detail-info {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.sf-detail-hero {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 8px;
  border-radius: var(--sf-radius-card);
  /* Bundle-#10 (A): Hero braucht explizite min-height sonst
   * collapsed auf 0 weil Flex-Container mit nur einem Flex-Child. */
  min-height: 260px;
  /* Bundle-#10 (A) FIX (2026-09-22): Hero edge-to-edge mit Viewport-Rand.
   * Annahme war .sf-overlay-body padding (16px) + .sf-detail-view padding (16px) = 32px,
   * ABER .sf-overlay-body hat kein padding (siehe Zeile 1133) → -32px zog Hero 16px
   * zu weit nach links raus (Phillip-Report). Korrekt: nur .sf-detail-view padding
   * (16px) kompensieren → -16px margin. */
  margin: 0 -16px;
  padding: 0;
  -webkit-overflow-scrolling: touch;
  max-width: calc(100% + 32px);
}

.sf-detail-img {
  width: 100%;
  min-width: 82%;
  max-width: 100%;
  height: 260px;
  object-fit: cover;
  scroll-snap-align: center;
  border-radius: var(--sf-radius-card);
  background: var(--sf-sand);
  flex: 0 0 auto;
}

.sf-detail-hero img:first-child {
  margin-left: 16px;
}

.sf-detail-hero img:last-child {
  margin-right: 16px;
}

.sf-detail-info h3 {
  margin: 0 0 4px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 24px;
  color: var(--sf-teal);
}

.sf-detail-location {
  margin: 0 0 8px;
  color: var(--sf-muted);
  font-size: 14px;
}

.sf-detail-price {
  margin: 0 0 8px;
  color: var(--sf-ink);
  font-weight: 700;
}

/* Bundle-#8 (A): Detail-View Price-Block (Rate + Total + Range) */
.sf-detail-priceblock {
  display: grid;
  gap: 2px;
  margin: 0 0 12px;
  padding: 12px 14px;
  background: var(--sf-sand);
  border: 1px solid var(--sf-line);
  border-radius: var(--sf-radius-card);
}

.sf-detail-priceblock .sf-detail-rate {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--sf-teal);
}

.sf-detail-priceblock .sf-detail-total {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--sf-ink);
}

.sf-detail-priceblock .sf-detail-range {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--sf-muted);
}

.sf-detail-priceblock small {
  font-size: 0.75em;
  font-weight: 500;
  color: var(--sf-muted);
}

.sf-detail-specs {
  margin: 0 0 12px;
  color: var(--sf-muted);
  font-size: 14px;
}

.sf-detail-desc {
  margin: 0 0 12px;
  color: var(--sf-ink);
  font-size: 15px;
  line-height: 1.55;
}

.sf-detail-desc p {
  margin: 0 0 10px;
}

.sf-detail-amenities {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.sf-detail-amenities li {
  color: var(--sf-muted);
  font-size: 14px;
  padding-left: 20px;
  position: relative;
}

.sf-detail-amenities li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--sf-coral-text); /* Bundle-#9 (C): AA statt hellem Korall */
  font-weight: 700;
}

/* Sticky Bottom: BOOK NOW full-width + darunter dezent Cancel-Hinweis */
.sf-detail-sticky {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 110;
  background: var(--sf-paper);
  border-top: 1px solid var(--sf-line);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  display: grid;
  gap: 4px;
}

.sf-detail-sticky .sf-book-now {
  width: 100%;
  background: linear-gradient(135deg, var(--sf-coral), var(--sf-coral-deep));
  color: #fff;
  border: none;
  box-shadow: 0 6px 16px rgba(255, 126, 95, 0.35);
}

.sf-detail-sticky .sf-detail-cancel {
  background: none;
  border: none;
  color: var(--sf-muted);
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 4px;
}

/* Detail-View: Header + Hero-Track + Sticky-Bookbar (Ergaenzung) */
.sf-detail-view .sf-detail-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sf-detail-view .sf-detail-header .sf-close-x {
  margin-left: auto;
}

.sf-detail-view .sf-detail-track {
  display: flex;
  gap: 8px;
  /* Bundle-#10 (A): Track braucht explizite Höhe sonst wird Hero collapsed.
   * align-items: stretch im Hero braucht definierten height, sonst 0. */
  height: 260px;
}

.sf-detail-view .sf-detail-name {
  margin: 0 0 4px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 24px;
  color: var(--sf-teal);
}

.sf-detail-view .sf-detail-sub {
  margin: 16px 0 8px;
  font-size: 17px;
  color: var(--sf-teal);
}

.sf-detail-view .sf-detail-count {
  position: absolute;
  right: 24px;
  bottom: 12px;
  background: rgba(26, 74, 92, 0.75);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  pointer-events: none;
}

.sf-detail-view .sf-detail-hero {
  position: relative;
}

.sf-detail-view .sf-detail-bookbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 110;
  background: var(--sf-paper);
  border-top: 1px solid var(--sf-line);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  display: grid;
  gap: 4px;
}

.sf-detail-view .sf-detail-bookbar .sf-book-now {
  width: 100%;
  background: linear-gradient(135deg, var(--sf-coral), var(--sf-coral-deep));
  color: #fff;
  border: none;
  box-shadow: 0 6px 16px rgba(255, 126, 95, 0.35);
}

/* Bundle-#9 (B): Cancel bleibt dezenter Text-Link — KEIN See-More-Pill
 * (erbt sonst den neuen Button-Look). */
.sf-detail-view .sf-detail-bookbar .sf-detail-cancel {
  background: none;
  border: none;
  box-shadow: none;
  color: var(--sf-muted);
  font-weight: 400;
  letter-spacing: normal;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 4px;
  min-height: 0;
}

.sf-detail-view .sf-detail-bookbar .sf-detail-cancel:hover {
  background: none;
  color: var(--sf-danger);
  border: none;
}

/* ============================================================
   Bundle #7 (A): Overlay-Header (Logo + MenuBar) im Service-Popup
   ============================================================ */
.sf-hub-shell .sf-overlay-header {
  flex: 0 0 auto;
  background: var(--sf-paper, #fffdf8);
  border-bottom: 1px solid var(--sf-line, #ece5d8);
  padding: 10px 18px;
}

.sf-hub-shell .sf-overlay-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  max-width: 1080px;
  margin: 0 auto;
}

.sf-overlay-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.sf-overlay-logo img {
  height: 40px;
  width: auto;
  display: block;
}

.sf-overlay-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
}

.sf-overlay-nav a {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sf-ink, #2d2a24);
  text-decoration: none;
  white-space: nowrap;
  padding: 4px 2px;
}

.sf-overlay-nav a:hover {
  color: var(--sf-coral-text, #c0501e); /* Bundle-#9 (C) */
}

.sf-overlay-contact {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--sf-ink, #2d2a24);
  text-decoration: none;
  white-space: nowrap;
}

.sf-overlay-contact:hover {
  color: var(--sf-coral-text, #c0501e); /* Bundle-#9 (C) */
}

/* Scrollbarer Body unter dem fixen Overlay-Header */
.sf-hub-shell .sf-overlay-body {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  /* Bundle-#10 (D): prevent document-scroll on mobile. Wenn der Body
   * scrollt, soll der window NICHT scrollen. */
  overscroll-behavior: contain;
}

.sf-hub-shell .sf-overlay-body > * {
  width: 100%;
}

@media (max-width: 640px) {
  .sf-hub-shell .sf-overlay-header {
    padding: 8px 14px;
  }

  .sf-overlay-logo img {
    height: 32px;
  }

  .sf-overlay-nav {
    gap: 10px;
  }

  .sf-overlay-nav a {
    font-size: 10px;
    letter-spacing: 0.1em;
  }

  .sf-overlay-contact {
    display: none; /* mobile: Platz sparen, Tel-Link via Nav Contact erreichbar */
  }
}

/* ============================================================
   Bundle #7 (C): Radio-Cards (Ja/Nein-Wünsche)
   ============================================================ */
.sf-radio-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
}

.sf-radio-card {
  appearance: none;
  border: 1.5px solid var(--sf-line, #ece5d8);
  background: var(--sf-paper, #fffdf8);
  border-radius: 14px;
  padding: 18px 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--sf-ink, #2d2a24);
  cursor: pointer;
  text-align: center;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sf-radio-card:hover {
  border-color: var(--sf-coral, #ff7e5f);
}

.sf-radio-card.is-selected {
  border-color: var(--sf-coral, #ff7e5f);
  box-shadow: 0 0 0 3px rgba(255, 126, 95, 0.18);
  background: rgba(255, 126, 95, 0.06);
}

@media (max-width: 640px) {
  .sf-radio-cards {
    gap: 10px;
  }

  .sf-radio-card {
    min-height: 64px;
    font-size: 14px;
    padding: 14px 10px;
  }
}


/* Bundle-#10 (G): Pool + Beach-Access Badges im Detail-View */
.sf-detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 16px;
}

.sf-detail-badges .sf-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  background: var(--sf-paper, #fffdf8);
  border: 1.5px solid var(--sf-coral, #ff7e5f);
  color: var(--sf-coral-text, #c0501e);
  line-height: 1;
}

.sf-detail-badges .sf-badge-pool {
  border-color: var(--sf-coral, #ff7e5f);
}

.sf-detail-badges .sf-badge-beach {
  border-color: #3a7d8c;
  color: #1f4d57;
}
