/**
 * Wohnen-Fix Vermieter-Backend – Sidebar-Layout (Corporate-Grün #2e7d32)
 */
:root {
    --wf-green: #2e7d32;
    --wf-green-dark: #1b5e20;
    --wf-green-darker: #0d3d12;
    --wf-sidebar-w: 272px;
}

body.view-vermieter {
    background: #f4f6f8;
}

body.view-vermieter .portal-subnav,
body.view-vermieter .portal-dashboard-hero,
body.view-vermieter .portal-guest-banner,
body.view-vermieter #adminStats,
body.layout-vermieter-dashboard .portal-subnav,
body.layout-vermieter-dashboard #portalDashboardHero,
body.layout-vermieter-dashboard #adminStats,
body.layout-vermieter-dashboard #wfPortalBrandHeader,
body.layout-vermieter-dashboard #panel-suchen {
    display: none !important;
}

body.layout-mieter-search #portalDashboardHero,
body.layout-mieter-search #adminStats,
body.layout-mieter-search #panel-landlord-overview,
body.layout-mieter-search .wf-trial-banner {
    display: none !important;
}

body.layout-mieter-search #panel-suchen.portal-panel.is-active {
    display: block !important;
}

body.view-vermieter .portal-dashboard-main {
    max-width: none;
    padding: 0;
    margin: 0;
}

body.view-mieter:not(.wf-has-sidebar) .wf-sidebar {
    display: none !important;
}

body.view-guest-inserat .portal-subnav {
    display: flex !important;
}

body.view-guest-inserat .wf-sidebar__nav .wf-nav-item:not([data-landlord-panel="objekte"]) {
    opacity: 0.45;
    pointer-events: none;
}

body.view-mieter #panel-inserat,
body.view-mieter #panel-nutzer,
body.view-mieter #panel-landlord-overview,
body.view-mieter #panel-bewerber,
body.view-mieter #panel-einstellungen,
body.view-mieter #panel-hilfe,
body.view-mieter #panel-admin-finanzen,
body.view-mieter .portal-subtab--vermieter-only,
body.view-mieter #tarifPanelVermieter {
    display: none !important;
}

body.view-vermieter #tarifPanelMieter,
body.view-vermieter #panel-merkliste {
    display: none !important;
}

body.view-vermieter #panel-merkliste,
body.view-vermieter .portal-subtab--mieter {
    display: none !important;
}

body.view-mieter .portal-subnav [data-tab="inserat"],
body.view-mieter .portal-subnav [data-tab="nutzer"] {
    display: none !important;
}

body.view-mieter:not(.mieter-has-session) .portal-subnav [data-tab]:not([data-tab="suchen"]) {
    display: none;
}

body.view-vermieter .portal-subnav {
    display: none !important;
}

.wf-app {
    display: flex;
    min-height: calc(100vh - 56px);
}

body.wf-portal-shell .wf-app {
    display: block;
    min-height: 100vh;
}

.wf-sidebar {
    flex: 0 0 var(--wf-sidebar-w);
    width: var(--wf-sidebar-w);
    background: #1b5e20;
    background: linear-gradient(180deg, #1b5e20 0%, #14532d 100%);
    color: #e8f5e9;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 56px;
    height: calc(100vh - 56px);
    z-index: 40;
    box-shadow: 4px 0 24px rgba(13, 61, 18, 0.18);
}

body.wf-portal-shell .wf-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    top: 0;
    height: 100vh;
    flex: none;
}

.wf-sidebar__brand {
    padding: 22px 20px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.wf-sidebar__brand-sub {
    display: block;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    opacity: 0.75;
    margin-top: 4px;
}

.wf-sidebar__logo-text.sidebar-logo-link {
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff;
    cursor: pointer;
    text-decoration: none;
}

.wf-sidebar__logo-text.sidebar-logo-link:hover {
    opacity: 0.92;
}

.wf-sidebar__nav {
    flex: 1;
    padding: 14px 10px 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow-y: auto;
}

.wf-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
    width: 100%;
    padding: 11px 14px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: #e0e0e0;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.wf-nav-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.wf-nav-icon svg,
.wf-nav-item > svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    stroke: #ffffff;
    fill: none;
}

.wf-nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.wf-nav-item.is-locked:hover {
    background: rgba(255, 255, 255, 0.1);
}

.wf-nav-item:hover .wf-nav-icon svg {
    stroke: #ffffff;
}

