.frl-register,
.frl-single {
    --frl-gold: #b8944f;
    --frl-gold-soft: #e7d5aa;
    --frl-dark: #151515;
    --frl-muted: #666;
    --frl-border: rgba(0, 0, 0, .12);
    --frl-bg: #fff;
    --frl-soft-bg: #f8f6f1;
    color: var(--frl-dark);
}

.frl-filters {
    display: grid;
    grid-template-columns: minmax(220px, 1.1fr) minmax(180px, .75fr) minmax(190px, .85fr) auto;
    gap: 16px;
    align-items: end;
    margin: 0 0 22px;
    padding: 18px;
    background: var(--frl-soft-bg);
    border: 1px solid var(--frl-border);
    border-radius: 14px;
}

.frl-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 700;
}

.frl-field input,
.frl-field select {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--frl-border);
    border-radius: 10px;
    background: #fff;
    color: var(--frl-dark);
}

.frl-reset-filter {
    min-height: 44px;
    padding: 10px 16px;
    border: 1px solid var(--frl-gold);
    border-radius: 10px;
    background: var(--frl-dark);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.frl-reset-filter:hover,
.frl-reset-filter:focus {
    background: #000;
}

.frl-map {
    width: 100%;
    min-height: 260px;
    margin-bottom: 18px;
    overflow: hidden;
    border: 1px solid var(--frl-border);
    border-radius: 16px;
    background: #e8e3d8;
    z-index: 1;
}

.frl-result-count {
    margin: 4px 0 18px;
    color: var(--frl-muted);
    font-size: 15px;
}

.frl-result-count-filtered {
    color: var(--frl-blue);
    font-weight: 700;
}


.frl-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}

.frl-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    overflow: hidden;
    background: var(--frl-bg);
    border: 1px solid var(--frl-border);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .06);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.frl-card:hover,
.frl-card-active {
    transform: translateY(-2px);
    border-color: var(--frl-gold);
    box-shadow: 0 12px 32px rgba(0, 0, 0, .10);
}

.frl-card-link {
    display: grid;
    grid-template-columns: 94px 1fr;
    gap: 14px;
    padding: 18px;
    color: inherit;
    text-decoration: none;
}

.frl-card-link:hover,
.frl-card-link:focus {
    color: inherit;
    text-decoration: none;
}

.frl-logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 94px;
    height: 94px;
    overflow: hidden;
    border: 1px solid var(--frl-gold-soft);
    border-radius: 14px;
    background: #fff;
}

.frl-logo {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.frl-logo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--frl-gold);
    font-size: 44px;
    font-weight: 700;
    line-height: 1;
    background: linear-gradient(135deg, #fff, var(--frl-soft-bg));
}

.frl-card-body h3 {
    margin: 0 0 8px;
    font-size: 20px;
    line-height: 1.22;
}

.frl-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 9px;
}

.frl-meta span {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 999px;
    background: var(--frl-soft-bg);
    color: var(--frl-dark);
    font-size: 13px;
    font-weight: 700;
}

.frl-address,
.frl-excerpt {
    margin: 0 0 9px;
    color: var(--frl-muted);
    font-size: 14px;
    line-height: 1.45;
}

.frl-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
    padding: 0 18px 18px;
}

.frl-card-actions a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 11px;
    border: 1px solid var(--frl-gold-soft);
    border-radius: 999px;
    color: var(--frl-dark);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.frl-card-actions a:hover,
.frl-card-actions a:focus {
    border-color: var(--frl-gold);
    color: #000;
    text-decoration: none;
}

.frl-empty {
    padding: 18px;
    background: var(--frl-soft-bg);
    border-radius: 14px;
}

.frl-marker-logo {
    background: transparent;
    border: none;
}

.frl-marker-logo span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    overflow: hidden;
    border: 3px solid var(--frl-gold, #b8944f);
    border-radius: 50% 50% 50% 4px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .24);
    transform: rotate(-45deg);
}

.frl-marker-logo img {
    width: 34px;
    height: 34px;
    object-fit: contain;
    transform: rotate(45deg);
}

.frl-popup {
    max-width: 230px;
    text-align: left;
}

.frl-popup-logo {
    display: block;
    width: 58px;
    height: 58px;
    margin: 0 0 8px;
    object-fit: contain;
}

.frl-popup strong {
    display: block;
    margin-bottom: 6px;
    font-size: 15px;
}

.frl-popup p {
    margin: 0 0 7px;
    font-size: 13px;
    line-height: 1.35;
}

.frl-popup a {
    display: inline-block;
    color: var(--frl-dark);
    font-weight: 700;
}

.frl-single-head {
    display: flex;
    gap: 18px;
    align-items: center;
    margin: 0 0 24px;
    padding: 20px;
    background: var(--frl-soft-bg);
    border: 1px solid var(--frl-border);
    border-radius: 16px;
}

