/* Wohnungssuche – Content-first + Partner-Sidebar + Score */

.wf-suche-page .wf-suche-main {
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 0;
}

.wf-suche-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 28px;
    align-items: start;
}

.wf-suche-layout__content {
    min-width: 0;
}

.wf-suche-sidebar {
    position: sticky;
    top: 88px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.wf-suche-sidebar__label,
.wf-partner-footer__label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
    margin: 0 0 4px;
}

.wf-suche-sidebar__note {
    font-size: 0.72rem;
    color: #94a3b8;
    margin: 4px 0 0;
}

.wf-native-ad {
    background: linear-gradient(145deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px;
}

.wf-native-ad__tag {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #166534;
    background: #dcfce7;
    padding: 3px 8px;
    border-radius: 999px;
    margin-bottom: 8px;
}

.wf-native-ad h3 {
    margin: 0 0 6px;
    font-size: 0.95rem;
    color: #0f172a;
}

.wf-native-ad p {
    margin: 0 0 12px;
    font-size: 0.82rem;
    color: #475569;
    line-height: 1.45;
}

.wf-native-ad__cta {
    font-size: 0.82rem;
    font-weight: 700;
    color: #15803d;
    text-decoration: none;
}

.wf-native-ad__cta:hover {
    text-decoration: underline;
}

.wf-partner-footer {
    margin-top: 40px;
    padding-top: 28px;
    border-top: 1px solid #e2e8f0;
}

.wf-partner-footer__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.wf-partner-footer__card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 18px;
}

.wf-partner-footer__card h3 {
    margin: 0 0 8px;
    font-size: 0.95rem;
}

.wf-partner-footer__card p {
    margin: 0 0 12px;
    font-size: 0.82rem;
    color: #64748b;
}

.wf-partner-footer__link {
    font-weight: 700;
    font-size: 0.82rem;
    color: #15803d;
}

.wf-search-alert {
    margin: 32px 0 0;
    padding: 28px 28px 26px;
    background: linear-gradient(165deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 12px 32px rgba(15, 23, 42, 0.07);
}

.wf-search-alert h2 {
    margin: 0 0 10px;
    font-size: 1.2rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.wf-search-alert__lead {
    margin: 0 0 22px;
    font-size: 0.9rem;
    line-height: 1.55;
    color: #64748b;
    max-width: 52ch;
}

.wf-search-alert__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.wf-search-alert__grid .field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
}

.wf-search-alert__grid .field label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
}

.wf-search-alert__grid .field input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font: inherit;
    font-size: 0.9375rem;
    background: #fff;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.wf-search-alert__grid .field input:focus {
    outline: none;
    border-color: #007a5e;
    box-shadow: 0 0 0 3px rgba(0, 122, 94, 0.1);
}

.wf-search-alert__checks {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
    padding: 16px;
    border-radius: 14px;
    background: rgba(241, 245, 249, 0.65);
    border: 1px solid #e2e8f0;
}

.wf-search-alert__check {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 0.84rem;
    line-height: 1.5;
    color: #334155;
    margin: 0;
    cursor: pointer;
}

.wf-search-alert__check input {
    margin-top: 3px;
    flex-shrink: 0;
    accent-color: #007a5e;
}

.wf-search-alert .portal-btn--primary {
    width: 100%;
    padding: 14px 20px;
    border-radius: 999px;
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(0, 122, 94, 0.22);
}

.wf-search-alert__msg {
    margin-top: 12px;
    font-size: 0.88rem;
    color: #166534;
    font-weight: 600;
}

.wf-search-alert__msg.is-error {
    color: #b91c1c;
}

.wf-search-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    max-width: 360px;
    padding: 14px 18px;
    background: #166534;
    color: #fff;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 600;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.2);
    z-index: 200;
    animation: wf-toast-in 0.35s ease;
}

