.googleMapsConsent {
    min-height: clamp(320px, 50vh, 620px);
    background-color: #fff;
    isolation: isolate;
}

.googleMapsConsent-preview {
    z-index: 0;
}

.googleMapsConsent-preview img {
    display: block;
}

.googleMapsConsent-preview::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.googleMapsConsent-overlay {
    z-index: 3;
}

.googleMapsConsent-box {
    max-width: 420px;
    box-shadow: 0 1.25rem 3rem rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.googleMapsConsent-title {
    line-height: 1.2;
}

.googleMapsConsent-text {
    font-size: 0.95rem;
    line-height: 1.5;
}

.googleMapsConsent-actions {
    justify-content: center;
}

/*
 * Nur die JS-Map stylen.
 * Nicht .googlemap global anfassen, damit iframe-Maps auf anderen Seiten nicht kaputtgehen.
 */
.js-dd-sparrow-google-map {
    position: relative;
    z-index: 1;
    min-height: inherit;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.js-dd-sparrow-google-map.is-loaded {
    opacity: 1;
    pointer-events: auto;
}

/* Wichtig: Overlay und Vorschaubild ausblenden, sobald JS den Wrapper auf is-loaded setzt */
.googleMapsConsent.is-loaded .googleMapsConsent-preview,
.googleMapsConsent.is-loaded .googleMapsConsent-overlay {
    display: none !important;
}

.googleMapsConsent.is-loading .googleMapsConsent-box {
    opacity: 0.75;
}

.googleMapsConsent.is-loading .js-dd-sparrow-google-map-accept::after {
    content: " …";
}

.googleMapsConsent.has-error .googleMapsConsent-box {
    opacity: 1;
    background-color: rgba(120, 0, 0, 0.75) !important;
}

.dd-map-infowindow {
    font-size: 14px;
    line-height: 1.4;
    color: #1f2937;
}

.dd-map-infowindow strong {
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
    text-transform: uppercase;
}

.dd-map-infowindow span {
    display: block;
}