.wf-nav-item.is-active {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    box-shadow: inset 3px 0 0 #ffffff;
}

.wf-nav-item.is-active .wf-nav-icon svg {
    stroke: #ffffff;
}

.wf-nav-lock {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0.95;
}

.wf-nav-lock svg {
    width: 14px;
    height: 14px;
    stroke: #ffffff;
    fill: none;
}

.wf-nav-lock[hidden] {
    display: none !important;
}

.wf-nav-item.is-locked .wf-nav-item__label {
    opacity: 0.92;
}

.wf-trial-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 20px;
    margin: 0 0 20px;
    padding: 14px 18px;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 1px solid rgba(46, 125, 50, 0.35);
    border-radius: 12px;
    color: #14532d;
    font-size: 0.92rem;
    line-height: 1.5;
}

.wf-trial-banner[hidden] {
    display: none !important;
}

.wf-trial-banner__text {
    margin: 0;
    flex: 1;
    min-width: min(100%, 280px);
}

.wf-trial-banner__text strong {
    color: #1b5e20;
}

.wf-trial-banner__btn {
    flex-shrink: 0;
    padding: 10px 16px;
    border: none;
    border-radius: 10px;
    background: #2e7d32;
    color: #fff;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
}

.wf-trial-banner__btn:hover {
    background: #1b5e20;
}

.wf-tarif-lock-head h2 {
    margin: 0 0 8px;
    color: #14532d;
}

.wf-tarif-lock-head p {
    margin: 0;
    color: #64748b;
    font-size: 0.92rem;
    max-width: 640px;
}

.wf-tarif-lock-head[hidden] {
    display: none !important;
}

.wf-nav-item__label {
    flex: 1;
    min-width: 0;
}

.wf-nav-badge {
    flex-shrink: 0;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: #2e7d32;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 20px;
    text-align: center;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.25);
}

.wf-nav-badge[hidden] {
    display: none !important;
}

.wf-sidebar__logo-text,
.wf-main__logo-text {
    font-weight: 800;
    letter-spacing: 0.04em;
}

.wf-sidebar__divider {
    height: 1px;
    margin: 10px 8px;
    background: rgba(255, 255, 255, 0.12);
}

.wf-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.wf-main__header {
    background: #fff;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    padding: 16px 28px;
    position: sticky;
    top: 56px;
    z-index: 30;
}

.wf-main__slogan {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: var(--wf-green-dark);
}

.wf-main__slogan span {
    color: var(--wf-green);
}

body.view-vermieter .portal-panels {
    padding: 24px 28px 48px;
}

.wf-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.wf-stat-card {
    background: #fff;
    border-radius: 14px;
    padding: 18px 20px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}

.wf-stat-card span {
    display: block;
    font-size: 0.78rem;
    color: #64748b;
    margin-bottom: 6px;
}

.wf-stat-card strong {
    font-size: 1.75rem;
    color: var(--wf-green-dark);
}

.wf-panel-head {
    margin-bottom: 20px;
}

.wf-panel-head h2 {
    font-size: 1.35rem;
    color: #14532d;
    margin: 0 0 6px;
}

.wf-panel-head p {
    margin: 0;
    color: #64748b;
    font-size: 0.95rem;
}

.wf-objects-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.wf-objects-table th,
.wf-objects-table td {
    padding: 12px 16px;
    text-align: left;
    font-size: 0.88rem;
}

