/* Site-level additions: replaces the removed gdpr-plugin/popup-overlay CSS and
   adds the accessibility helpers used by the layout. */

/* --- GDPR consent block (contact form) --------------------------------- */
.gdpr-block {
  display: block;
  margin-bottom: 1rem;
}

.gdpr-block .form-check-input {
  margin-right: 0.5rem;
}

.gdpr-block .textGDPR {
  font-size: 0.9rem;
  line-height: 1.4;
}

/* --- Skip link ---------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10000;
  padding: 0.75rem 1.25rem;
  background: #ffffff;
  color: #111111;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 0.5rem 0;
}

.skip-link:focus {
  left: 0;
  outline: 3px solid #0a58ca;
  outline-offset: 2px;
}

/* --- Visible keyboard focus -------------------------------------------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #0a58ca;
  outline-offset: 2px;
}

/* --- Inline SVG icons replacing the icon54/material icon fonts ---------- */
.mbr-iconsvg {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
  fill: currentColor;
}

/* --- Google Maps click-to-load facade ---------------------------------- */
/* The embed is only inserted after an explicit click, so no third-party
   cookies are set on page load. */
.map-consent {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  height: 500px;
  padding: 2rem;
  text-align: center;
  background: #eef2f7;
  border: 1px solid #dde5ef;
  border-radius: 30px;
}

.map-consent-text {
  max-width: 32rem;
  margin: 0;
  color: #1d2f45;
}

.map-consent-link {
  color: #0068b4;
}

.google-map iframe {
  width: 100%;
  height: 500px;
  border: 0;
}

@media (max-width: 992px) {
  .map-consent,
  .google-map iframe {
    height: 350px;
    border-radius: 20px;
  }
}

/* --- YouTube click-to-load facade -------------------------------------- */
.video-consent {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 15px;
  background: #000000;
}

.video-consent img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-consent-btn {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.35);
  border: 0;
  color: #ffffff;
  cursor: pointer;
}

.video-consent-play {
  width: 68px;
  height: 48px;
  border-radius: 12px;
  background: #0068b4;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  position: relative;
}

.video-consent-play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 10px 0 10px 17px;
  border-color: transparent transparent transparent #ffffff;
}

.video-consent-hint {
  max-width: 26rem;
  font-size: 0.9rem;
  line-height: 1.35;
}

.video-consent iframe,
.video-consent-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 15px;
}

/* --- Layout stability --------------------------------------------------- */
img,
video {
  max-width: 100%;
  height: auto;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
