/* =========================================================
   Elitefins Locations
========================================================= */

:root {
    --sy-locations-orange: #ef6301;
    --sy-locations-orange-hover: #ff7417;
    --sy-locations-orange-ring: #ff8b4a;

    --sy-locations-dark: #061923;
    --sy-locations-dark-label: #0a1c27;

    --sy-locations-white: #ffffff;
    --sy-locations-text: #25343c;
    --sy-locations-muted: #6c7a82;

    --sy-locations-border: rgba(255, 255, 255, 0.14);

    --bg-map:#000000;
}



[data-theme="dark"] {
    --sy-locations-dark: #fff;
    --sy-locations-muted: #fff;

    --bg-map:#061923;
}

/* =========================================================
   Section
========================================================= */

/* =========================================================
   Heller Hintergrund für die Locations-Section
========================================================= */
:root {
    --bg-sy-locations: #f7f8f8;

    --bg-radial-gradient-top:
        radial-gradient(
            circle at 12% 18%,
            rgba(239, 99, 1, 0.05) 0%,
            rgba(239, 99, 1, 0) 30%
        );

    --bg-radial-gradient-bottom:
        radial-gradient(
            circle at 88% 78%,
            rgba(9, 29, 40, 0.045) 0%,
            rgba(9, 29, 40, 0) 34%
        );

    --bg-sy-location-before:
        linear-gradient(
            145deg,
            rgba(226, 222, 215, 0.35),
            rgba(255, 255, 255, 0.05)
        );

    --bg-sy-location-after:
        linear-gradient(
            145deg,
            rgba(235, 232, 226, 0.22),
            rgba(210, 215, 218, 0.38)
        );
}


/* =========================================================
   Dark Mode
========================================================= */

[data-theme="dark"] {
    --bg-sy-locations: #11191f;

    --bg-radial-gradient-top:
        radial-gradient(
            circle at 12% 18%,
            rgba(239, 99, 1, 0.16) 0%,
            rgba(239, 99, 1, 0.06) 16%,
            rgba(239, 99, 1, 0) 34%
        );

    --bg-radial-gradient-bottom:
        radial-gradient(
            circle at 88% 78%,
            rgba(92, 151, 178, 0.12) 0%,
            rgba(92, 151, 178, 0.04) 18%,
            rgba(92, 151, 178, 0) 38%
        );

    --bg-sy-location-before:
        linear-gradient(
            145deg,
            rgba(239, 99, 1, 0.09) 0%,
            rgba(38, 58, 69, 0.18) 55%,
            rgba(17, 25, 31, 0) 100%
        );

    --bg-sy-location-after:
        linear-gradient(
            145deg,
            rgba(39, 65, 78, 0.28) 0%,
            rgba(22, 39, 49, 0.38) 55%,
            rgba(239, 99, 1, 0.06) 100%
        );
}


/* =========================================================
   Locations Section
========================================================= */

.sy-locations {
    position: relative;
    overflow: hidden;
    isolation: isolate;

    padding: clamp(5rem, 9vw, 9rem) 0;

    background:
        var(--bg-radial-gradient-top),
        var(--bg-radial-gradient-bottom),
        var(--bg-sy-locations);
}


/* =========================================================
   Große weiche Fläche oben links
========================================================= */

.sy-locations::before {
    content: "";
    position: absolute;
    z-index: -2;

    top: -18%;
    left: -10%;

    width: 58%;
    height: 52%;

    border-radius: 0 0 70% 0;

    background: var(--bg-sy-location-before);

    transform: rotate(-5deg);
    pointer-events: none;
}


/* =========================================================
   Geschwungene Fläche unten rechts
========================================================= */

.sy-locations::after {
    content: "";
    position: absolute;
    z-index: -2;

    right: -12%;
    bottom: -28%;

    width: 72%;
    height: 58%;

    border-radius: 55% 0 0 0;

    background: var(--bg-sy-location-before);

    transform: rotate(-6deg);
    pointer-events: none;
}


/* =========================================================
   Dezentes Punktemuster
========================================================= */

.sy-locations__background-pattern {
    position: absolute;
    z-index: -1;

    inset: 0;

    pointer-events: none;
}