.wf-objects-table th {
    background: #f8fafc;
    color: #64748b;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.wf-objects-table tr + tr td {
    border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.wf-btn-sm {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    border: 1px solid rgba(46, 125, 50, 0.35);
    background: #fff;
    color: var(--wf-green);
    cursor: pointer;
    margin-right: 6px;
}

.wf-btn-sm--danger {
    border-color: rgba(220, 38, 38, 0.35);
    color: #dc2626;
}

.wf-bewerber-layout {
    display: grid;
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.wf-bewerber-grid {
    display: grid;
    gap: 10px;
}

.wf-bewerber-card {
    background: #fff;
    border-radius: 14px;
    padding: 14px 16px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s;
    text-align: left;
    width: 100%;
    font: inherit;
}

.wf-bewerber-card:hover {
    border-color: #86efac;
}

.wf-bewerber-card.is-active {
    border-color: var(--wf-green, #2e7d32);
    box-shadow: 0 0 0 2px rgba(46, 125, 50, 0.18);
    background: #f0fdf4;
}

.wf-bewerber-card__meta,
.wf-bewerber-card__docs {
    margin: 4px 0 0;
    font-size: 0.82rem;
    color: #64748b;
}

.wf-bewerber-card strong {
    color: #0f172a;
}

.wf-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    background: #dcfce7;
    color: #166534;
}

.wf-badge--pending {
    background: #fef3c7;
    color: #92400e;
}

.wf-sponsor-hint {
    display: block;
    margin-top: 4px;
    font-size: 0.68rem;
    color: #b45309;
    font-weight: 600;
}

.wf-sponsor-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 6px;
}

.wf-btn-sponsor {
    font-size: 0.72rem;
    padding: 5px 8px;
    border-radius: 8px;
    border: 1px solid #fcd34d;
    background: #fffbeb;
    color: #92400e;
    font-weight: 700;
    cursor: pointer;
}

.wf-btn-sponsor:hover {
    background: #fef3c7;
}

.wf-btn-pause {
    font-size: 0.72rem;
    padding: 5px 8px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    cursor: pointer;
}

.wf-info-card {
    background: #fff;
    border-radius: 14px;
    padding: 22px 24px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    max-width: 640px;
}

.inserat-restore-banner {
    background: linear-gradient(90deg, #e8f5e9, #f0fdf4);
    border: 1px solid rgba(46, 125, 50, 0.35);
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* display:flex darf [hidden] / leere Banner nicht überschreiben */
.inserat-restore-banner[hidden],
.inserat-restore-banner:empty {
    display: none !important;
    margin: 0;
    padding: 0;
    border: 0;
}

.inserat-restore-banner strong {
    color: #1b5e20;
    font-size: 0.95rem;
}

.inserat-restore-banner span {
    color: #64748b;
    font-size: 0.85rem;
}

.inserat-media__drop {
    border: 2px dashed rgba(46, 125, 50, 0.45);
    border-radius: 14px;
    padding: 28px 20px;
    text-align: center;
    cursor: pointer;
    background: #f8fafc;
    transition: border-color 0.15s, background 0.15s;
}

.inserat-media__drop:hover,
.inserat-media__drop.is-dragover {
    border-color: var(--wf-green);
    background: #ecfdf5;
}

.inserat-media__drop-icon svg {
    width: 40px;
    height: 40px;
    color: var(--wf-green);
    margin-bottom: 8px;
}

.inserat-media__drop-title {
    font-weight: 700;
    color: #14532d;
    margin: 0 0 4px;
}

.inserat-media__drop-hint {
    margin: 0;
    font-size: 0.8rem;
    color: #64748b;
}

.inserat-media__error {
    color: #dc2626;
    font-size: 0.85rem;
    margin: 10px 0 0;
    font-weight: 600;
}

.inserat-media__progress {
    margin-top: 12px;
}

.inserat-media__progress-track {
    height: 6px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
}

.inserat-media__progress-bar {
    display: block;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--wf-green), #66bb6a);
    border-radius: 999px;
    transition: width 0.2s;
}

.inserat-media__progress-text {
    font-size: 0.78rem;
    color: #64748b;
    margin-top: 6px;
    display: block;
}

.inserat-media__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.inserat-media__thumb {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 4/3;
    border: 2px solid transparent;
    background: #e2e8f0;
}

.inserat-media__thumb.is-main {
    border-color: var(--wf-green);
    box-shadow: 0 0 0 2px rgba(46, 125, 50, 0.25);
}

.inserat-media__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.inserat-media__thumb-actions {
    position: absolute;
    inset: auto 0 0 0;
    display: flex;
    gap: 4px;
    padding: 6px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.65));
}

.inserat-media__thumb-actions button {
    flex: 1;
    border: none;
    border-radius: 6px;
    padding: 4px 6px;
    font-size: 0.65rem;
    font-weight: 700;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.92);
    color: #0f172a;
}

.inserat-media__thumb-actions button.is-main-btn {
    background: var(--wf-green);
    color: #fff;
}

.inserat-media__main-label {
    position: absolute;
    top: 6px;
    left: 6px;
    background: var(--wf-green);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 999px;
    text-transform: uppercase;
}

.wf-tarif-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    max-width: 720px;
}

