/* B&W Tourplanung: Popups des Themes öffnen und schließen wie bei Kostbaar (Kostbaar Routing 1.9.14).
   Läuft auf allen Seiten, auch ohne Buchungstool (Startseite: Tourdaten). Siehe popup.js, popupFix. */
/* Flüssig öffnen und schließen (Klasse buw-popup auf html). Eigene dunkle Ebene, damit sie ein- und ausblenden kann. */
.buw-laag{position:fixed;top:0;right:0;bottom:0;left:0;z-index:999;background:rgba(18,33,59,.5);opacity:0;visibility:hidden;pointer-events:none;transition:opacity .28s ease,visibility 0s linear .28s}
html.buw-popup body.popup-active:before{display:none}
html.buw-popup body.popup-active>.buw-laag{opacity:1;visibility:visible;pointer-events:auto;transition:opacity .28s ease,visibility 0s}
html.buw-popup.buw-sluit body.popup-active>.buw-laag{opacity:0;pointer-events:none}
/* Schließen: Paneel und Ebene laufen gleich und sind in 0,28 Sekunden fertig. */
html.buw-popup.buw-sluit .single-product-popup.form-active{transform:translateX(102%)!important;transition:transform .28s cubic-bezier(.4,0,1,1)!important}
/* Öffnen ohne Wartezeit: erst außerhalb bereitstellen, dann sofort einschieben. */
html.buw-popup.buw-opent .single-product-popup.form-active{transform:translateX(100%)!important;transition:none!important}
html.buw-popup.buw-opent.buw-opent-ga .single-product-popup.form-active{transform:none!important;transition:transform .3s cubic-bezier(.2,.7,.2,1)!important}
/* Das offene Formular bleibt stehen, auch wenn das Theme nach 3 Sekunden seine Formulare noch einmal ausblendet. */
html.buw-popup .single-product-popup.form-active .form-component-wrapper.buw-actief{display:block!important;opacity:1!important}
html.buw-popup .single-product-popup.form-active .popup-content{display:none!important}
/* Tourdaten: die Liste füllt die Höhe des Popups und scrollt in sich (Theme: Flexbox). */
html.buw-popup .single-product-popup.form-active .form-component-wrapper.calendar-list-form.buw-actief{display:flex!important}
/* Vom Buchungstool zu den Tourdaten: ruhig einblenden. */
.single-product-popup .form-component-wrapper.buw-rein{animation:buw-rein .22s ease-out}
@keyframes buw-rein{from{opacity:0;transform:translateX(18px)}to{opacity:1;transform:none}}
@media (max-width:767px){@keyframes buw-rein{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}}
@media (max-width:767px){
html.buw-popup.buw-sluit .single-product-popup.form-active{transform:translateY(102%)!important}
html.buw-popup.buw-opent:not(.buw-opent-ga) .single-product-popup.form-active{transform:translateY(100%)!important}
}
/* Computer: das Paneel schiebt nur waagerecht (seitlich über translate mit Animation, die Höhe über transform ohne). */
@supports (translate:100% 0){
@media (min-width:768px){
html.buw-popup .single-product-popup{transform:translateY(-50%)!important;translate:100% 0;transition:translate .4s ease-in-out,background-color .3s ease-in-out,clip-path .3s ease-in-out!important}
html.buw-popup .single-product-popup.show-popup{translate:0 0}
html.buw-popup .single-product-popup.form-active,html.buw-popup.buw-sluit .single-product-popup.form-active,html.buw-popup.buw-opent .single-product-popup.form-active{transform:none!important;translate:0 0}
html.buw-popup.buw-sluit .single-product-popup.form-active{translate:102% 0;transition:translate .28s cubic-bezier(.4,0,1,1)!important}
html.buw-popup.buw-opent .single-product-popup.form-active{translate:100% 0;transition:none!important}
html.buw-popup.buw-opent.buw-opent-ga .single-product-popup.form-active{transform:none!important;translate:0 0;transition:translate .3s cubic-bezier(.2,.7,.2,1)!important}
}
}
/* Telefon: das Popup füllt den Bildschirm; der Hintergrund dahinter bekommt dieselbe helle Farbe. */
@media (max-width:620px){
html.buw-popup .buw-laag{bottom:-140px;background:#FFF5EE}
html.buw-popup.buw-vol,html.buw-popup.buw-vol body{background-color:#FFF5EE!important}
}
html.buw-popup .single-product-popup.form-active{clip-path:none!important}
/* Computer: Schiebeleiste bleibt stehen (siehe popup.js). Das Theme rückt Seite und Kopfzeile um ihre Breite ein: hier nicht nötig. */
html.buw-popup{scrollbar-gutter:stable}
@media (min-width:768px) and (pointer:fine){
html.buw-popup body.popup-active{overflow-y:visible!important;padding-right:0!important}
html.buw-popup body.popup-active .main-header{padding-right:0!important}
}
html.buw-popup.buw-stil .single-product-popup{transition:none!important}
html.buw-popup body.admin-bar .single-product-popup.form-active{top:var(--buw-ab,32px)!important}
@media (max-width:767px){
html.buw-popup .single-product-popup.form-active{bottom:0!important;height:auto!important}
html body.popup-active #contact-labels-wrapper{right:auto}
#contact-labels-wrapper .contact-label{flex-shrink:0}
}
.buw-rand{position:fixed;left:0;right:0;bottom:0;height:12px;z-index:2147483000;background-color:#FFF5EE;pointer-events:none}
@media (min-width:621px){.buw-rand{display:none}}
/* iPhone: Safaris Knöpfe liegen über der Unterkante des Popups. Unten so viel Platz, dass der letzte Knopf darüber steht.
   Buchungstool: es misst selbst, was fehlt (--bw-onder); 230 Punkte wie bei Kostbaar waren dort zu viel Leerraum. */
@media (max-width:767px){
html.buw-popup.buw-ios .single-product-popup.form-active{padding-bottom:230px!important}
html.buw-popup.buw-ios .single-product-popup.form-active.bw-tool{padding-bottom:96px!important}
/* Tourdaten: das Scrollfeld nutzt die ganze Höhe des Bildschirms; die Ruhe unten sitzt im Feld selbst, damit der letzte Eintrag über Safaris Leiste passt. */
html.buw-popup.buw-kal .single-product-popup.form-active{padding-bottom:0!important}
html.buw-popup.buw-kal .single-product-popup.form-active .calendar-popup .custom-calendar-list-container{padding-bottom:calc(env(safe-area-inset-bottom,0px) + 96px)}
}
/* Tourdaten: Kopf wie beim Buchungstool (Titel oben neben dem Kreuz, gleiche Größe, Zeile "B&W ON TOUR" darunter). */
html.buw-popup.buw-kal .single-product-popup.form-active{padding-top:18px!important}
html.buw-popup.buw-kal .single-product-popup.form-active .close-button{top:20px}
html.buw-popup.buw-kal .single-product-popup.form-active .form-component-wrapper.calendar-list-form{padding-top:0}
html.buw-popup.buw-kal .single-product-popup.form-active .calendar-popup .section-content-wrapper{display:flex;flex-direction:column;margin:0;padding-top:0;padding-bottom:0}
html.buw-popup.buw-kal .single-product-popup.form-active .calendar-popup .section-title{order:1;display:block;margin:0;font-size:30px;line-height:1.15;text-wrap:balance}
html.buw-popup.buw-kal .single-product-popup.form-active .calendar-popup .section-subtitle{order:2;display:flex;align-items:center;gap:6px;margin:8px 0 10px;padding:0;font-size:16px;font-weight:500;line-height:1.2}
html.buw-popup.buw-kal .single-product-popup.form-active .calendar-popup .section-description{order:3}
html.buw-popup.buw-kal .single-product-popup.form-active .calendar-popup .calendar-scroll-container{margin-top:14px}
@media (max-width:767px){
html.buw-popup.buw-kal .single-product-popup.form-active{padding-top:16px!important}
html.buw-popup.buw-kal .single-product-popup.form-active .close-button{top:18px}
html.buw-popup.buw-kal .single-product-popup.form-active .calendar-popup .section-title{font-size:clamp(20px,5.8vw,24px)}
html.buw-popup.buw-kal .single-product-popup.form-active .calendar-popup .calendar-scroll-container{margin-top:12px}
}
@media (prefers-reduced-motion:reduce){
.single-product-popup .form-component-wrapper.buw-rein{animation:none}
.buw-laag,html.buw-popup.buw-sluit .single-product-popup.form-active,html.buw-popup.buw-opent.buw-opent-ga .single-product-popup.form-active{transition-duration:.01s!important}
}


/* Ist das Popup nicht offen, bleibt kein Formular sichtbar (das Theme blendet es nach dem Schließen noch aus). */
html.buw-popup .single-product-popup:not(.form-active) .form-component-wrapper{display:none!important}

/* Zurück aus dem Buchungstool zu den Tourdaten (Popup, Standort aus der Liste). */
.single-product-popup .buw-terug{display:inline-block;margin:10px 0 0;padding:6px 0;border:0;background:none;color:#12213B;font:inherit;font-size:16px;font-weight:500;line-height:1.2;cursor:pointer;text-decoration:none;-webkit-tap-highlight-color:transparent}
.single-product-popup .buw-terug:hover{color:#ec6523}
.single-product-popup .buw-terug:focus-visible{outline:2px solid #ec6523;outline-offset:2px}
