/*
 * ISL Startseite: skalierbare Übersicht verfügbarer Standorte
 * Version 1.0.0
 *
 * Vollständig gekapselte Styles, damit bestehende Theme-Komponenten
 * und die Baustellenkamera nicht beeinflusst werden.
 */

.isl-locations {
    --isl-loc-ink: #102b3a;
    --isl-loc-navy: #123348;
    --isl-loc-blue: #075b95;
    --isl-loc-blue-bright: #0b6aa9;
    --isl-loc-steel: #6c8da3;
    --isl-loc-muted: #617887;
    --isl-loc-ice: #f4f8fa;
    --isl-loc-line: #d7e2e8;
    --isl-loc-white: #ffffff;
    position: relative;
    overflow: hidden;
    padding: 76px 0 84px;
    color: var(--isl-loc-ink);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, .52) 100%),
        var(--isl-loc-ice);
}

.isl-locations,
.isl-locations * {
    box-sizing: border-box;
}

.isl-locations::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: min(48vw, 680px);
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(7, 91, 149, .45));
    pointer-events: none;
}

.isl-locations::after {
    content: "";
    position: absolute;
    right: -120px;
    bottom: -190px;
    width: 430px;
    height: 430px;
    border: 1px solid rgba(7, 91, 149, .055);
    border-radius: 50%;
    pointer-events: none;
}

.isl-locations__column {
    float: none;
}

.isl-locations__header {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 48px;
    align-items: end;
    margin-bottom: 36px;
}

.isl-locations__intro {
    max-width: 780px;
}

.isl-locations__eyebrow {
    display: block;
    margin-bottom: 13px;
    color: var(--isl-loc-blue);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.isl-locations__intro h2 {
    margin: 0;
    color: var(--isl-loc-ink);
    font-size: clamp(34px, 3.35vw, 52px);
    font-weight: 600;
    line-height: 1.04;
    letter-spacing: -.032em;
}

.isl-locations__intro p {
    max-width: 710px;
    margin: 19px 0 0;
    color: var(--isl-loc-muted);
    font-size: 17px;
    line-height: 1.65;
}

.isl-locations__summary {
    min-width: 132px;
    padding: 0 0 7px 23px;
    border-left: 1px solid var(--isl-loc-line);
}

.isl-locations__summary strong,
.isl-locations__summary span {
    display: block;
}

.isl-locations__summary strong {
    color: var(--isl-loc-blue);
    font-size: 38px;
    font-weight: 650;
    line-height: .92;
    letter-spacing: -.04em;
}

.isl-locations__summary span {
    max-width: 130px;
    margin-top: 9px;
    color: #718794;
    font-size: 10px;
    font-weight: 750;
    line-height: 1.35;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.isl-locations__grid {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 24px;
    align-items: stretch;
}

.isl-locations__grid.is-count-1 {
    grid-template-columns: minmax(0, 1fr);
    max-width: 780px;
}

.isl-locations__grid.is-count-2,
.isl-locations__grid.is-count-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.isl-locations__grid.is-count-3,
.isl-locations__grid.is-count-5,
.isl-locations__grid.is-count-6 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.isl-location-card,
.isl-location-card:hover,
.isl-location-card:focus,
.isl-location-card:active {
    color: var(--isl-loc-ink);
    text-decoration: none;
}

.isl-location-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border-top: 3px solid var(--isl-loc-blue);
    background: var(--isl-loc-white);
    box-shadow: 0 18px 52px rgba(11, 40, 56, .09);
    transition: transform 220ms cubic-bezier(.2, .8, .2, 1), box-shadow 220ms ease;
}

.isl-location-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 66px rgba(11, 40, 56, .145);
}

.isl-location-card:focus-visible {
    outline: 3px solid rgba(11, 106, 169, .55);
    outline-offset: 5px;
}

.isl-location-card__media {
    position: relative;
    aspect-ratio: 16 / 9;
    min-height: 0;
    overflow: hidden;
    background: #dce6ec;
}

.isl-location-card__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    transition: transform 700ms cubic-bezier(.2, .7, .2, 1);
}

.isl-location-card:hover .isl-location-card__image {
    transform: scale(1.025);
}

.isl-location-card__shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(10, 38, 54, .01) 34%, rgba(10, 38, 54, .52) 100%),
        linear-gradient(90deg, rgba(10, 38, 54, .13), transparent 46%);
    pointer-events: none;
}

.isl-location-card__availability {
    position: absolute;
    left: 20px;
    bottom: 19px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: calc(100% - 84px);
    padding: 9px 12px;
    color: #fff;
    background: rgba(10, 38, 54, .89);
    border: 1px solid rgba(255, 255, 255, .22);
    font-size: 10px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: .075em;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.isl-location-card__availability > span {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: #87bee1;
    box-shadow: 0 0 0 4px rgba(135, 190, 225, .14);
}

.isl-location-card__index {
    position: absolute;
    right: 18px;
    bottom: 17px;
    color: rgba(255, 255, 255, .78);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .1em;
}

.isl-location-card__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
    padding: 28px 30px 27px;
}

