/* P1 Direktanfrage (Stand 17.11.2026, QA-Revision 2) – Aktionshinweise Chaletseiten und /buchen/, Kontaktleiste Aktionsseiten,
   Buchen-Hinweis. Nutzt vorhandene Komponenten: campaign-offers-2026.js (data-campaign-*), .mobile-contact-bar, conversion-v2.js.
   Rabatt nur innerhalb der Aktionsbedingungen (Buchungsfrist, Aufenthaltszeitraum, Mindestaufenthalt) – kein genereller Direktbucherrabatt. */
.p1d { margin: 1.1rem 0 0; padding: 1rem 1.1rem 1.05rem; border: 1px solid rgba(201, 164, 92, .55); border-radius: 16px;
  background: linear-gradient(180deg, #fffaf0, #f7efdf); color: #2b2112; text-align: left; }
.p1d[hidden] { display: none !important; }
.p1d__title { margin: 0 0 .6rem; font-weight: 800; font-size: 1rem; line-height: 1.3; }
.p1d__offers { display: grid; gap: .7rem; margin: 0; padding: 0; list-style: none; }
.p1d__offers li[hidden] { display: none !important; }
.p1d__offer { padding: .75rem .8rem .8rem; border: 1px solid rgba(201, 164, 92, .5); border-left: 5px solid #c9a45c; border-radius: 12px; background: #fff; }
.p1d__offer.p1d__spring { border-color: rgba(85, 112, 74, .45); border-left-color: #55704a; }
.p1d__link { display: block; color: #1b1408; text-decoration: none; line-height: 1.3; font-size: .92rem; }
.p1d__link b { display: block; font-size: 1.02rem; }
.p1d__link:hover b { text-decoration: underline; }
.p1d__facts { margin: .45rem 0 0; padding: 0; list-style: none; font-size: .86rem; line-height: 1.45; color: #3f3427; }
.p1d__facts li { margin: 0; }
.p1d a:focus-visible { outline: 3px solid #2b2112; outline-offset: 2px; }
.p1d__terms, .p1d__alt, .p1d__note { margin: .5rem 0 0; font-size: .86rem; line-height: 1.45; color: #3f3427; }
.p1d__terms a, .p1d__alt a, .p1d__note a { font-weight: 700; color: inherit; }
.p1d a[href^="tel:"] { white-space: nowrap; }
.p1d .p1d__wa { display: flex; align-items: center; justify-content: center; gap: .5rem; width: 100%; min-height: 48px; margin: .65rem 0 0;
  padding: .65rem 1rem; border: 0; border-radius: 999px; background: #1f6b45; color: #fff; font-weight: 800; font-size: 1rem;
  text-decoration: none; text-align: center; line-height: 1.2; box-shadow: 0 6px 16px rgba(31, 107, 69, .22); }
.p1d .p1d__wa:hover { background: #185a39; }
.p1d .p1d__wa svg { width: 1.2em; height: 1.2em; flex: none; }
.p1d__note { color: #5b4d3d; font-size: .84rem; }
.p1d--buchen { max-width: 760px; margin: 1rem auto 0; }

/* Aktionsseiten nach Ablauf der Buchungsfrist (Status "ended" am Artikel, gesetzt von campaign-offers-2026.js):
   Aktions-Anfragebuttons (WhatsApp/E-Mail mit eingetragener Aktion) ausblenden, stattdessen reguläre Anfrage ohne Rabatt.
   Ohne JavaScript bzw. waehrend der Aktion bleibt alles wie bisher; die regulären Buttons sind dann ausgeblendet. */
.cmp26-page[data-campaign-state="ended"] a[data-track-target$="_whatsapp"],
.cmp26-page[data-campaign-state="ended"] a[data-track-target$="_email"] { display: none !important; }
.cmp26-page:not([data-campaign-state="ended"]) a.p1-reg { display: none !important; }

/* Mobile Kontaktleiste: Zusatzzeilen */
.mobile-contact-bar small.p1-sub { display: block; font-size: .68rem; font-weight: 700; opacity: .9; line-height: 1.1; white-space: nowrap; }
.mobile-contact-bar small.p1-sub[hidden] { display: none !important; }
.mobile-contact-bar .p1-lbl { display: inline-flex; flex-direction: column; align-items: flex-start; }
.mobile-contact-bar .mcb-book .p1-lbl { align-items: center; text-align: center; }

@media (max-width: 759px) {
  /* Aktionsseiten: Leiste nur waehrend die Aktion buchbar ist (Status "active" aus campaign-offers-2026.js); nach Fristende bzw.
     ohne JavaScript bleibt es beim bisherigen Verhalten (Leiste ausgeblendet). Ausblendfaelle Consent, Kontaktformular, Schnellanfrage bleiben. */
  body:has(.cmp26-page):not(.v2-consent-open):not(:has(#wolfsteiner-contact-form)):not(:has(.bq:focus-within)) .mobile-contact-bar.mcb-p1:has(> .mcb-wa .p1-sub[data-campaign-state="active"]) { display: grid !important; grid-template-columns: 1fr 1fr; }
  /* Massgeblich ist nur der Zusatz am WhatsApp-Segment (nicht der Buchen-Hinweis, der am Last Christmas Deal haengt). */
  /* Das Buchen-Segment bleibt auf Aktionsseiten wie bisher ausgeblendet (campaign-2026.css) - daher zwei Spalten. */
  .p1d { padding: .9rem .85rem 1rem; }
  .p1d__offer { padding: .7rem .7rem .75rem; }
}
/* QA-Fix 375 px: Auf den Chaletseiten (Georgia fett) braucht "WhatsApp" inkl. Icon ~120 px, die Spalte 1fr bei 375 px nur ~104 px
   -> Text lief in den Innenabstand und wurde abgeschnitten. Unter 430 px erhalten WhatsApp und Anrufen ihre Inhaltsbreite,
   Buchen den Rest (Zusatz "ohne Aktionsrabatt" etwas kleiner; erst unter ~370 px zweizeilig). Leistenhoehe 52 px bleibt ab 375 px. */
@media (max-width: 429px) {
  .mobile-contact-bar:not(.mcb-p1) { grid-template-columns: auto auto minmax(0, 1fr); }
  .mobile-contact-bar:not(.mcb-p1) > a.mcb-wa, .mobile-contact-bar:not(.mcb-p1) > a.mcb-tel { padding-left: .55rem; padding-right: .55rem; }
  .mobile-contact-bar:not(.mcb-p1) > a.mcb-book { padding-left: .4rem; padding-right: .4rem; }
  .mobile-contact-bar:not(.mcb-p1) .mcb-book small.p1-sub { white-space: normal; font-size: .62rem; }
}
@media (max-width: 340px) {
  .mobile-contact-bar small.p1-sub { font-size: .62rem; }
}
