.fc-tb-overview, .fc-tb-detail, .fc-tb-form-wrap { font-family: Montserrat, -apple-system, sans-serif; }
.fc-tb-header { border-bottom: 3px solid #cf1c1f; padding-bottom: 12px; margin-bottom: 20px; }
.fc-tb-header h1 { font-family: Oswald, Montserrat, sans-serif; text-transform: uppercase; color: #1f1c1c; margin: 0; }
.fc-tb-btn-primary, .fc-tb-btn-secondary { display: inline-block; padding: 8px 16px; margin: 8px 8px 0 0; border-radius: 4px; text-decoration: none; font-weight: 600; border: 0; cursor: pointer; }
.fc-tb-btn-primary { background: #cf1c1f; color: #fff; }
.fc-tb-btn-primary:hover { background: #b01a1d; }
.fc-tb-btn-secondary { background: #f5f5f5; color: #1f1c1c; border: 1px solid #ccc; }
.fc-tb-filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 20px 0; padding: 12px; background: #f5f5f5; border-radius: 6px; }
.fc-tb-filters select, .fc-tb-filters input { padding: 6px 10px; border: 1px solid #ccc; border-radius: 4px; }
.fc-tb-filters button { background: #cf1c1f; color: #fff; border: 0; padding: 6px 16px; border-radius: 4px; cursor: pointer; }

/* ============================================================
 * Toolbar: durchgehende Such-/Filter-/Sort-Leiste
 * ============================================================ */
.fc-tb-toolbar {
    display: flex;
    align-items: stretch;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    margin: 20px 0;
    transition: border-color 0.15s, box-shadow 0.15s;
    min-height: 44px;
}
.fc-tb-toolbar:focus-within { border-color: #cf1c1f; box-shadow: 0 0 0 2px rgba(207,28,31,0.12); }

.fc-tb-search {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 14px;
}
.fc-tb-search-icon { color: #888; flex-shrink: 0; }
.fc-tb-search input { flex: 1; border: 0; outline: 0; padding: 8px 0; font: inherit; background: transparent; min-width: 0; }
.fc-tb-search-clear { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: #eee; color: #666; text-decoration: none; font-size: 16px; line-height: 1; flex-shrink: 0; }
.fc-tb-search-clear:hover { background: #ddd; color: #333; }

.fc-tb-popout { position: relative; display: flex; }
.fc-tb-popout > summary {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 0 16px;
    cursor: pointer; user-select: none;
    color: #1f1c1c; font-weight: 500; font-size: 14px;
    background: transparent;
    border-left: 1px solid #eee;
    list-style: none;
    transition: background 0.12s;
}
.fc-tb-popout > summary::-webkit-details-marker { display: none; }
.fc-tb-popout > summary:hover { background: #f5f5f5; }
.fc-tb-popout[open] > summary { background: #fafafa; color: #cf1c1f; }
.fc-tb-popout[open] > summary svg { stroke: #cf1c1f; }
.fc-tb-popout-label { font-size: 14px; }
.fc-tb-popout-badge { background: #cf1c1f; color: #fff; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; min-width: 18px; text-align: center; }

/* Popover (ohne Pfeil) */
.fc-tb-popout-body {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 280px;
    background: #fff;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.14), 0 2px 6px rgba(0,0,0,0.06);
    padding: 16px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 12px;
    animation: fc-tb-popover-in 0.14s ease-out;
}

@keyframes fc-tb-popover-in {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.fc-tb-popout-body label { display: flex; flex-direction: column; font-size: 12px; font-weight: 600; color: #555; gap: 4px; }
.fc-tb-popout-body select, .fc-tb-popout-body input { padding: 6px 10px; border: 1px solid #ccc; border-radius: 4px; font: inherit; font-size: 14px; }
.fc-tb-popout-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; }
.fc-tb-link-reset { font-size: 13px; color: #888; text-decoration: none; }
.fc-tb-link-reset:hover { color: #cf1c1f; text-decoration: underline; }
.fc-tb-btn-sm { padding: 6px 14px; font-size: 13px; }

.fc-tb-sort-option { flex-direction: row !important; align-items: center; gap: 8px !important; font-weight: 400 !important; font-size: 14px !important; color: #1f1c1c !important; cursor: pointer; padding: 6px 4px; border-radius: 4px; }
.fc-tb-sort-option:hover { background: #f5f5f5; }
.fc-tb-sort-option input { width: auto; }

@media (max-width: 640px) {
    .fc-tb-popout-body { right: -8px; min-width: 240px; }
    .fc-tb-popout-label { display: none; }
    .fc-tb-popout > summary { padding: 0 12px; }
}

.fc-tb-result-count { color: #888; font-size: 13px; margin: 0 0 16px; }
.fc-tb-card-date { color: #aaa; font-size: 11px; }
.fc-tb-card-region { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.fc-tb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.fc-tb-card { background: #fff; border: 1px solid #e1e1e1; border-radius: 8px; overflow: hidden; transition: box-shadow 0.15s; position: relative; display: block; }
.fc-tb-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
.fc-tb-card-link { display: block; text-decoration: none; color: inherit; }
.fc-tb-card-seller { padding: 8px 14px 12px; font-size: 12px; color: #888; border-top: 1px solid #f0f0f0; }
.fc-tb-card-seller-label { color: #aaa; margin-right: 4px; }
.fc-tb-card-seller-link { color: #cf1c1f; font-weight: 600; text-decoration: none; }
.fc-tb-card-seller-link:hover { text-decoration: underline; }
.fc-tb-card-type { position: absolute; top: 8px; left: 8px; padding: 4px 10px; color: #fff; font-size: 11px; font-weight: 600; text-transform: uppercase; border-radius: 3px; z-index: 1; }
.fc-tb-type-angebot { background: #cf1c1f; }
.fc-tb-type-gesuch { background: #1f1c1c; }
.fc-tb-card-photo { aspect-ratio: 16 / 9; background: #f0f0f0; display: flex; align-items: center; justify-content: center; }
.fc-tb-card-photo img { width: 100%; height: 100%; object-fit: cover; }
.fc-tb-card-no-photo { color: #999; font-size: 13px; }
.fc-tb-card-body { padding: 12px 14px; }
.fc-tb-card-body h3 { font-size: 15px; margin: 0 0 8px; }
.fc-tb-card-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.fc-tb-price { background: #cf1c1f; color: #fff; padding: 2px 8px; border-radius: 3px; font-size: 12px; font-weight: 600; }
.fc-tb-category { background: #eee; color: #555; padding: 2px 8px; border-radius: 3px; font-size: 12px; }
.fc-tb-card-region { color: #888; font-size: 12px; margin: 0; }
.fc-tb-pagination { display: flex; gap: 4px; justify-content: center; margin-top: 24px; }
.fc-tb-pagination a { padding: 6px 12px; border: 1px solid #ccc; border-radius: 4px; text-decoration: none; color: #1f1c1c; }
.fc-tb-pagination a.is-active { background: #cf1c1f; color: #fff; border-color: #cf1c1f; }
.fc-tb-empty { padding: 40px; text-align: center; color: #888; }

.fc-tb-detail .fc-tb-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 12px; margin-bottom: 20px; }
.fc-tb-detail .fc-tb-photos img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 6px; cursor: pointer; }
.fc-tb-detail-meta { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0; }
.fc-tb-pill { background: #f5f5f5; color: #555; padding: 4px 10px; border-radius: 3px; font-size: 13px; }
.fc-tb-description { background: #fff; border: 1px solid #e1e1e1; border-radius: 6px; padding: 16px 20px; line-height: 1.6; margin: 16px 0; white-space: pre-wrap; }

.fc-tb-form-wrap { max-width: 720px; margin: 0 auto; }
.fc-tb-form label { display: block; margin: 12px 0; }
.fc-tb-form label small { color: #888; font-size: 11px; font-weight: normal; }
.fc-tb-form input[type=text], .fc-tb-form input[type=email], .fc-tb-form input[type=tel], .fc-tb-form input[type=number], .fc-tb-form textarea, .fc-tb-form select { width: 100%; padding: 8px 10px; margin-top: 4px; border: 1px solid #ccc; border-radius: 4px; font-family: inherit; font-size: 14px; box-sizing: border-box; }
.fc-tb-form .fc-tb-btn-primary { padding: 12px 24px; }
.fc-tb-form hr { border: none; border-top: 1px solid #eee; margin: 20px 0; }
.fc-tb-notice { padding: 16px 20px; border-radius: 6px; margin: 20px 0; }
.fc-tb-notice-success { background: #e5f5e0; border-left: 4px solid #00a32a; color: #00731c; }
.fc-tb-notice-error { background: #fbe9e7; border-left: 4px solid #d63638; color: #b71c1c; }