.isl-location-card__place > span {
    display: block;
    margin-bottom: 7px;
    color: var(--isl-loc-blue);
    font-size: 10px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.isl-location-card__place h3 {
    margin: 0;
    color: var(--isl-loc-ink);
    font-size: clamp(25px, 2vw, 32px);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -.025em;
}

.isl-location-card__area {
    margin-top: 26px;
    padding-top: 23px;
    border-top: 1px solid var(--isl-loc-line);
}

.isl-location-card__area strong,
.isl-location-card__area span {
    display: block;
}

.isl-location-card__area strong {
    color: var(--isl-loc-navy);
    font-size: clamp(30px, 2.55vw, 39px);
    font-weight: 650;
    line-height: 1;
    letter-spacing: -.04em;
}

.isl-location-card__area span {
    margin-top: 8px;
    color: #738895;
    font-size: 11px;
    font-weight: 750;
    line-height: 1.25;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.isl-location-card__footer {
    display: flex;
    flex-wrap: wrap;
    gap: 22px 24px;
    align-items: flex-end;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 30px;
}

.isl-location-card__usage {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    min-width: 0;
}

.isl-location-card__usage > span {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    padding: 5px 9px;
    color: #526b7a;
    background: #f1f6f8;
    border: 1px solid #e1eaf0;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: .035em;
}

.isl-location-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    color: var(--isl-loc-blue);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
}

.isl-location-card__cta svg,
.isl-locations__archive svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 220ms ease;
}

.isl-location-card:hover .isl-location-card__cta svg,
.isl-locations__archive a:hover svg {
    transform: translateX(4px);
}

.isl-locations__archive {
    display: flex;
    justify-content: flex-end;
    margin-top: 30px;
}

.isl-locations__archive a {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--isl-loc-blue);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
}

.isl-locations__archive a:focus-visible {
    outline: 3px solid rgba(11, 106, 169, .38);
    outline-offset: 4px;
}

@media (max-width: 1199px) {
    .isl-locations {
        padding: 66px 0 72px;
    }

    .isl-locations__grid.is-count-3,
    .isl-locations__grid.is-count-5,
    .isl-locations__grid.is-count-6 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .isl-location-card__body {
        padding: 25px 25px 25px;
    }

    .isl-location-card__footer {
        align-items: flex-start;
    }

    .isl-location-card__cta {
        width: 100%;
        justify-content: space-between;
        margin-left: 0;
        padding-top: 18px;
        border-top: 1px solid var(--isl-loc-line);
    }
}

@media (max-width: 991px) {
    .isl-locations__header {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
        margin-bottom: 30px;
    }

    .isl-locations__summary {
        display: inline-flex;
        align-items: baseline;
        gap: 10px;
        width: fit-content;
        min-width: 0;
        padding: 0;
        border-left: 0;
    }

    .isl-locations__summary strong {
        font-size: 27px;
    }

    .isl-locations__summary span {
        max-width: none;
        margin-top: 0;
    }

    .isl-locations__intro p {
        font-size: 16px;
    }
}

@media (max-width: 767px) {
    .isl-locations {
        padding: 48px 0 54px;
    }

    .isl-locations::after {
        display: none;
    }

    .isl-locations__header {
        margin-bottom: 25px;
    }

    .isl-locations__eyebrow {
        margin-bottom: 11px;
        font-size: 10px;
        letter-spacing: .12em;
    }

    .isl-locations__intro h2 {
        font-size: clamp(30px, 9vw, 39px);
        line-height: 1.06;
    }

    .isl-locations__intro p {
        margin-top: 15px;
        font-size: 15px;
        line-height: 1.58;
    }

    .isl-locations__summary strong {
        font-size: 24px;
    }

    .isl-locations__summary span {
        font-size: 9px;
    }

    .isl-locations__grid,
    .isl-locations__grid.is-count-1,
    .isl-locations__grid.is-count-2,
    .isl-locations__grid.is-count-3,
    .isl-locations__grid.is-count-4,
    .isl-locations__grid.is-count-5,
    .isl-locations__grid.is-count-6 {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
        max-width: none;
    }

    .isl-location-card__media {
        aspect-ratio: 16 / 9.5;
    }

    .isl-location-card__availability {
        left: 15px;
        bottom: 14px;
        max-width: calc(100% - 68px);
        padding: 8px 10px;
        font-size: 9px;
        letter-spacing: .055em;
    }

    .isl-location-card__index {
        right: 14px;
        bottom: 13px;
        font-size: 11px;
    }

    .isl-location-card__body {
        padding: 24px 22px 23px;
    }

    .isl-location-card__place h3 {
        font-size: clamp(25px, 7.5vw, 30px);
    }

    .isl-location-card__area {
        margin-top: 20px;
        padding-top: 19px;
    }

    .isl-location-card__area strong {
        font-size: clamp(30px, 9vw, 36px);
    }

    .isl-location-card__footer {
        gap: 19px;
        padding-top: 24px;
    }

    .isl-location-card__cta {
        padding-top: 17px;
    }

    .isl-locations__archive {
        justify-content: flex-start;
        margin-top: 24px;
    }
}

@media (max-width: 390px) {
    .isl-locations {
        padding-top: 44px;
        padding-bottom: 48px;
    }

    .isl-location-card__body {
        padding-left: 19px;
        padding-right: 19px;
    }

    .isl-location-card__usage > span {
        min-height: 27px;
        padding-left: 8px;
        padding-right: 8px;
        font-size: 9px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .isl-location-card,
    .isl-location-card__image,
    .isl-location-card__cta svg,
    .isl-locations__archive svg {
        transition: none;
    }

    .isl-location-card:hover,
    .isl-location-card:hover .isl-location-card__image,
    .isl-location-card:hover .isl-location-card__cta svg,
    .isl-locations__archive a:hover svg {
        transform: none;
    }
}