.wf-tarif-grid--3 {
    max-width: none;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.wf-tarif-grid--4 {
    max-width: none;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.wf-tarif-card__period {
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
}

.wf-tarif-card--mieter-premium {
    max-width: 420px;
    border-color: rgba(46, 125, 50, 0.45);
}

.wf-tarif-mieter-note {
    font-size: 0.82rem;
    color: #64748b;
    margin: 12px 0 0;
}

.wf-tarif-card--profi {
    border-color: rgba(46, 125, 50, 0.4);
}

.wf-tarif-card.is-highlight {
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.35);
    animation: wf-tarif-pulse 1.5s ease-in-out 2;
}

@keyframes wf-tarif-pulse {
    0%,
    100% {
        box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.35);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(46, 125, 50, 0.2);
    }
}

body.wf-upgrade-modal-open {
    overflow: hidden;
}

.wf-upgrade-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.wf-upgrade-modal[hidden] {
    display: none !important;
}

.wf-upgrade-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
}

.wf-upgrade-modal__card {
    position: relative;
    max-width: 440px;
    width: 100%;
    background: #fff;
    border-radius: 16px;
    padding: 24px 26px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.2);
}

.wf-upgrade-modal__card--green {
    border: 2px solid rgba(46, 125, 50, 0.35);
    background: linear-gradient(180deg, #f0fdf4 0%, #fff 40%);
}

.wf-upgrade-modal__card h3 {
    margin: 0 0 10px;
    color: #1b5e20;
    font-size: 1.2rem;
}

.wf-upgrade-modal__card p {
    margin: 0 0 14px;
    color: #475569;
    line-height: 1.55;
    font-size: 0.92rem;
}

.wf-upgrade-modal__list {
    margin: 0 0 18px;
    padding-left: 1.2rem;
    color: #334155;
    font-size: 0.88rem;
    line-height: 1.6;
}

.wf-upgrade-modal__actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.wf-tarif-card {
    background: #fff;
    border-radius: 16px;
    padding: 22px 24px;
    border: 2px solid rgba(15, 23, 42, 0.08);
    position: relative;
}

.wf-tarif-card.is-current {
    border-color: var(--wf-green);
    box-shadow: 0 4px 20px rgba(46, 125, 50, 0.12);
}

.wf-tarif-card--premium {
    border-color: rgba(234, 179, 8, 0.5);
}

.wf-tarif-card__tag {
    position: absolute;
    top: 14px;
    right: 14px;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: #dcfce7;
    color: #166534;
    padding: 4px 10px;
    border-radius: 999px;
}

.wf-tarif-card__tag--gold {
    background: #fef3c7;
    color: #92400e;
}

.wf-tarif-card h3 {
    margin: 0 0 8px;
    color: #14532d;
}

.wf-tarif-card__price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--wf-green-dark);
    margin: 0 0 2px;
}

/* Tarife-Panel im Location-Fix-Stil */
.wf-billing-toggle__wrap {
    display: flex;
    justify-content: center;
    margin: 4px 0 22px;
}

.wf-billing-toggle {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    background: #f8fafc;
}

.wf-billing-opt {
    border: 0;
    background: transparent;
    padding: 8px 18px;
    border-radius: 999px;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
    white-space: nowrap;
}

.wf-billing-opt.is-active {
    background: var(--wf-green);
    color: #fff;
}

.wf-billing-opt__save {
    font-size: 0.72rem;
    font-weight: 800;
    margin-left: 6px;
    color: #b45309;
}

.wf-billing-opt.is-active .wf-billing-opt__save {
    color: #fde68a;
}

.wf-tarif-card {
    display: flex;
    flex-direction: column;
}

.wf-tarif-card--popular {
    border-color: var(--wf-green);
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.15);
}

.wf-tarif-card__num {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--wf-green-dark);
}

.wf-tarif-card__period {
    font-size: 0.85rem;
    font-weight: 600;
    color: #94a3b8;
}

.wf-tarif-card__permo {
    margin: 2px 0 12px;
    font-size: 0.78rem;
    color: #94a3b8;
    min-height: 14px;
}

.wf-tarif-card__feat {
    list-style: none;
    margin: 0 0 4px;
    padding: 0;
    color: #475569;
    font-size: 0.9rem;
    line-height: 1.5;
    flex: 1;
}

.wf-tarif-card__feat li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 8px;
}