@keyframes wf-toast-in {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-match-hint {
    margin: 8px 0 0;
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.45;
}

.listing-card__score {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
}

.listing-card__energy {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
}

.listing-card__img-wrap {
    position: relative;
}

.wf-score-badge {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    margin-bottom: 20px;
}

.wf-score-badge--compact,
.listing-card .wf-score-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    margin: 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.wf-score-badge--excellent,
.listing-card .wf-score-badge--excellent {
    background: rgba(141, 198, 63, 0.18);
    border-color: #8DC63F;
    color: #007A5E;
}

.wf-score-badge--good {
    background: rgba(255, 215, 0, 0.16);
    border-color: #FFD700;
    color: #7A5A00;
}

.wf-score-badge--weak {
    background: rgba(217, 83, 79, 0.14);
    border-color: #D9534F;
    color: #8F2A28;
}

.wf-score-badge__ring {
    position: relative;
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: conic-gradient(#8DC63F calc(var(--score, 70) * 3.6deg), #e2e8f0 0);
    font-weight: 800;
    font-size: 1.1rem;
    color: #0f172a;
}

.wf-score-badge__ring::before {
    content: '';
    position: absolute;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
}

.wf-score-badge__value {
    position: relative;
    z-index: 1;
}

.wf-score-badge__label {
    font-weight: 800;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 6px;
}

.wf-score-badge__factors {
    margin: 0;
    padding-left: 18px;
    font-size: 0.78rem;
    color: #64748b;
    line-height: 1.5;
}

.wf-score-badge__factors strong {
    color: #334155;
}

.search-results-meta--score {
    color: #64748b;
    font-size: 0.85rem;
}

@media (max-width: 1024px) {
    .wf-suche-layout {
        grid-template-columns: 1fr;
    }
    .wf-suche-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
    .wf-partner-footer__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .wf-search-alert__grid {
        grid-template-columns: 1fr;
    }
}

/* Clean-SaaS Inseratskarten */
.listing-card--saas {
    cursor: pointer;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
}

.listing-card--saas:hover,
.listing-card--saas:focus-visible {
    border: 2px solid #007A5E;
    box-shadow: 0 8px 24px rgba(0, 122, 94, 0.18);
    outline: none;
}

.listing-card--saas .listing-card__media {
    position: relative;
    aspect-ratio: 4 / 3;
    background: linear-gradient(145deg, #f1f5f9, #e2e8f0);
    overflow: hidden;
}

.listing-card--saas .listing-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.listing-card--saas .listing-card__badges {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
}

.wf-match-ring-wrap {
    position: relative;
    width: 46px;
    height: 46px;
    flex-shrink: 0;
}

.wf-match-ring {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.12);
    background-image: conic-gradient(
        var(--ring-color, #ffd700) calc(var(--score, 50) * 3.6deg),
        #e2e8f0 0
    );
    position: relative;
}

.wf-match-ring::before {
    content: '';
    position: absolute;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #fff;
}

.wf-match-ring__value {
    position: relative;
    z-index: 1;
    font-size: 0.9rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
}

.wf-match-ring__info {
    position: absolute;
    top: -2px;
    right: -2px;
    z-index: 3;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    background: #fff;
    font-size: 0.55rem;
    font-weight: 800;
    color: #64748b;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.wf-match-ring__info:hover {
    color: #334155;
}

.listing-card--saas .listing-card__body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.listing-card--saas .listing-card__title {
    margin: 0;
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #0f172a;
    line-height: 1.25;
}

.listing-card--saas .listing-card__address {
    margin: 0;
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.35;
}

.listing-card--saas .listing-card__specs {
    margin: 4px 0 0;
    font-size: 0.82rem;
    font-weight: 600;
    color: #007A5E;
}

.listing-card--saas .listing-card__footer {
    margin-top: auto;
    padding-top: 10px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
}

.listing-card--saas .listing-card__merk {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.listing-card--saas .listing-card__merk.is-active {
    color: #007A5E;
    border-color: #8DC63F;
    background: rgba(141, 198, 63, 0.12);
}

.listing-card--saas .listing-card__merk.is-active svg {
    fill: #007A5E;
    stroke: none;
}

.wf-efficiency-icon {
    position: relative;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 2px solid #CBD5E1;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.wf-efficiency-icon--green {
    border-color: #8DC63F;
}
.wf-efficiency-icon--green .wf-efficiency-icon__letter {
    color: #8DC63F;
}

.wf-efficiency-icon--orange {
    border-color: #FFD700;
}
.wf-efficiency-icon--orange .wf-efficiency-icon__letter {
    color: #FFD700;
}

.wf-efficiency-icon--red {
    border-color: #D9534F;
}
.wf-efficiency-icon--red .wf-efficiency-icon__letter {
    color: #D9534F;
}

.wf-efficiency-icon--tan {
    border-color: #c4884d;
    background: #fff;
}
.wf-efficiency-icon--tan .wf-efficiency-icon__letter {
    color: #b87333;
}

.wf-efficiency-icon--grey {
    border-color: #d1d5db;
    background: #f9fafb;
}
.wf-efficiency-icon--grey .wf-efficiency-icon__letter {
    color: #9ca3af;
}
.wf-efficiency-icon--grey .wf-efficiency-icon__sub {
    color: #9ca3af;
}

.listing-card__provider {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    padding: 4px 6px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.2);
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.2);
    pointer-events: none;
    backdrop-filter: blur(2px);
}

.listing-card__provider img {
    display: block;
    height: 22px;
    max-width: 72px;
    object-fit: contain;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}

.listing-card__private {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid rgba(141, 198, 63, 0.55);
    background: rgba(0, 0, 0, 0.2);
    color: #fff;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.25);
    pointer-events: none;
    backdrop-filter: blur(2px);
}

.wf-efficiency-icon__letter {
    font-size: 1rem;
    font-weight: 800;
    line-height: 1;
}

.wf-efficiency-icon__sub {
    font-size: 0.42rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #475569;
    text-align: center;
    max-width: 40px;
    line-height: 1.1;
}

.wf-efficiency-icon__info {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    background: #fff;
    font-size: 0.55rem;
    font-weight: 800;
    color: #64748b;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}
