/* Keep contact content legible independently of the panorama and tour theme. */
#viewtour_body #kontaktBox.commonnew_box {
    background:#F8F5EF !important;
    color:#1B1A18 !important;
    opacity:1 !important;
    box-shadow:4px 0 28px #0003;
    border:1px solid #C9BFAF;
}
#viewtour_body #kontaktBox .modal-body { padding:28px 24px !important; color:#1B1A18 !important; }
#viewtour_body #kontaktBox .modal-title { color:#1B1A18 !important; text-align:left !important; font-size:24px !important; line-height:1.3; margin:0 0 24px; padding-right:32px; }
#viewtour_body #kontaktBox .kontakttext,
#viewtour_body #kontaktBox .kontakttext :is(p,span,strong,b,em,li,h1,h2,h3,h4,div) { color:#1B1A18 !important; background:transparent !important; line-height:1.6; }
#viewtour_body #kontaktBox .kontakttext { font-size:16px; overflow-wrap:anywhere; }
#viewtour_body #kontaktBox .modal-body img { width:auto; max-width:100% !important; max-height:240px; height:auto !important; object-fit:contain; border-radius:8px; margin:0 auto 20px !important; }
#viewtour_body #kontaktBox .modal-body a { color:#7E3D27 !important; text-decoration:underline; overflow-wrap:anywhere; }
#viewtour_body #kontaktBox > .close { color:#1B1A18 !important; opacity:1 !important; background:#fff !important; border:1px solid #A49785; border-radius:8px; width:36px; height:36px; z-index:2; }
#viewtour_body #kontaktBox > .close::before { color:#1B1A18 !important; }
#viewtour_body #kontaktBox { overflow-x:hidden !important; }
#viewtour_body #kontaktBox > .close { position:absolute !important; top:16px !important; right:16px !important; left:auto !important; font-size:0 !important; }
#viewtour_body #kontaktBox > .close::after { content:'×'; display:block; color:#1B1A18; font:28px/32px Arial,sans-serif; }

#viewtour_body .viewer-contact-entry { position:fixed; left:18px; bottom:54px; z-index:1010; display:inline-flex; align-items:center; gap:8px; min-height:44px; padding:10px 18px; border:1px solid #A49785; border-radius:24px; background:#F8F5EF; color:#1B1A18; box-shadow:0 3px 16px #0003; font:600 15px/22px Arial,sans-serif; cursor:pointer; }
#viewtour_body .viewer-contact-entry:hover { background:#F3DDD4; }
#viewtour_body .viewer-contact-entry:focus-visible { outline:3px solid #A8553B; outline-offset:3px; }

#viewtour_body :is(#impressumBox,#tourInfo).commonnew_box { background:#F8F5EF !important; color:#1B1A18 !important; opacity:1 !important; }
#viewtour_body :is(#impressumBox,#tourInfo) .modal-body { color:#1B1A18 !important; padding:24px !important; }
#viewtour_body :is(#impressumBox,#tourInfo) :is(.impressumtext,.modal-title,.impressumtext p,.impressumtext span,.impressumtext strong) { color:#1B1A18 !important; opacity:1 !important; }
