/* =========================================================
   INTERAKTIVE STANDORTKARTE
   ========================================================= */

.ka-location-map-section {
    position: relative;
    overflow: hidden;
    padding: 115px 0;
    background: #171717;
    color: #ffffff;
}

.ka-location-map-section::before {
    content: "";
    position: absolute;
    top: -280px;
    right: -220px;
    width: 650px;
    height: 650px;
    border: 1px solid rgba(245, 149, 0, 0.18);
    border-radius: 50%;
    pointer-events: none;
}

.ka-location-map-section .container {
    position: relative;
    z-index: 2;
}

.ka-location-map-heading {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(290px, 430px);
    gap: 70px;
    align-items: end;
    margin-bottom: 52px;
}

.ka-location-map-heading .section-label {
    color: #f59500;
}

.ka-location-map-heading h2 {
    max-width: 760px;
    margin: 0;
    color: #ffffff;
    font-size: clamp(38px, 4.6vw, 62px);
    line-height: 1.08;
}

.ka-location-map-heading > p {
    margin: 0;
    color: rgba(255, 255, 255, 0.66);
    line-height: 1.75;
}

.ka-location-map-layout {
    display: grid;
    grid-template-columns:
        minmax(0, 1.55fr)
        minmax(310px, 0.72fr);
    gap: 22px;
    align-items: stretch;
}

.ka-location-map-wrapper {
    position: relative;
    min-width: 0;
    min-height: 620px;
    background: #252525;
    border: 1px solid rgba(255, 255, 255, 0.11);
}

.ka-location-map {
    width: 100%;
    height: 100%;
    min-height: 620px;
    background: #dedbd2;
}

.ka-location-map-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.ka-location-map-button {
    width: 100%;
    display: grid;
    grid-template-columns:
        42px
        minmax(0, 1fr)
        24px;
    gap: 15px;
    align-items: center;
    padding: 18px 19px;
    color: #ffffff;
    text-align: left;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.10);
    cursor: pointer;
    appearance: none;
    transition:
        background 180ms ease,
        border-color 180ms ease,
        transform 180ms ease;
}

.ka-location-map-button:hover,
.ka-location-map-button:focus-visible,
.ka-location-map-button.is-active {
    background: rgba(245, 149, 0, 0.13);
    border-color: rgba(245, 149, 0, 0.65);
    transform: translateX(-4px);
}

.ka-location-map-button:focus-visible {
    outline: 2px solid #f59500;
    outline-offset: 3px;
}

.ka-location-map-number {
    color: #f59500;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.ka-location-map-button-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.ka-location-map-button-content small {
    margin-bottom: 3px;
    color: rgba(255, 255, 255, 0.45);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.ka-location-map-button-content strong {
    color: #ffffff;
    font-size: 18px;
    line-height: 1.25;
}

.ka-location-map-button-content > span {
    margin-top: 4px;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.58);
    font-size: 12px;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ka-location-map-arrow {
    color: #f59500;
    font-size: 19px;
    transition: transform 180ms ease;
}

.ka-location-map-button:hover
.ka-location-map-arrow,
.ka-location-map-button.is-active
.ka-location-map-arrow {
    transform: translateX(4px);
}

.ka-location-map-privacy {
    max-width: 900px;
    margin: 23px 0 0;
    color: rgba(255, 255, 255, 0.45);
    font-size: 12px;
    line-height: 1.65;
}

/* Eigener orangefarbener Marker */

.ka-map-marker-wrapper {
    background: transparent;
    border: 0;
}

.ka-map-marker {
    position: relative;
    width: 38px;
    height: 38px;
    display: block;
    background: #f59500;
    border: 4px solid #ffffff;
    border-radius: 50% 50% 50% 0;
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.34);
    transform: rotate(-45deg);
}

.ka-map-marker-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 9px;
    height: 9px;
    background: #252525;
    border-radius: 50%;
    transform:
        translate(-50%, -50%)
        rotate(45deg);
}

