/* RANQ Firmenverzeichnis — an ranq.ch/suche angelehnt */
.ranq-wrap { max-width: 1080px; margin: 0 auto; padding: 24px 16px 64px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; color: #0f172a; }
.ranq-wrap * { box-sizing: border-box; }

.ranq-hero { text-align: center; padding: 32px 0 8px; }
.ranq-badge { display: inline-block; font-size: 13px; color: #475569; background: #f1f5f9; border: 1px solid #e2e8f0; border-radius: 999px; padding: 4px 14px; margin-bottom: 14px; }
.ranq-hero h1 { font-size: 34px; line-height: 1.15; margin: 0 0 22px; font-weight: 800; }

.ranq-searchbar { display: flex; gap: 8px; max-width: 640px; margin: 0 auto 14px; }
.ranq-searchbar input { flex: 1; padding: 13px 18px; font-size: 16px; border: 1px solid #cbd5e1; border-radius: 12px; background: #fff; }
.ranq-searchbar input:focus { outline: 2px solid #0f172a; border-color: #0f172a; }
.ranq-searchbar button { padding: 13px 26px; font-size: 16px; font-weight: 600; color: #fff; background: #0f172a; border: none; border-radius: 12px; cursor: pointer; }
.ranq-searchbar button:hover { background: #1e293b; }

.ranq-filters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 8px; }
.ranq-filters select, .ranq-filters input { padding: 8px 12px; font-size: 14px; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; color: #0f172a; max-width: 220px; }

.ranq-resulthead { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid #e2e8f0; margin-top: 22px; padding-top: 18px; flex-wrap: wrap; gap: 6px; }
.ranq-resulthead h2 { font-size: 20px; margin: 0; }
#ranq-count { margin: 0; color: #475569; font-size: 14px; }

.ranq-item { display: flex; justify-content: space-between; align-items: center; gap: 14px; background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 16px 18px; margin: 10px 0; transition: box-shadow .15s, border-color .15s; }
.ranq-item:hover { border-color: #94a3b8; box-shadow: 0 2px 10px rgba(15,23,42,.06); }
.ranq-item .ranq-main { min-width: 0; }
.ranq-item h3 { margin: 0 0 3px; font-size: 16.5px; font-weight: 700; }
.ranq-item h3 a { color: #0f172a; text-decoration: none; }
.ranq-item h3 a:hover { text-decoration: underline; }
.ranq-item .ranq-meta { font-size: 13.5px; color: #64748b; margin: 0; }
.ranq-tags { margin-top: 7px; display: flex; gap: 6px; flex-wrap: wrap; }
.ranq-tag { font-size: 12px; color: #334155; background: #f1f5f9; border-radius: 999px; padding: 2px 10px; }
.ranq-item .ranq-cta { flex-shrink: 0; font-size: 14px; font-weight: 600; color: #0f172a; text-decoration: none; border: 1px solid #cbd5e1; border-radius: 10px; padding: 8px 14px; white-space: nowrap; }
.ranq-item .ranq-cta:hover { background: #f8fafc; }

.ranq-pagination { display: flex; gap: 6px; justify-content: center; margin-top: 22px; flex-wrap: wrap; }
.ranq-pagination button { padding: 8px 14px; font-size: 14px; border: 1px solid #cbd5e1; background: #fff; border-radius: 10px; cursor: pointer; color: #0f172a; }
.ranq-pagination button.ranq-cur { background: #0f172a; color: #fff; border-color: #0f172a; }
.ranq-pagination button:disabled { opacity: .4; cursor: default; }

.ranq-empty, .ranq-loading { text-align: center; color: #64748b; padding: 40px 0; }

/* Profilseite */
.ranq-profile h1 { font-size: 30px; margin: 6px 0 4px; }
.ranq-breadcrumb a { color: #475569; text-decoration: none; font-size: 14px; }
.ranq-sub { color: #64748b; margin: 0 0 20px; }
.ranq-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 20px 22px; margin: 14px 0; }
.ranq-card h2 { font-size: 17px; margin: 0 0 14px; }
.ranq-facts dl { display: grid; grid-template-columns: 180px 1fr; row-gap: 10px; margin: 0; }
.ranq-facts dt { color: #64748b; font-size: 14px; }
.ranq-facts dd { margin: 0; font-size: 15px; }
.ranq-zweck { font-size: 15px; line-height: 1.6; color: #334155; margin: 0; }
.ranq-source { font-size: 12.5px; color: #94a3b8; margin-top: 18px; }

@media (max-width: 640px) {
    .ranq-hero h1 { font-size: 26px; }
    .ranq-item { flex-direction: column; align-items: flex-start; }
    .ranq-facts dl { grid-template-columns: 1fr; row-gap: 2px; }
    .ranq-facts dt { margin-top: 8px; }
}
