﻿/* The provider landing page "Öffentliche Ausschreibungen" (Views/Partials/TendersLanding). Builds on the tokens of
   site-header.css and the sections of home-page.css; everything here is scoped to .fbx-page and prefixed
   fbx-tl- so the start page stays untouched. Light only, like the rest of the legacy site. */

/* Hero: the Tender AI name above the heading, the menu wordmark at a larger size. */
.fbx-page .fbx-tl-brand { display: inline-flex; align-items: center; gap: 12px; }
.fbx-page .fbx-tl-brand .fbx-lw-word { font-size: 26px; }
.fbx-page .fbx-tl-brand-name { display: inline-flex; align-items: flex-start; gap: 6px; }
.fbx-page .fbx-tl-brand .fbx-lw-tag { margin-top: 0; padding: 3px 6px; border-radius: 7px; font-size: 10px; }

/* Hero: the list of new tenders, one per live source, each with its fit. */
.fbx-page .fbx-tl-list-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.fbx-page .fbx-tl-list-title { font-weight: 700; font-size: 17px; letter-spacing: -.01em; }
.fbx-page .fbx-tl-list-meta { font-size: 13px; color: var(--muted); }
.fbx-page .fbx-tl-live { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--green); animation: fbx-live 2.4s ease-in-out infinite; }
.fbx-page .fbx-tl-list { display: grid; gap: 10px; margin: 16px 0 0; padding: 0; list-style: none; }
.fbx-page .fbx-tl-item { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px; border-radius: 16px; background: var(--bg); }
.fbx-page .fbx-tl-item .fbx-logo-sq { width: 40px; height: 40px; border-radius: 11px; font-size: 13px; }
.fbx-page .fbx-tl-src { font-size: 11.5px; color: var(--muted); font-family: var(--mono); overflow-wrap: anywhere; }
.fbx-page .fbx-tl-title { margin-top: 3px; font-weight: 700; font-size: 15px; line-height: 1.3; letter-spacing: -.01em; }
.fbx-page .fbx-tl-meta span { white-space: nowrap; }
.fbx-page .fbx-tl-meta { margin-top: 3px; font-size: 12.5px; color: var(--muted); }
.fbx-page .fbx-tl-fit { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 14px; background: var(--blue-soft); color: var(--blue); line-height: 1; }
.fbx-page .fbx-tl-fit b { font-size: 19px; letter-spacing: -.02em; }
.fbx-page .fbx-tl-fit small { margin-top: -10px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.fbx-page .fbx-tl-fit.fbx-tl-fit-top { background: var(--green-soft); color: var(--green); }

/* Why it is hard, and the three steps: three cards in a row. */
.fbx-page .fbx-tl-pains { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 40px 0 0; padding: 0; list-style: none; }

/* Scene headings shared by the sources and fit scenes. */
.fbx-page .fbx-tl-scene-h { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* Sources: the three portals and the service areas they cover. */
.fbx-page .fbx-tl-sources { display: grid; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.fbx-page .fbx-tl-sources li { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--bg); }
.fbx-page .fbx-tl-sources .fbx-logo-sq { width: 40px; height: 40px; border-radius: 11px; font-size: 13px; }
.fbx-page .fbx-tl-sources .fbx-dir-name { overflow-wrap: anywhere; }
.fbx-page .fbx-tl-areas-h { margin-top: 20px; }
.fbx-page .fbx-tl-areas { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.fbx-page .fbx-tl-areas .fbx-chip { box-shadow: inset 0 0 0 1px var(--line); background: var(--panel); font-weight: 600; }

/* Fit: the score, its four dimensions and what still needs attention. */
.fbx-page .fbx-tl-fit-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.fbx-page .fbx-tl-score { margin-top: 6px; display: flex; align-items: baseline; gap: 6px; }
.fbx-page .fbx-tl-score b { font-size: 44px; line-height: 1; letter-spacing: -.03em; }
.fbx-page .fbx-tl-score span { font-size: 15px; color: var(--muted); font-weight: 600; }
.fbx-page .fbx-tl-bars .fbx-rv-bar { grid-template-columns: 170px 1fr 30px; }
.fbx-page .fbx-tl-bars .fbx-rv-track i { background: var(--blue); }
.fbx-page .fbx-tl-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.fbx-page .fbx-tl-note { padding: 12px 14px; border-radius: 12px; background: var(--amber-soft); font-size: 13px; font-weight: 600; color: var(--ink); min-width: 0; }
.fbx-page .fbx-tl-note span { display: block; margin-bottom: 4px; font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--amber); }
.fbx-page .fbx-tl-note.fbx-tl-risk { background: #fdecec; }
.fbx-page .fbx-tl-note.fbx-tl-risk span { color: #c62828; }

/* Staying on top: four cards with an icon each. */
.fbx-page .fbx-tl-where { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
.fbx-page .fbx-tl-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); }
.fbx-page .fbx-tl-icon svg { width: 22px; height: 22px; }
.fbx-page .fbx-tl-icon.fbx-tl-green { background: var(--green-soft); color: var(--green); }
.fbx-page .fbx-tl-icon.fbx-tl-violet { background: var(--violet-soft); color: var(--violet); }
.fbx-page .fbx-tl-icon.fbx-tl-amber { background: var(--amber-soft); color: var(--amber); }

@media (max-width: 1020px) {
  .fbx-page .fbx-tl-where { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fbx-page .fbx-tl-hero-vis { max-width: 560px; }
}
@media (max-width: 680px) {
  .fbx-page .fbx-tl-pains, .fbx-page .fbx-tl-where, .fbx-page .fbx-tl-notes { grid-template-columns: minmax(0, 1fr); }
  .fbx-page .fbx-tl-item { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 12px; }
  .fbx-page .fbx-tl-item .fbx-logo-sq { display: none; }
  .fbx-page .fbx-tl-fit { width: 48px; height: 48px; }
  .fbx-page .fbx-tl-fit b { font-size: 17px; }
  .fbx-page .fbx-tl-bars .fbx-rv-bar { grid-template-columns: 1fr 30px; }
  .fbx-page .fbx-tl-score b { font-size: 36px; }
  .fbx-page .fbx-tl-sources li { grid-template-columns: 40px minmax(0, 1fr); row-gap: 8px; }
  .fbx-page .fbx-tl-sources .fbx-chip { grid-column: 2; justify-self: start; }
}