/* Leaflet-Anpassungen */

.ka-location-map .leaflet-control-zoom {
    border: 0;
    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.18);
}

.ka-location-map
.leaflet-control-zoom a {
    color: #252525;
    background: #ffffff;
    border-color: #e5e5e5;
}

.ka-location-map
.leaflet-control-zoom a:hover {
    color: #111111;
    background: #f59500;
}

.ka-location-map
.leaflet-control-attribution {
    padding: 3px 7px;
    color: #555555;
    background: rgba(255, 255, 255, 0.88);
    font-size: 9px;
}

.ka-location-map
.leaflet-control-attribution a {
    color: #333333;
    text-decoration: underline;
}

.ka-location-map
.leaflet-popup-content-wrapper {
    padding: 0;
    border-radius: 0;
    box-shadow:
        0 20px 55px rgba(0, 0, 0, 0.22);
}

.ka-location-map
.leaflet-popup-content {
    width: auto !important;
    margin: 0;
}

.ka-location-map
.leaflet-popup-tip {
    background: #ffffff;
}

.ka-map-popup {
    min-width: 270px;
    padding: 25px;
    color: #333333;
}

.ka-map-popup-region {
    margin: 0 0 6px;
    color: #f59500;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.ka-map-popup h3 {
    margin: 0 0 14px;
    color: #252525;
    font-size: 25px;
    line-height: 1.15;
}

.ka-map-popup address {
    margin: 0 0 14px;
    color: #666666;
    font-style: normal;
    line-height: 1.55;
}

.ka-map-popup-phone {
    display: inline-flex;
    margin-bottom: 20px;
    color: #252525;
    font-weight: 700;
}

.ka-map-popup-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 15px;
    padding-top: 17px;
    border-top: 1px solid #e7e7e7;
}

.ka-map-popup-actions a {
    color: #252525;
    font-size: 12px;
    font-weight: 700;
    border-bottom: 2px solid #f59500;
}

.ka-location-map-noscript {
    padding: 30px;
    color: #ffffff;
    background: #333333;
    border-left: 4px solid #f59500;
}

@media (max-width: 1100px) {
    .ka-location-map-heading {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .ka-location-map-layout {
        grid-template-columns: 1fr;
    }

    .ka-location-map-wrapper,
    .ka-location-map {
        min-height: 550px;
    }

    .ka-location-map-list {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .ka-location-map-section {
        padding: 80px 0;
    }

    .ka-location-map-wrapper,
    .ka-location-map {
        min-height: 460px;
    }

    .ka-location-map-list {
        grid-template-columns: 1fr;
    }

    .ka-location-map-button {
        padding: 17px;
    }

    .ka-location-map-button:hover,
    .ka-location-map-button:focus-visible,
    .ka-location-map-button.is-active {
        transform: none;
    }

    .ka-map-popup {
        min-width: 220px;
        padding: 21px;
    }
}

/* KA_MAP_CONTACT_START */

.ka-map-popup-contact {
    display: grid;
    gap: 9px;
    margin: 0 0 21px;
}

.ka-map-popup-contact > div {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 12px;
    align-items: baseline;
}

.ka-map-popup-contact dt {
    color: #888888;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.ka-map-popup-contact dd {
    margin: 0;
    color: #252525;
    font-size: 14px;
    font-weight: 700;
}

.ka-map-popup-contact a {
    color: #252525;
    text-decoration: none;
}

.ka-map-popup-contact a:hover {
    color: #f59500;
}

.ka-map-popup-actions {
    align-items: center;
}

.ka-map-popup-actions .ka-map-popup-primary {
    padding: 9px 13px;
    color: #111111;
    background: #f59500;
    border-bottom: 0;
}

.ka-map-popup-actions .ka-map-popup-primary:hover {
    background: #ffad2e;
}

/* KA_MAP_CONTACT_END */
