/*
 * IFB Seite: Unsere Kursorte 1.1.0
 * 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-standorte-page .ifb-course-page {
    color: #3c4149;
}

.ifb-standorte-page .ifb-course-page h1,
.ifb-standorte-page .ifb-course-page h2,
.ifb-standorte-page .ifb-course-page h3 {
    color: #252c37;
    hyphens: none;
    overflow-wrap: normal;
    word-break: normal;
}

.ifb-standorte-page .ifb-course-eyebrow {
    color: #8a693f;
}

.ifb-locations-hero {
    background:
        radial-gradient(circle at 92% 12%, rgba(181, 158, 124, .18), transparent 31%),
        radial-gradient(circle at 57% 100%, rgba(125, 103, 75, .08), transparent 34%),
        linear-gradient(132deg, #fff 0%, #faf7f1 58%, #f2ece3 100%);
}

.ifb-locations-hero::after {
    right: -130px;
    top: -85px;
    width: 360px;
    height: 360px;
    border-color: rgba(154, 125, 87, .06);
}

/* Hero-Kursortkarte */
.ifb-locations-region-card {
    position: relative;
    padding: clamp(28px, 4vw, 42px);
    overflow: hidden;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 28px;
    background:
        radial-gradient(circle at 100% 0%, rgba(255, 255, 255, .12), transparent 34%),
        linear-gradient(145deg, #2f3440 0%, #363a43 60%, #49453e 100%);
    box-shadow: 0 24px 64px rgba(38, 43, 53, .16);
}

.ifb-locations-region-card__head {
    display: grid;
    grid-template-columns: 56px 1fr;
    align-items: center;
    gap: 16px;
}

.ifb-locations-region-card__icon,
.ifb-location-card-v1__icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    color: #735634;
    border-radius: 16px;
    background: #efe2cf;
}

.ifb-locations-region-card__icon svg,
.ifb-location-card-v1__icon svg {
    width: 26px;
    height: 26px;
}

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

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

.ifb-locations-region-card__head strong {
    color: #fff;
    font-size: clamp(20px, 2.2vw, 25px);
    line-height: 1.22;
}

.ifb-locations-region-list {
    margin: 28px 0 24px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.ifb-locations-region-list > a {
    min-width: 0;
    padding: 15px;
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    align-items: center;
    gap: 11px;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 16px;
    background: rgba(255, 255, 255, .07);
    text-decoration: none;
    transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.ifb-locations-region-list > a:hover,
.ifb-locations-region-list > a:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, .32);
    background: rgba(255, 255, 255, .12);
}

.ifb-locations-region-list__pin {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    color: #332f2a;
    border-radius: 50%;
    background: #f1e4d1;
}

.ifb-locations-region-list__pin svg {
    width: 19px;
    height: 19px;
}

.ifb-locations-region-list strong,
.ifb-locations-region-list small {
    display: block;
}

.ifb-locations-region-list strong {
    margin-bottom: 2px;
    color: #fff;
    font-size: 16px;
    line-height: 1.2;
}

.ifb-locations-region-list small {
    color: rgba(255, 255, 255, .7);
    font-size: 12px;
    line-height: 1.35;
}

.ifb-locations-region-card > p {
    margin: 0;
    color: rgba(255, 255, 255, .78);
    font-size: 14px;
    line-height: 1.65;
}

/* Faktenleiste */
.ifb-standorte-page .ifb-course-facts strong {
    color: #7a5b36;
}