.frl-single-logo {
    flex: 0 0 120px;
    width: 120px;
    height: 120px;
}

.frl-single-head h2 {
    margin: 0 0 10px;
}

.frl-single-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 26px;
    align-items: start;
    margin-bottom: 24px;
}

.frl-profile-text,
.frl-contact-box {
    min-width: 0;
}

.frl-contact-box {
    padding: 20px;
    background: var(--frl-soft-bg);
    border: 1px solid var(--frl-border);
    border-radius: 16px;
}

.frl-contact-box h3 {
    margin-top: 0;
}

.frl-contact-box a {
    color: var(--frl-dark);
    font-weight: 700;
}

@media (max-width: 780px) {
    .frl-filters,
    .frl-single-grid {
        grid-template-columns: 1fr;
    }

    .frl-card-link {
        grid-template-columns: 80px 1fr;
    }

    .frl-logo-wrap {
        width: 80px;
        height: 80px;
    }

    .frl-single-head {
        align-items: flex-start;
    }

    .frl-single-logo {
        flex-basis: 90px;
        width: 90px;
        height: 90px;
    }
}

@media (max-width: 520px) {
    .frl-card-link,
    .frl-single-head {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .frl-logo-wrap {
        width: 96px;
        height: 96px;
    }
}

/* Profilansicht v1.0.1: Kontakt und Karte nebeneinander, Text darunter. */
.frl-single-title-wrap {
    min-width: 0;
}

.frl-single-facts {
    display: grid;
    gap: 6px;
    margin: 0;
}

.frl-single-facts p {
    margin: 0;
    color: #000;
    font-size: 15px;
    line-height: 1.45;
}

.frl-single-contact-map-row {
    display: grid;
    grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
    gap: 24px;
    align-items: stretch;
    margin: 0 0 24px;
}

.frl-single-contact-map-row .frl-contact-box,
.frl-single-contact-map-row .frl-single-map,
.frl-single-contact-map-row .frl-map-placeholder {
    min-width: 0;
    min-height: 320px;
}

.frl-single-contact-map-row .frl-single-map {
    height: 100%;
    margin-bottom: 0;
}

.frl-map-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px;
    border: 1px solid var(--frl-border);
    border-radius: 16px;
    background: #e8e3d8;
    color: #000;
    text-align: center;
}

.frl-profile-text {
    width: 100%;
    min-width: 0;
    color: #000;
    font-size: 17px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.frl-profile-text * {
    color: inherit;
}

.frl-profile-text a,
.frl-contact-box a {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.frl-profile-text p:first-child {
    margin-top: 0;
}

.frl-profile-text p:last-child {
    margin-bottom: 0;
}

@media (max-width: 900px) {
    .frl-single-contact-map-row {
        grid-template-columns: 1fr;
    }

    .frl-single-contact-map-row .frl-contact-box,
    .frl-single-contact-map-row .frl-single-map,
    .frl-single-contact-map-row .frl-map-placeholder {
        min-height: 280px;
    }
}

@media (max-width: 520px) {
    .frl-single-head {
        padding: 16px;
    }

    .frl-single-contact-map-row {
        gap: 18px;
    }

    .frl-contact-box {
        padding: 16px;
    }

    .frl-profile-text {
        font-size: 16px;
        line-height: 1.65;
    }
}

/* v1.0.4: exakte Filteranzeige und korrigierter einheitlicher Kartenmarker. */
.frl-card[hidden] {
    display: none !important;
}

.frl-marker-logo {
    display: none;
}

.frl-marker-masonic {
    background: transparent;
    border: none;
}

.frl-marker-masonic span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border: 3px solid var(--frl-gold, #b8944f);
    border-radius: 50% 50% 50% 7px;
    background: #10284f;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .28);
    transform: rotate(-45deg);
}

.frl-marker-masonic svg {
    display: block;
    width: 38px;
    height: 38px;
    transform: rotate(45deg);
}

body.single-fr_loge .site-main > article.fr_loge > .entry-header,
body.single-fr_loge article.fr_loge > .entry-header,
body.single-fr_loge .type-fr_loge > .entry-header,
body.single-fr_loge .frl-single-lodge-page .entry-header,
body.frl-single-lodge-page .site-main > article.fr_loge > .entry-header,
body.frl-single-lodge-page article.fr_loge > .entry-header,
body.frl-single-lodge-page .type-fr_loge > .entry-header,
body.frl-single-lodge-page .ast-single-post .entry-title,
body.frl-single-lodge-page .ast-single-post .entry-meta,
body.frl-single-lodge-page .entry-title,
body.frl-single-lodge-page .entry-meta,
body.frl-single-lodge-page .posted-on,
body.frl-single-lodge-page .byline {
    display: none !important;
}

.frl-masonic-symbol { overflow: visible; }