.sy-locations__background-pattern::before,
.sy-locations__background-pattern::after {
    content: "";
    position: absolute;

    width: 210px;
    height: 210px;

    opacity: 0.35;

    background-image:
        radial-gradient(
            circle,
            rgba(9, 29, 40, 0.15) 1.5px,
            transparent 1.7px
        );

    background-size: 16px 16px;

    mask-image:
        radial-gradient(
            circle,
            #000 0%,
            rgba(0, 0, 0, 0.8) 40%,
            transparent 75%
        );

    -webkit-mask-image:
        radial-gradient(
            circle,
            #000 0%,
            rgba(0, 0, 0, 0.8) 40%,
            transparent 75%
        );
}

.sy-locations__background-pattern::before {
    top: 3rem;
    right: 2rem;
}

.sy-locations__background-pattern::after {
    bottom: 2rem;
    left: 1rem;
}


/* =========================================================
   Optionaler innerer Container
========================================================= */

.sy-locations__inner {
    position: relative;
    z-index: 1;

    border: 1px solid rgba(9, 29, 40, 0.05);
    border-radius: 2rem;

    background: rgba(255, 255, 255, 0.4);

    box-shadow:
        0 2rem 5rem rgba(9, 29, 40, 0.05);

    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}


/* =========================================================
   Responsive Anpassungen
========================================================= */

@media (max-width: 991.98px) {
    .sy-locations {
        padding: 5rem 0;
    }

    .sy-locations::before {
        top: -8%;
        left: -28%;

        width: 95%;
        height: 38%;
    }

    .sy-locations::after {
        right: -35%;
        bottom: -18%;

        width: 110%;
        height: 42%;
    }

    .sy-locations__background-pattern::before,
    .sy-locations__background-pattern::after {
        width: 150px;
        height: 150px;

        background-size: 14px 14px;
    }
}

@media (max-width: 575.98px) {
    .sy-locations {
        padding: 4rem 0;
    }

    .sy-locations__inner {
        border-radius: 1.5rem;
    }

    .sy-locations__background-pattern::before {
        top: 1rem;
        right: -3rem;
    }

    .sy-locations__background-pattern::after {
        bottom: 1rem;
        left: -3rem;
    }
}




/* =========================================================
   Linker Textbereich
========================================================= */

.sy-locations__content {
    max-width: 34rem;
}