/* Kursortkarten */
.ifb-locations-grid {
    max-width: 1120px;
    margin-inline: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.ifb-location-card-v1 {
    min-width: 0;
    padding: clamp(25px, 3vw, 31px);
    display: flex;
    flex-direction: column;
    border: 1px solid #dfd4c5;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 11px 32px rgba(46, 52, 63, .06);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.ifb-location-card-v1:hover {
    transform: translateY(-3px);
    border-color: rgba(139, 105, 63, .45);
    box-shadow: 0 17px 42px rgba(46, 52, 63, .09);
}

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

.ifb-location-card-v1--charcoal .ifb-location-card-v1__icon {
    color: #fff;
    background: #3a3d44;
}

.ifb-location-card-v1__label {
    max-width: 62%;
    padding: 7px 10px;
    color: #705432;
    border-radius: 999px;
    background: #f2e8da;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .07em;
    line-height: 1.25;
    text-align: right;
    text-transform: uppercase;
}

.ifb-location-card-v1--taupe .ifb-location-card-v1__label {
    color: #62584a;
    background: #ece7df;
}

.ifb-location-card-v1--charcoal .ifb-location-card-v1__label {
    color: #fff;
    background: #3a3d44;
}

.ifb-location-card-v1 h3 {
    margin-bottom: 8px;
    font-size: clamp(28px, 3vw, 34px);
}

.ifb-location-card-v1__description {
    min-height: 48px;
    margin-bottom: 20px;
    color: #626874;
    font-size: 15px;
    line-height: 1.55;
}

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

.ifb-location-address {
    min-width: 0;
    padding: 16px;
    border: 1px solid #e7e2da;
    border-radius: 15px;
    background: #faf8f4;
}

.ifb-location-address > strong,
.ifb-location-address > span {
    display: block;
}

.ifb-location-address > strong {
    margin-bottom: 3px;
    color: #2b313b;
    font-size: 16px;
}

.ifb-location-address > span {
    color: #666d78;
    font-size: 14px;
}

.ifb-location-address__actions {
    margin-top: 13px;
    padding-top: 12px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 16px;
    border-top: 1px solid #e7e2da;
}

.ifb-location-address__actions > a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #3a414c !important;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.ifb-location-address__actions > a:hover,
.ifb-location-address__actions > a:focus-visible {
    color: #0000aa !important;
}

.ifb-location-route svg {
    width: 16px;
    height: 16px;
}

.ifb-location-email {
    margin-top: auto;
    padding-top: 20px;
    display: block;
    color: #6f5331 !important;
    text-decoration: none;
    overflow-wrap: break-word;
    word-break: normal;
}

.ifb-location-email span,
.ifb-location-email strong {
    display: block;
}

.ifb-location-email span {
    margin-bottom: 3px;
    color: #777c85;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

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

.ifb-location-availability-note {
    max-width: 1120px;
    margin: 24px auto 0;
    padding: clamp(24px, 3vw, 34px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 28px;
    border: 1px solid #dfd4c5;
    border-radius: 20px;
    background: #f8f4ed;
}

.ifb-location-availability-note h3 {
    margin: 0 0 7px;
    color: #2f3440;
    font-size: clamp(23px, 2.5vw, 31px);
}

.ifb-location-availability-note p:not(.ifb-course-eyebrow) {
    margin: 0;
    color: #646a74;
}

/* Warme Inhaltsflächen statt blauer Verläufe */
.ifb-standorte-page .ifb-course-section--soft {
    background: #f5f6f8;
}

.ifb-standorte-page .ifb-course-section--blue-soft {
    background:
        radial-gradient(circle at 12% 18%, rgba(175, 145, 105, .09), transparent 28%),
        linear-gradient(135deg, #faf6ef, #f3eee6);
}

.ifb-standorte-page .ifb-course-checklist li > svg,
.ifb-standorte-page .ifb-course-process li > span {
    background: #8a693f;
}

.ifb-standorte-page .ifb-course-info-panel {
    background:
        radial-gradient(circle at 100% 0%, rgba(255, 255, 255, .12), transparent 34%),
        linear-gradient(140deg, #2f3440, #43464d);
}

.ifb-standorte-page .ifb-course-info-panel li > span {
    color: #2f3440;
    background: #eadbc4;
}

.ifb-standorte-page .ifb-course-process li {
    border-color: #dfd4c5;
}

.ifb-standorte-page .ifb-course-faq details {
    border-color: #dfd4c5;
}

.ifb-standorte-page .ifb-course-faq summary::after {
    color: #8a693f;
}

.ifb-standorte-page .ifb-course-cta {
    background: linear-gradient(132deg, #2f3440, #3d414a 68%, #514b43);
}

.ifb-standorte-page .ifb-course-cta .ifb-course-eyebrow {
    color: #eadbc4;
}

/* Keine unsauberen Worttrennungen */
.ifb-standorte-page h1,
.ifb-standorte-page h2,
.ifb-standorte-page h3,
.ifb-standorte-page strong,
.ifb-standorte-page summary {
    hyphens: none;
    overflow-wrap: normal;
    word-break: normal;
}

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

    .ifb-location-card-v1__description {
        min-height: 70px;
    }
}

@media (max-width: 900px) {
    .ifb-locations-region-card {
        max-width: 680px;
        width: 100%;
        margin-inline: auto;
    }

    .ifb-locations-region-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

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

    .ifb-location-availability-note {
        grid-template-columns: 1fr;
    }

    .ifb-location-availability-note .ifb-course-button {
        width: 100%;
    }
}

@media (max-width: 520px) {
    .ifb-locations-region-card {
        padding: 24px 20px;
        border-radius: 22px;
    }

    .ifb-locations-region-card__head {
        grid-template-columns: 48px 1fr;
        gap: 12px;
    }

    .ifb-locations-region-card__icon,
    .ifb-location-card-v1__icon {
        width: 48px;
        height: 48px;
        border-radius: 14px;
    }

    .ifb-locations-region-list {
        grid-template-columns: 1fr;
    }

    .ifb-location-card-v1 {
        padding: 23px 20px;
    }

    .ifb-location-card-v1__label {
        max-width: 66%;
    }

    .ifb-location-address__actions {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ifb-location-card-v1,
    .ifb-locations-region-list > a {
        transition: none;
    }
}
