/* A still map view on portrait phones; page scrolling remains available. */
@media (max-width: 599px) and (orientation: portrait) {
  .contact-page-content .contact-map-wrapper { touch-action: auto; }
  .contact-page-content .contact-map-wrapper .advanced-map,
  .contact-page-content .contact-map-wrapper .advanced-map * {
    pointer-events: none !important;
    touch-action: auto !important;
    cursor: default !important;
    animation: none !important;
    transition: none !important;
  }
}

.contact-page-content .contact-map-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-page-content .contact-map-title {
  margin: 0;
  text-align: center;
  opacity: .5;
}

.contact-page-content .contact-map-column .contact-map-wrapper {
  flex: 1 1 0;
  height: auto;
}

/* Intro and map above a full-width, proportionally scaled contact window. */
:root body main > .contact-page-content {
 display:grid;
 grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);
 grid-template-areas:"intro map" "form form";
 gap:44px 36px;
 max-width:1152px;
 margin-inline:auto;
}
:root body .contact-page-content > .max-w-site { grid-area:intro; width:100%; align-self:center; }
:root body .contact-page-content > .contact-content { display:contents!important; }
:root body .contact-page-content .contact-map-column {
 grid-area:map; contain:none; height:auto!important; min-height:0; aspect-ratio:auto;
 display:flex; flex-direction:column; gap:16px;
}
:root body .contact-page-content .contact-map-column .contact-map-wrapper {
 order:0; width:100%; height:280px; flex:none;
}
:root body .contact-page-content .contact-map-column .contact-map-title { order:1; margin:0; }
:root body .contact-page-content .contact-form-wrapper {
 grid-area:form; width:100%; height:auto;
 container-type:inline-size; --contact-reference-unit:1cqw;
}
:root body :is(.home-hero,#wie-ben-ik,#specialismen,.contact-page-content).contact-page-content .contact-form-wrapper .contact-reference-form {
 height:auto!important; min-height:0!important; aspect-ratio:2047/1038;
}
@media(max-width:700px) {
 :root body main > .contact-page-content { grid-template-columns:minmax(0,1fr); grid-template-areas:"intro" "map" "form"; gap:32px; }
 :root body .contact-page-content .contact-map-column .contact-map-wrapper {height:300px;}
}

/* The copy defines the shared row height; its caption has a separate row. */
:root body main > .contact-page-content {
 grid-template-areas:"intro map" ". caption" "form form";
 row-gap:16px;
 align-items:stretch;
}
:root body .contact-page-content > .max-w-site { align-self:stretch; }
:root body .contact-page-content > .max-w-site > .text-left { display:flex; flex-direction:column; }
:root body .contact-page-content .contact-page-title:not(.contact-map-title) { margin:0 0 24px; }
:root body .contact-page-content .contact-page-intro { margin:0!important; }
:root body .contact-page-content .contact-map-column { display:contents; }
:root body .contact-page-content .contact-map-column .contact-map-wrapper {
 grid-area:map;
 height:100%!important;
 min-height:0;
 contain:size;
 align-self:stretch;
}
:root body .contact-page-content .contact-map-column .contact-map-title {
 grid-area:caption;
 font-size:18px!important;
 font-weight:500!important;
 line-height:1.5!important;
 letter-spacing:normal!important;
 text-transform:none!important;
 margin:0!important;
}
:root body .contact-page-content .contact-form-wrapper { margin-top:28px; }
@media(max-width:700px) {
 :root body main > .contact-page-content { grid-template-areas:"intro" "map" "caption" "form"; row-gap:16px; }
 :root body .contact-page-content .contact-map-column .contact-map-wrapper { height:clamp(240px,70vw,360px)!important; }
 :root body .contact-page-content > .max-w-site { margin-bottom:8px; }
}
:root body :is(.home-hero,#wie-ben-ik,#specialismen,.contact-page-content).contact-page-content .contact-map-column .contact-map-title {
 font-size:18px!important;
 font-weight:500!important;
 line-height:1.5!important;
 letter-spacing:normal!important;
 text-transform:none!important;
}

:root body :is(.home-hero,#wie-ben-ik,#specialismen,.contact-page-content).contact-page-content .contact-map-column .contact-map-title { text-align:left!important;font-family:var(--font-sans)!important;font-weight:300!important; }
.contact-page-content .contact-map-wrapper .advanced-map,
.contact-page-content .contact-map-wrapper .advanced-map * {pointer-events:none!important;touch-action:auto!important;cursor:default!important}
.contact-page-content .advanced-map-marker svg{display:block;width:28px;height:38px;overflow:visible;filter:drop-shadow(0 3px 4px rgba(0,0,0,.2))}

/* Equal desktop columns: the paragraph alone determines the map's height. */
:root body main > .contact-page-content {
 grid-template-columns:repeat(2,minmax(0,1fr));
 grid-template-areas:"heading heading" "intro map" ". caption" "form form";
}
:root body .contact-page-content > .max-w-site,
:root body .contact-page-content > .max-w-site > .text-left { display:contents; }
:root body .contact-page-content > .max-w-site > .text-left > .contact-page-title {
 grid-area:heading; margin:0 0 8px;
}
:root body .contact-page-content .contact-page-intro { grid-area:intro; align-self:start; }
:root body .contact-page-content .contact-map-column .contact-map-title {
 color:#000000!important; opacity:1!important;
}
@media(max-width:700px){
 :root body main > .contact-page-content {
  grid-template-columns:minmax(0,1fr);
  grid-template-areas:"heading" "intro" "map" "caption" "form";
 }
}
