/*
 * IFB Seite: Standorte V1
 * Ergänzt die gemeinsame Angebotsseiten-Gestaltung.
 */

.ifb-standorte-page .site.grid-container,
.ifb-standorte-page .site-content,
.ifb-standorte-page .content-area,
.ifb-standorte-page #main,
.ifb-standorte-page .inside-article {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.ifb-standorte-page .entry-header,
.ifb-standorte-page .entry-content {
    display: none !important;
}

.ifb-locations-hero {
    background:
        radial-gradient(circle at 91% 10%, rgba(36,27,255,.13), transparent 34%),
        radial-gradient(circle at 55% 96%, rgba(7,153,134,.11), transparent 34%),
        linear-gradient(130deg, #fff 0%, #f7f8ff 54%, #f0fbf9 100%);
}

.ifb-locations-region-card {
    position: relative;
    min-height: 540px;
    padding: clamp(28px, 4vw, 44px);
    overflow: hidden;
    color: #fff;
    border-radius: 30px;
    background:
        radial-gradient(circle at 90% 10%, rgba(255,255,255,.15), transparent 32%),
        linear-gradient(145deg, var(--ifb-v5-navy, #071d3b), #133f70 65%, var(--ifb-v5-brand, #241bff));
    box-shadow: var(--ifb-v5-shadow, 0 24px 70px rgba(7,29,59,.13));
}

.ifb-locations-region-card__head {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 58px 1fr;
    align-items: center;
    gap: 16px;
}

.ifb-locations-region-card__head .ifb-course-audience-icon {
    margin: 0;
    color: var(--ifb-v5-navy, #071d3b);
    background: #80eadc;
}

.ifb-locations-region-card__head span,
.ifb-locations-region-card__head strong {
    display: block;
}

.ifb-locations-region-card__head div > span {
    margin-bottom: 4px;
    color: #80eadc;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.ifb-locations-region-card__head strong {
    color: #fff;
    font-size: 22px;
    line-height: 1.2;
}

.ifb-locations-region-map {
    position: relative;
    height: 330px;
    margin-top: 22px;
}

.ifb-locations-region-map::before,
.ifb-locations-region-map::after {
    content: "";
    position: absolute;
    border: 1px dashed rgba(255,255,255,.26);
    border-radius: 50%;
}

.ifb-locations-region-map::before {
    inset: 22px 46px 35px 32px;
    transform: rotate(-7deg);
}

.ifb-locations-region-map::after {
    inset: 78px 18px 22px 92px;
    transform: rotate(13deg);
}

.ifb-location-dot {
    position: absolute;
    z-index: 2;
    padding: 9px 12px 9px 27px;
    color: var(--ifb-v5-navy, #071d3b);
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(0,0,0,.2);
    font-size: 12px;
    font-weight: 850;
}

.ifb-location-dot::before {
    content: "";
    position: absolute;
    left: 11px;
    top: 50%;
    width: 9px;
    height: 9px;
    border: 3px solid var(--ifb-v5-teal, #079986);
    border-radius: 50%;
    transform: translateY(-50%);
}

.ifb-location-dot--senden {
    left: 48%;
    top: 24%;
}

.ifb-location-dot--ulm {
    left: 52%;
    top: 48%;
}

.ifb-location-dot--neu-ulm {
    left: 66%;
    top: 58%;
}

.ifb-location-dot--erbach {
    left: 29%;
    top: 57%;
}

.ifb-location-dot--ehingen {
    left: 15%;
    top: 76%;
}

.ifb-location-dot--munderkingen {
    left: 42%;
    top: 84%;
}

.ifb-locations-region-card > p {
    position: relative;
    z-index: 2;
    margin: 0;
    color: rgba(255,255,255,.76);
    font-size: 14px;
    line-height: 1.6;
}

/* Standortkarten */
.ifb-locations-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.ifb-location-card-v1 {
    min-height: 450px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--ifb-v5-line, #dce4ee);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 10px 32px rgba(7,29,59,.055);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.ifb-location-card-v1:hover {
    transform: translateY(-4px);
    border-color: rgba(36,27,255,.28);
    box-shadow: var(--ifb-v5-shadow-sm, 0 12px 36px rgba(7,29,59,.08));
}

.ifb-location-card-v1__head {
    margin-bottom: 23px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
}

.ifb-location-card-v1__head .ifb-course-audience-icon {
    margin: 0;
}

.ifb-location-card-v1--teal .ifb-course-audience-icon {
    background: var(--ifb-v5-teal, #079986);
}

.ifb-location-card-v1__label {
    padding: 8px 11px;
    color: var(--ifb-v5-brand, #241bff);
    border-radius: 999px;
    background: #efefff;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.ifb-location-card-v1--teal .ifb-location-card-v1__label {
    color: var(--ifb-v5-teal, #079986);
    background: #e7f8f5;
}

.ifb-location-card-v1 h3 {
    margin-bottom: 20px;
    font-size: 31px;
}

.ifb-location-card-v1__addresses {
    display: grid;
    gap: 15px;
}

.ifb-location-address {
    padding: 15px 16px;
    border: 1px solid #e4e9f1;
    border-radius: 14px;
    background: #f9fafc;
}

.ifb-location-address strong,
.ifb-location-address span,
.ifb-location-address > a:not(.ifb-location-route) {
    display: block;
}

.ifb-location-address strong {
    margin-bottom: 3px;
    color: var(--ifb-v5-navy, #071d3b);
    font-size: 16px;
}

.ifb-location-address span {
    color: var(--ifb-v5-muted, #617087);
    font-size: 14px;
}

.ifb-location-address > a:not(.ifb-location-route) {
    margin-top: 8px;
    color: var(--ifb-v5-navy, #071d3b);
    font-size: 14px;
    font-weight: 750;
    text-decoration: none;
}

.ifb-location-route {
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--ifb-v5-brand, #241bff) !important;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.ifb-location-card-v1__contact {
    margin-top: 18px;
    display: grid;
    gap: 8px;
}

.ifb-location-card-v1__contact a {
    padding: 10px 0;
    display: flex;
    justify-content: space-between;
    gap: 14px;
    color: var(--ifb-v5-navy, #071d3b);
    border-bottom: 1px solid #e8edf3;
    text-decoration: none;
}

.ifb-location-card-v1__contact span {
    color: var(--ifb-v5-muted, #617087);
    font-size: 13px;
}

.ifb-location-card-v1__contact strong {
    font-size: 14px;
}

.ifb-location-email {
    margin-top: auto;
    padding-top: 20px;
    display: block;
    color: var(--ifb-v5-brand, #241bff) !important;
    font-size: 14px;
    font-weight: 800;
    overflow-wrap: anywhere;
    text-decoration: none;
}

@media (max-width: 1050px) {
    .ifb-locations-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .ifb-locations-region-card {
        min-height: 500px;
    }
}

@media (max-width: 680px) {
    .ifb-locations-grid {
        grid-template-columns: 1fr;
    }

    .ifb-location-card-v1 {
        min-height: 0;
    }

    .ifb-locations-region-map {
        height: 320px;
        transform: scale(.92);
        transform-origin: center;
    }
}

@media (max-width: 480px) {
    .ifb-locations-region-card {
        min-height: 560px;
        padding: 25px 20px;
    }

    .ifb-locations-region-map {
        height: 360px;
        transform: scale(.78);
    }

    .ifb-location-dot--senden {
        left: 42%;
    }

    .ifb-location-dot--ulm {
        left: 46%;
    }

    .ifb-location-dot--neu-ulm {
        left: 58%;
    }

    .ifb-location-dot--erbach {
        left: 20%;
    }

    .ifb-location-dot--ehingen {
        left: 5%;
    }

    .ifb-location-dot--munderkingen {
        left: 32%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ifb-location-card-v1 {
        transition: none;
    }
}