.sy-locations__eyebrow {
    display: inline-block;
    margin-bottom: 0.8rem;

    color: var(--sy-locations-orange);

    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.sy-locations__title {
    margin: 0 0 1.25rem;

    color: var(--sy-locations-dark);

    font-size: clamp(2.25rem, 4vw, 2.5rem);
    font-weight: 800;
    line-height: 1.03;
    letter-spacing: -0.04em;

     hyphens: none;
    word-break: normal;
    overflow-wrap: normal;
}

.sy-locations__text {
    margin: 0;

    color: var(--sy-locations-muted);

    font-size: clamp(1rem, 1.25vw, 1.15rem);
    line-height: 1.75;
}


/* =========================================================
   Kartenbereich rechts
========================================================= */

.sy-locations__map-wrapper {
    position: relative;

    width: 100%;
    overflow: hidden;

    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: clamp(1.5rem, 3vw, 2.5rem);

    /*background:
        radial-gradient(
            circle at 50% 45%,
            rgba(255, 255, 255, 0.04),
            transparent 36%
        ),
        var(--bg-map);*/
        background:linear-gradient(136deg,rgba(0, 0, 0, 1) 0%, rgba(10, 43, 75, 1) 100%);

    box-shadow:
        0 2rem 5rem rgba(6, 25, 35, 0.2);
}


/* =========================================================
   Inline-SVG
========================================================= */

.sy-locations__map {
    position: relative;
    z-index: 1;

    width: 100%;
}

.sy-locations__map > svg {
    display: block;

    width: 100%;
    height: auto;

    overflow: visible;
}


/* =========================================================
   SVG-Marker
========================================================= */

.sy-map-marker {
    cursor: pointer;
    outline: none;
}

.sy-map-marker__hit-area {
    fill: transparent;
    pointer-events: all;
}


/*
    Nur dieser innere Bereich wird bei Hover animiert.
    Der Ortsname gehört nicht dazu und bewegt sich daher nicht.
*/

.sy-map-marker__icon-group {
    transform-box: fill-box;
    transform-origin: center;

    transition: transform 0.3s ease;
}


/* Äußerer Ring */

.sy-map-marker__ring {
    fill: var(--sy-locations-orange-ring);

    transition: fill 0.3s ease;
}


/* Innerer Kreis */

.sy-map-marker__circle {
    fill: var(--sy-locations-orange);

    transition: fill 0.3s ease;
}


/* Weißer Pin */

.sy-map-marker__pin {
    fill: var(--sy-locations-white);
    pointer-events: none;
}

.sy-map-marker__pin-dot {
    fill: var(--sy-locations-orange);
    pointer-events: none;

    transition: fill 0.3s ease;
}


/* =========================================================
   Ortsname unter dem Marker
========================================================= */

.sy-map-marker__label {
    pointer-events: none;
}


/*
    Keine Transition und kein Transform auf dem Label.
    Dadurch bleibt es beim Hover exakt an seiner Position.
*/

.sy-map-marker__label-background {
    fill: var(--sy-locations-dark-label);

    stroke: rgba(255, 255, 255, 0.15);
    stroke-width: 1;
}

.sy-map-marker__label-text {
    fill: var(--sy-locations-white);

    font-family: inherit;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.01em;

    pointer-events: none;
    user-select: none;
}

@media (max-width: 991.98px) {
    .sy-map-marker__label-text {
        font-size: 18px;
    }
    
    
}

/* =========================================================
   Standardansicht
   SVG-Werte bleiben unverändert
========================================================= */

.sy-map-marker__label-background {
	fill: #071d29;
	stroke: rgba(255, 255, 255, 0.15);
	stroke-width: 1px;
}

.sy-map-marker__label-text {
	fill: #ffffff;
	font-weight: 700;
}


/* =========================================================
   Tablet und Mobil bis 991.98px
========================================================= */

@media (max-width: 991.98px) {

	/*
	 * Hintergrund links und rechts verbreitern.
	 * Der Mittelpunkt bleibt weiterhin bei x = 40.
	 *
	 * Rechnung:
	 * -20 + 120 / 2 = 40
	 */
	.sy-map-marker__label-background {
		x: -20px;
		y: -7px;
		width: 160px;
		height: 39px;
		rx: 19.5px;
	}

    .sy-map-marker.glades .sy-map-marker__label-background {
		x: -20px;
		y: -7px;
		width: 120px;
		height: 39px;
		rx: 19.5px;
	}

	/*
	 * Schrift nur mobil vergrößern.
	 */
	.sy-map-marker__label-text {
		y: 18px;
		font-size: 18px;
	}
}


/* =========================================================
   Hover, Fokus und aktiver Marker
========================================================= */

.sy-map-marker:hover .sy-map-marker__icon-group,
.sy-map-marker:focus-visible .sy-map-marker__icon-group,
.sy-map-marker.is-active .sy-map-marker__icon-group {
    /*transform: scale(1.08);*/
}

.sy-map-marker:hover .sy-map-marker__ring,
.sy-map-marker:focus-visible .sy-map-marker__ring,
.sy-map-marker.is-active .sy-map-marker__ring {
    fill: #ff9a62;
}

.sy-map-marker:hover .sy-map-marker__circle,
.sy-map-marker:focus-visible .sy-map-marker__circle,
.sy-map-marker.is-active .sy-map-marker__circle {
    fill: var(--sy-locations-orange-hover);
}

.sy-map-marker:hover .sy-map-marker__pin-dot,
.sy-map-marker:focus-visible .sy-map-marker__pin-dot,
.sy-map-marker.is-active .sy-map-marker__pin-dot {
    fill: var(--sy-locations-orange-hover);
}


/* =========================================================
   Infobox unten rechts
========================================================= */

.sy-locations__info-wrapper {
    position: absolute;
    right: clamp(1rem, 3vw, 2rem);
    bottom: clamp(1rem, 3vw, 2rem);
    z-index: 5;

    width: min(24rem, calc(100% - 2rem));

    pointer-events: none;
}


/* =========================================================
   Inhalt der Infobox
========================================================= */

.sy-location-info {
    position: relative;

    padding:
        clamp(1.25rem, 2.5vw, 2rem)
        clamp(1.25rem, 2.5vw, 2rem)
        clamp(1.35rem, 2.5vw, 2rem);

    overflow: hidden;

    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: clamp(1.25rem, 2vw, 1.75rem);

    background: rgba(6, 25, 35, 0.92);

    box-shadow:
        0 1.5rem 4rem rgba(0, 0, 0, 0.35);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    opacity: 0;
    visibility: hidden;
    transform: translateY(1rem);

    pointer-events: none;

    transition:
        opacity 0.35s ease,
        visibility 0.35s ease,
        transform 0.35s ease;
}

.sy-location-info::before {
    content: "";

    position: absolute;
    top: 0;
    left: 0;

    width: 4rem;
    height: 1.25rem;

    border-radius: 0 0 1rem 0;

    background: var(--sy-locations-orange);
}

.sy-location-info[hidden] {
    display: none;
}

.sy-location-info.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);

    pointer-events: auto;
}