.wf-tarif-card__feat li::before {
    content: "";
    position: absolute;
    left: 3px;
    top: 5px;
    width: 5px;
    height: 9px;
    border: solid var(--wf-green);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.wf-tarif-overage-note {
    margin-top: 16px;
    padding: 9px 12px;
    border: 1px dashed rgba(46, 125, 50, 0.35);
    border-radius: 10px;
    background: #f0fdf4;
    color: #166534;
    font-size: 0.74rem;
    line-height: 1.45;
    opacity: 0.9;
}

.wf-tarif-card ul {
    margin: 0;
    padding-left: 1.1rem;
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.6;
}

.messenger-thread.has-unread strong {
    color: #0f172a;
}

.messenger-unread-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2e7d32;
    margin-left: 4px;
    vertical-align: middle;
}

.wf-tarif-limit-msg {
    margin-top: 16px;
    padding: 12px 16px;
    background: #fef3c7;
    border-radius: 10px;
    color: #92400e;
    font-weight: 600;
    font-size: 0.9rem;
    max-width: 640px;
}

.wf-storage-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
    margin: 0 0 16px;
    padding: 14px 18px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 12px;
    color: #991b1b;
    font-size: 0.92rem;
}

.wf-storage-banner[hidden] {
    display: none !important;
}

.wf-storage-banner__cta {
    margin-left: auto;
    padding: 8px 14px;
    border: none;
    border-radius: 8px;
    background: #dc2626;
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
}

.wf-storage-meter {
    margin-bottom: 20px;
    padding: 16px 18px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    max-width: 520px;
}

.wf-storage-meter__head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #14532d;
}

.wf-storage-meter__bar {
    height: 10px;
    background: #dcfce7;
    border-radius: 999px;
    overflow: hidden;
}

.wf-storage-meter__fill {
    display: block;
    height: 100%;
    background: var(--wf-green);
    border-radius: 999px;
    transition: width 0.25s ease;
}

.wf-storage-meter__fill.is-warn {
    background: #f59e0b;
}

.wf-storage-meter__fill.is-critical {
    background: #dc2626;
}

.wf-storage-meter__plan {
    margin: 10px 0 0;
    font-size: 0.82rem;
    color: #64748b;
}

.wf-storage-addons {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
}

.wf-storage-addons__title {
    margin: 0 0 6px;
    color: #14532d;
}

.wf-storage-addons__hint {
    margin: 0 0 16px;
    color: #64748b;
    font-size: 0.9rem;
}

.wf-storage-addon-status {
    margin-top: 12px;
    padding: 10px 14px;
    background: #ecfdf5;
    border-radius: 8px;
    color: #166534;
    font-weight: 600;
    font-size: 0.88rem;
}

.wf-nav-item--admin-only {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    margin-top: 8px;
    padding-top: 12px;
}

.wf-admin-finance__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    max-width: 900px;
}

.wf-admin-finance__card {
    padding: 18px 20px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.wf-admin-finance__card--profit {
    border-color: #86efac;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}

.wf-admin-finance__label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin-bottom: 8px;
}

.wf-admin-finance__value {
    font-size: 1.45rem;
    font-weight: 800;
    color: #0f172a;
}

.wf-admin-finance__value--cost {
    color: #b45309;
}

.wf-admin-finance__value--profit {
    color: #15803d;
}

.wf-admin-finance__meta {
    margin-top: 16px;
    font-size: 0.88rem;
    color: #64748b;
}

body.view-mieter .wf-storage-banner {
    margin: 12px 16px 0;
}

/* ——— Smart-Upload (OCR) ——— */
.wf-overview-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.wf-overview-stats .wf-stat-card {
    background: #fff;
    border-radius: 14px;
    padding: 18px 20px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}

.smart-upload-paths {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 28px;
}

@media (max-width: 960px) {
    .smart-upload-paths {
        grid-template-columns: 1fr;
    }
}

.smart-upload-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 24px 22px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    background: #fff;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.smart-upload-card:hover {
    border-color: var(--wf-green);
    box-shadow: 0 8px 28px rgba(46, 125, 50, 0.12);
    transform: translateY(-2px);
}

.smart-upload-card.is-locked {
    opacity: 0.85;
    position: relative;
}

.smart-upload-card.is-locked::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: rgba(15, 23, 42, 0.35);
    pointer-events: none;
}

.smart-upload-card.is-locked .smart-upload-card__lock {
    z-index: 2;
    color: #fff;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}

.wf-bewerber-card__actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    flex-shrink: 0;
}

.wf-bewerber-card__actions .wf-btn-sm {
    white-space: nowrap;
}

.wf-bewerber-empty {
    margin: 0;
    padding: 16px;
    border-radius: 12px;
    background: #f8fafc;
    color: #64748b;
    font-size: 0.9rem;
}

.smart-upload-card__icon svg {
    width: 32px;
    height: 32px;
    color: var(--wf-green);
}

.smart-upload-card strong {
    font-size: 1.05rem;
    color: #14532d;
}

.smart-upload-card span:last-child {
    font-size: 0.88rem;
    color: #64748b;
    line-height: 1.5;
}

.smart-upload-card__lock {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    font-size: 1.25rem;
    line-height: 1;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
}

.smart-upload-card__lock::before {
    content: "🔒";
}

.smart-upload-card__lock svg {
    display: none;
}

.smart-upload-back {
    margin-bottom: 16px;
    border: none;
    background: none;
    color: var(--wf-green);
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    font-family: inherit;
}

.smart-upload-dual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

@media (max-width: 700px) {
    .smart-upload-dual {
        grid-template-columns: 1fr;
    }
}

.smart-upload-drop {
    border: 2px dashed rgba(46, 125, 50, 0.35);
    border-radius: 14px;
    padding: 28px 20px;
    text-align: center;
    background: #f8fdf9;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}

.smart-upload-drop:hover,
.smart-upload-drop.is-dragover {
    border-color: var(--wf-green);
    background: #ecfdf5;
}

.smart-upload-drop--full {
    margin-bottom: 16px;
}

.smart-upload-drop p {
    margin: 0 0 6px;
    font-weight: 700;
    color: #14532d;
}

.smart-upload-drop span {
    font-size: 0.85rem;
    color: #64748b;
}

.smart-upload-progress {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 18px 16px;
    border-radius: 14px;
    border: 1px solid #d1fae5;
    background: linear-gradient(180deg, #ecfdf5 0%, #fff 70%);
}

.smart-upload-progress__loader {
    display: grid;
    place-items: center;
}

.smart-upload-progress__track {
    width: 100%;
    max-width: 28rem;
    height: 8px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
}

.smart-upload-progress__bar {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #2f6b57, #10b981);
    border-radius: 999px;
    transition: width 0.25s ease;
}

.smart-upload-progress__text {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 600;
    color: #166534;
    text-align: center;
}

.smart-upload-step__lead {
    color: #64748b;
    margin-bottom: 16px;
}

body.layout-vermieter-dashboard #panel-suchen,
body.view-vermieter #panel-suchen,
body.view-vermieter #panel-merkliste {
    display: none !important;
}

/* ——— Übersicht Dashboard ——— */
.wf-overview-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 20px;
    margin-bottom: 16px;
    border-radius: 14px;
    background: linear-gradient(135deg, #ecfdf5 0%, #fff 55%);
    border: 1px solid #bbf7d0;
}
.wf-overview-hero h3 { margin: 0 0 8px; font-size: 1.2rem; }
.wf-overview-hero p { margin: 0; color: #475569; max-width: 52ch; }
.wf-role-chip {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
}
.wf-role-chip--provider { background: #dcfce7; color: #166534; border: 1px solid #86efac; }
.wf-role-chip--seeker { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; margin-left: 8px; }
.wf-overview-actions {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}
.wf-overview-action {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid #86efac;
    background: #fff;
    cursor: pointer;
    font: inherit;
    text-align: left;
}
.wf-overview-action span { font-weight: 800; color: #14532d; }
.wf-overview-action small { color: #64748b; font-size: 0.78rem; }
.wf-overview-action--outline { border-style: dashed; }
.wf-overview-split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.wf-overview-split--hybrid { grid-template-columns: 1.4fr 1fr; align-items: start; }
.wf-overview-card--wide { grid-column: span 1; }
.wf-overview-hint { margin: 0 0 12px; font-size: 0.85rem; color: #64748b; }
.wf-hybrid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}
.wf-hybrid-card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
}
.wf-hybrid-card__thumb {
    aspect-ratio: 4 / 3;
    background: #e2e8f0;
    overflow: hidden;
}
.wf-hybrid-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.wf-hybrid-card__body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.wf-hybrid-card__body h5 { margin: 0; font-size: 0.95rem; line-height: 1.3; }
.wf-hybrid-card__meta { margin: 0; font-size: 0.8rem; color: #64748b; }
.wf-hybrid-card__actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 4px; }
.wf-badge--pending_review { background: #fef3c7; color: #92400e; }
.wf-badge--paused, .wf-badge--pausiert { background: #f1f5f9; color: #475569; }
.wf-badge--draft, .wf-badge--entwurf { background: #e0e7ff; color: #3730a3; }
.wf-listing-preview-modal {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.wf-listing-preview-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
}
.wf-listing-preview-modal__panel {
    position: relative;
    z-index: 1;
    max-width: 520px;
    width: 100%;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.2);
}
.wf-listing-preview-modal__close {
    position: absolute;
    top: 8px;
    right: 10px;
    z-index: 2;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    width: 32px;
    height: 32px;
    border-radius: 999px;
    font-size: 1.25rem;
    cursor: pointer;
}
.wf-listing-preview-modal__media img { width: 100%; max-height: 240px; object-fit: cover; display: block; }
.wf-listing-preview-modal__body { padding: 16px 18px 18px; }
.wf-listing-preview-modal__body h3 { margin: 8px 0 6px; }
.wf-listing-preview-modal__meta { color: #64748b; font-size: 0.9rem; margin: 0 0 10px; }
.wf-listing-preview-modal__desc { margin: 0 0 14px; font-size: 0.92rem; line-height: 1.5; }
.wf-listing-preview-modal__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.inserat-restore-banner--edit { background: #ecfdf5; border-color: #6ee7b7; color: #065f46; }
.wf-ticket-privacy { display: flex; align-items: flex-start; gap: 8px; font-size: 0.85rem; color: #475569; margin: 8px 0 12px; }
.wf-ticket-form__msg.is-err { color: #b91c1c; }
.wf-ticket-form__msg.is-ok { color: #166534; }
.wf-overview-card {
    padding: 16px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #fff;
}
.wf-overview-card h4 { margin: 0 0 10px; }
.wf-overview-list { list-style: none; padding: 0; margin: 0 0 12px; }
.wf-overview-list li { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid #f1f5f9; font-size: 0.9rem; }
.wf-link-btn {
    border: none;
    background: none;
    color: var(--wf-green, #2e7d32);
    font-weight: 700;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
    font: inherit;
}

/* Inserat: Markt-Dropdown */
.wf-inserat-market-select {
    margin-bottom: 16px;
    max-width: 420px;
}
.wf-inserat-market-select label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin-bottom: 6px;
}
.wf-inserat-market-select__input {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    border-radius: 12px;
    border: 1px solid #86efac;
    font: inherit;
    font-weight: 600;
    color: #14532d;
    background: #f0fdf4;
}

/* Messenger dual – Layout in portal-dashboard.css (#messengerRoot.messenger--dual) */
.wf-messenger-lane__title {
    margin: 0 0 4px;
    font-size: 0.95rem;
    font-weight: 800;
    color: #14532d;
}
.wf-messenger-lane__sub {
    margin: 0 0 10px;
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.35;
}
.wf-messenger-lane__hint {
    margin: -6px 0 8px;
    font-size: 0.75rem;
    color: #64748b;
}

/* Bewerber Akte */
.wf-bewerber-akte-mount {
    margin-top: 0;
    padding: 20px 22px;
    border-radius: 14px;
    border: 1px solid #86efac;
    background: #fff;
    min-height: 420px;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
}

.wf-bewerber-akte-placeholder {
    margin: 0;
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.5;
}

.wf-bewerber-akte__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e2e8f0;
}

.wf-bewerber-akte__head h3 {
    margin: 0 0 4px;
    font-size: 1.2rem;
    color: #14532d;
}

.wf-bewerber-akte__head p {
    margin: 0;
    font-size: 0.88rem;
    color: #64748b;
}

.wf-bewerber-akte__status-pill {
    flex-shrink: 0;
}

.wf-bewerber-akte__section {
    margin-bottom: 18px;
}

.wf-bewerber-akte__section h4 {
    margin: 0 0 10px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
}

.wf-bewerber-akte__fields {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.wf-bewerber-akte__field label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #94a3b8;
    margin-bottom: 4px;
}

.wf-bewerber-akte__field input,
.wf-bewerber-akte__field select,
.wf-bewerber-akte__field textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    font: inherit;
    font-size: 0.9rem;
}

.wf-bewerber-akte__field input:disabled,
.wf-bewerber-akte__field select:disabled,
.wf-bewerber-akte__field textarea:disabled {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #0f172a;
}

.wf-bewerber-akte__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 4px 0 16px;
    padding: 14px 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.wf-bewerber-akte__actions .portal-btn,
.wf-bewerber-akte__actions .inserat-btn {
    width: auto;
    min-width: unset;
    margin-top: 0;
    flex: 0 1 auto;
}

.wf-bewerber-akte__actions .portal-btn--danger {
    background: #fff;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

.wf-bewerber-akte__actions .portal-btn--danger:hover {
    background: #fef2f2;
}

.wf-akte-docs {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wf-akte-docs li {
    padding: 8px 10px;
    margin-bottom: 6px;
    border-radius: 8px;
    background: #f8fafc;
    font-size: 0.9rem;
}

.wf-akte-docs li.is-ok { color: #166534; }
.wf-akte-docs li.is-missing { color: #b45309; font-weight: 600; }

.wf-akte-missing ul {
    margin: 0;
    padding-left: 1.2rem;
    color: #b45309;
}

.wf-akte-complete {
    margin: 0;
    color: #166534;
    font-weight: 600;
    font-size: 0.9rem;
}

.wf-bewerber-notify-draft {
    width: 100%;
    margin-top: 0;
    font: inherit;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    resize: vertical;
}

.wf-bewerber-akte__notes {
    min-height: 72px;
}

@media (max-width: 960px) {
    .wf-bewerber-layout {
        grid-template-columns: 1fr;
    }
}

@media print {
    body * {
        visibility: hidden;
    }
    .wf-bewerber-akte-mount,
    .wf-bewerber-akte-mount * {
        visibility: visible;
    }
    .wf-bewerber-akte-mount {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        border: none;
        box-shadow: none;
    }
    .wf-bewerber-akte__actions,
    .wf-bewerber-notify-draft {
        display: none !important;
    }
}

/* Einstellungen NK-Stil */
.wf-settings-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.wf-settings-card {
    padding: 18px;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    background: #fff;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}
.wf-settings-card h3 { margin: 0 0 8px; font-size: 1.05rem; }
.wf-settings-check { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 0.9rem; }

/* Einstellungen – Tab-Navigation (Deep-Links) */
.wf-settings-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 18px;
    padding-bottom: 2px;
    border-bottom: 1px solid #e2e8f0;
}
.wf-settings-tab {
    appearance: none;
    border: 0;
    background: transparent;
    padding: 10px 14px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    border-radius: 8px 8px 0 0;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.wf-settings-tab:hover { color: #2f6b57; background: rgba(47, 107, 87, 0.06); }
.wf-settings-tab.is-active {
    color: #2f6b57;
    border-bottom-color: #2f6b57;
}
.wf-settings-section[hidden] { display: none; }

/* Konto-Aktivität */
.wf-activity-list { list-style: none; margin: 8px 0 0; padding: 0; }
.wf-activity-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.9rem;
}
.wf-activity-list li:last-child { border-bottom: 0; }
.wf-activity-list strong { display: block; font-size: 0.92rem; }
.wf-activity-list span { color: #64748b; font-size: 0.82rem; }
.wf-activity-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #2f6b57;
    margin-top: 6px;
    flex-shrink: 0;
}

/* Support Tickets */
.wf-support-id {
    padding: 16px;
    margin-bottom: 20px;
    border-radius: 12px;
    background: #f0fdf4;
    border: 1px solid #86efac;
}
.wf-support-id__grid { display: flex; gap: 24px; flex-wrap: wrap; margin: 10px 0; }
.wf-support-id__grid span { display: block; font-size: 0.75rem; color: #64748b; }
.wf-ticket-form, .wf-ticket-list { margin-top: 16px; }
.wf-ticket-card {
    padding: 12px;
    margin-bottom: 8px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    cursor: pointer;
}
.wf-ticket-card:hover { border-color: #86efac; background: #f8fafc; }

@media (max-width: 900px) {
    .wf-overview-split,
    .wf-bewerber-layout { grid-template-columns: 1fr; }
    .wf-app {
        flex-direction: column;
    }
    .wf-sidebar {
        position: relative;
        top: 0;
        width: 100%;
        height: auto;
        flex: none;
    }
    .wf-main__header {
        top: 0;
    }
}