/* =========================================================
   Schließen-Button
========================================================= */

.sy-location-info__close {
    position: absolute;
    top: 1rem;
    right: 1rem;

    display: grid;
    place-items: center;

    width: 2.25rem;
    aspect-ratio: 1;

    padding: 0;

    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.06);
    color: var(--sy-locations-white);

    font-size: 0.85rem;
    cursor: pointer;

    transition:
        background-color 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease;
}

.sy-location-info__close:hover {
    background: var(--sy-locations-orange);
    color: var(--sy-locations-white);
    transform: rotate(90deg);
}


/* =========================================================
   Texte innerhalb der Infobox
========================================================= */

.sy-location-info__eyebrow {
    display: block;
    margin-bottom: 0.6rem;
    padding-right: 2.5rem;

    color: var(--sy-locations-orange);

    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.sy-location-info__title {
    margin: 0 0 0.75rem;

    color: var(--sy-locations-white);

    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 800;
    line-height: 1.1;
}

.sy-location-info__text {
    margin: 0 0 1.25rem;

    color: rgba(255, 255, 255, 0.72);

    font-size: 0.95rem;
    line-height: 1.65;
}

.sy-location-info__link {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;

    color: var(--sy-locations-white);

    font-size: 0.9rem;
    font-weight: 800;
    text-decoration: none;

    transition:
        color 0.3s ease,
        gap 0.3s ease;
}

.sy-location-info__link i {
    color: var(--sy-locations-orange);
}

.sy-location-info__link:hover {
    gap: 0.9rem;
    color: var(--sy-locations-orange);
}


/* =========================================================
   Tablet
========================================================= */

@media (max-width: 991.98px) {

    .sy-locations__content {
        max-width: 42rem;
        margin-right: auto;
        margin-left: auto;

        /*text-align: center;*/
    }

    .sy-locations__info-wrapper {
        right: 1rem;
        bottom: 1rem;

        width: min(21rem, calc(100% - 2rem));
    }

}


/* =========================================================
   Smartphone
========================================================= */

@media (max-width: 575.98px) {

    .sy-locations {
        padding: 4rem 0;
    }

    .sy-locations__map-wrapper {
        border-radius: 1.25rem;
    }

    /*
        Auf kleinen Displays bleibt die Infobox im Kartenbereich,
        wird aber unterhalb der Karte angeordnet, damit sie die
        Marker nicht vollständig verdeckt.
    */

    .sy-locations__info-wrapper {
        position: relative;
        right: auto;
        bottom: auto;

        width: 100%;
        padding: 0 0.75rem 0.75rem;
    }

    .sy-location-info {
        width: 100%;
        border-radius: 1.1rem;
    }

}


/* =========================================================
   Reduzierte Bewegung
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .sy-map-marker__icon-group,
    .sy-map-marker__ring,
    .sy-map-marker__circle,
    .sy-map-marker__pin-dot,
    .sy-location-info,
    .sy-location-info__close,
    .sy-location-info__link {
        transition: none;
    }

}


/* =========================================================
   Dauerhaft pulsierender Marker-Ring
========================================================= */

.sy-map-marker__ring {
    transform-box: fill-box;
    transform-origin: center;

    animation: sy-map-marker-pulse 2s ease-out infinite;
}

@keyframes sy-map-marker-pulse {
    0% {
        opacity: 0.9;
        transform: scale(1);
    }

    70% {
        opacity: 0;
        transform: scale(1.55);
    }

    100% {
        opacity: 0;
        transform: scale(1.55);
    }
}

@media (prefers-reduced-motion: reduce) {
    .sy-map-marker__ring {
        animation: none;
    }
}

.sy-map-marker__circle {
    transform-box: fill-box;
    transform-origin: center;
    transform: scale(1);
}
.sy-map-marker__pin-group {
    transform: translate(0px, -20px);
}

@media (max-width: 991.98px) {
    .sy-map-marker__circle {
        transform: scale(1.5);
    }

    .sy-map-marker__pin-group {
    transform: translate(0px, -30px);
}
}