/* Usage dashboard. Dark board with lime and red accents, cards in three columns, a flow map in the middle. */

body.vb-an { background: var(--vb-grund); }
body.vb-an .hintergrund { display: none; }

.vb, .vb-schublade-grund {
  --vb-grund: #121014;
  --vb-karte: rgba(255, 255, 255, 0.034);
  --vb-karte-2: rgba(255, 255, 255, 0.055);
  --vb-karte-3: rgba(255, 255, 255, 0.085);
  --vb-rand: rgba(255, 255, 255, 0.06);
  --vb-text: #f1f0f3;
  --vb-leise: #a3a0a9;
  --vb-sehr-leise: #6f6c75;
  --vb-lime: #c8f53b;
  --vb-lime-dunkel: #1b2108;
  --vb-rot: #ef4d55;
  --vb-gelb: #f3c432;
  --vb-grau: #5b5861;
  --vb-r: 20px;
  color: var(--vb-text);
  font-family: "Segoe UI Variable Display", "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, sans-serif;
}
.vb {
  min-height: 100%;
  padding: 26px 34px 34px;
  color: var(--vb-text);
  font-family: "Segoe UI Variable Display", "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.4;
  background:
    radial-gradient(900px 520px at 88% -6%, rgba(158, 188, 34, 0.2), transparent 62%),
    radial-gradient(760px 520px at 52% 58%, rgba(136, 168, 24, 0.07), transparent 70%),
    radial-gradient(600px 420px at 0% 100%, rgba(120, 30, 40, 0.08), transparent 70%),
    var(--vb-grund);
  background-attachment: fixed;
}
.vb button, .vb select, .vb input, .vb-schublade button { font: inherit; color: inherit; }
.vb button, .vb-schublade button { cursor: pointer; }
.vb a.vb-punkt, .vb a.vb-rund, .vb-schublade a.vb-rund { text-decoration: none; color: #dcdbe0; }
.vb :focus-visible, .vb-schublade :focus-visible { outline: 2px solid var(--vb-lime); outline-offset: 2px; }
.vb-leise { color: var(--vb-leise); }
.vb-rotwert { color: var(--vb-rot) !important; }
.vb-limewert { color: var(--vb-lime) !important; }

/* ---------- head: brand, navigation, search ---------- */
.vb-kopf { display: flex; align-items: center; gap: 28px; }
.vb-marke { display: flex; align-items: center; gap: 12px; min-width: 210px; }
.vb-marke img { width: 30px; height: 30px; }
.vb-marke b { display: block; font-size: 15px; font-weight: 700; letter-spacing: 0.14em; }
.vb-marke small { display: block; margin-top: 2px; font-size: 10.5px; color: var(--vb-leise); letter-spacing: 0.02em; }
.vb-marke div { line-height: 1.15; }
.vb-nav { display: flex; gap: 6px; flex: 1; justify-content: center; overflow-x: auto; scrollbar-width: none; }
.vb-nav button {
  border: 0; background: transparent; padding: 10px 22px; border-radius: 999px; font-size: 14px; color: #e3e2e6; white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.vb-nav button:hover { background: var(--vb-karte-2); }
.vb-nav button[aria-current="page"] { background: var(--vb-lime); color: #121410; font-weight: 600; box-shadow: 0 0 28px rgba(200, 245, 59, 0.28); }
.vb-suche { display: flex; align-items: center; gap: 10px; }
.vb-suchfeld { position: relative; }
.vb-suchfeld input {
  width: 190px; padding: 10px 40px 10px 16px; border-radius: 999px; border: 1px solid var(--vb-rand); background: var(--vb-karte);
  outline: none; font-size: 13px;
}
.vb-suchfeld input::placeholder { color: var(--vb-sehr-leise); }
.vb-suchfeld svg { position: absolute; right: 14px; top: 50%; width: 15px; height: 15px; transform: translateY(-50%); pointer-events: none; color: #cfced3; }
.vb-suchfeld input[aria-invalid="true"] { border-color: rgba(239, 77, 85, 0.6); }
.vb-suchfeld input::-webkit-search-cancel-button { display: none; }
.vb-avatar {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px;
  background: radial-gradient(circle at 30% 30%, #e6ff8a, var(--vb-lime) 55%, #8fb51a); color: #1a1f08; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.07);
}

.vb-rund {
  width: 36px; height: 36px; flex: none; border-radius: 50%; display: inline-grid; place-items: center; padding: 0;
  border: 1px solid var(--vb-rand); background: var(--vb-karte); color: #d9d8dc; transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.vb-rund:hover { background: var(--vb-karte-3); color: #fff; }
.vb-rund:disabled { opacity: 0.35; cursor: default; }
.vb-rund.klein { width: 30px; height: 30px; }
.vb-rund.an, .vb-rund[aria-pressed="true"] { background: var(--vb-lime); border-color: transparent; color: #141710; box-shadow: 0 0 22px rgba(200, 245, 59, 0.35); }
.vb-rund svg { width: 16px; height: 16px; }
.vb-rund.klein svg { width: 13px; height: 13px; }

/* ---------- title ---------- */
.vb-titel { display: flex; align-items: center; gap: 18px; margin: 22px 0 18px; }
.vb-titel h1 { margin: 0; font-size: 46px; font-weight: 300; letter-spacing: -0.01em; line-height: 1.05; overflow-wrap: anywhere; }
.vb-titel .vb-rund { width: 40px; height: 40px; }

/* ---------- filter bar ---------- */
.vb-leiste { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.vb-filter { display: flex; align-items: center; gap: 8px 10px; flex-wrap: wrap; flex: 1; min-width: 0; }
.vb-filter label, .vb-wahl { display: inline-flex; align-items: center; gap: 9px; font-size: 12px; color: var(--vb-leise); white-space: nowrap; }
.vb-filter label + label { margin-left: 8px; }
.vb-pille {
  position: relative; display: inline-flex; align-items: center;
}
.vb-pille select, .vb-pille .vb-fest {
  appearance: none; -webkit-appearance: none; border: 1px solid var(--vb-rand); background: var(--vb-karte); border-radius: 999px;
  padding: 8px 32px 8px 14px; font-size: 13px; color: var(--vb-text); max-width: 210px; text-overflow: ellipsis; cursor: pointer;
}
.vb-pille select { field-sizing: content; min-width: 0; }
.vb-fluss-kopf .vb-pille select { max-width: 300px; }
.vb-pille .vb-fest { padding-right: 15px; cursor: default; overflow: hidden; white-space: nowrap; }
.vb-pille select:hover { background: var(--vb-karte-3); }
.vb-pille select option { background: #1d1b20; color: var(--vb-text); }
.vb-pille::after {
  content: ""; position: absolute; right: 15px; top: 50%; width: 6px; height: 6px; margin-top: -5px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); color: #cfced3; pointer-events: none;
}
.vb-pille.fest::after { display: none; }
.vb-steuer { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }

/* ---------- main grid ---------- */
.vb-raster { display: grid; grid-template-columns: 250px minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.vb-karte { background: var(--vb-karte); border: 1px solid var(--vb-rand); border-radius: var(--vb-r); }
.vb-karte-kopf { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.vb-karte-kopf h2, .vb-karte-kopf h3 { margin: 0; font-size: 15px; font-weight: 500; color: #ecebee; }

/* side bar */
.vb-seite { padding: 16px 12px; display: flex; flex-direction: column; min-height: 100%; position: sticky; top: 16px; }
.vb-seite nav { display: flex; flex-direction: column; gap: 2px; }
.vb-punkt {
  display: flex; align-items: center; gap: 13px; width: 100%; padding: 11px 12px; border: 0; border-radius: 13px; background: transparent;
  text-align: left; color: #dcdbe0; font-size: 14px; transition: background 0.15s, color 0.15s;
}
.vb-punkt:hover { background: var(--vb-karte-2); color: #fff; }
.vb-punkt[aria-current="true"] { background: var(--vb-karte-2); color: #fff; }
.vb-punkt > svg:first-child { width: 18px; height: 18px; flex: none; color: #c9c8ce; }
.vb-punkt span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vb-punkt .vb-pfeil { width: 12px; height: 12px; color: var(--vb-sehr-leise); transition: transform 0.2s; }
.vb-punkt[aria-expanded="true"] .vb-pfeil { transform: rotate(180deg); }
.vb-punkt.stark { font-weight: 600; color: #fff; }
.vb-unterliste { display: flex; flex-direction: column; gap: 1px; margin: 2px 0 8px 31px; }
.vb-unterliste button {
  display: flex; justify-content: space-between; gap: 10px; padding: 7px 10px; border: 0; border-radius: 10px; background: transparent;
  font-size: 12.5px; color: var(--vb-leise); text-align: left;
}
.vb-unterliste button span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vb-unterliste button span:last-child { color: var(--vb-sehr-leise); font-variant-numeric: tabular-nums; flex: none; }
.vb-unterliste button:hover { background: var(--vb-karte-2); color: #fff; }
.vb-unterliste button[aria-pressed="true"] { color: var(--vb-lime); }
.vb-unterliste .vb-leer { padding: 6px 10px; font-size: 12px; color: var(--vb-sehr-leise); }
.vb-kacheln { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 4px 4px 10px; }
.vb-kachel {
  display: flex; flex-direction: column; align-items: flex-start; gap: 22px; padding: 14px 12px 13px; border: 1px solid transparent; border-radius: 15px;
  background: var(--vb-karte-2); text-align: left; font-size: 13px; color: #e2e1e5; min-height: 108px; transition: border-color 0.15s, background 0.15s;
}
.vb-kachel:hover { border-color: rgba(200, 245, 59, 0.35); background: var(--vb-karte-3); }
.vb-kachel svg { width: 20px; height: 20px; color: var(--vb-lime); }
.vb-kachel b { font-weight: 400; line-height: 1.25; }
.vb-kachel small { display: block; margin-top: 3px; color: var(--vb-sehr-leise); font-size: 11.5px; }
.vb-seite-fuss { margin-top: auto; padding-top: 28px; display: flex; flex-direction: column; gap: 2px; }

/* middle */
.vb-mitte { display: grid; gap: 20px; min-width: 0; }
.vb-fluss { padding: 18px 18px 18px 18px; }
.vb-fluss-kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.vb-werkzeuge { display: flex; gap: 8px; }
.vb-fluss-rumpf { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 14px; margin-top: 14px; }
.vb-fluss-rumpf.ohne-modelle { grid-template-columns: minmax(0, 1fr); }
.vb-fluss-flaeche { position: relative; min-width: 0; overflow: hidden; border-radius: 14px; cursor: grab; touch-action: none; }
.vb-fluss-flaeche.zieht { cursor: grabbing; }
.vb-fluss-flaeche svg { display: block; width: 100%; height: auto; user-select: none; }
.vb-fluss-leer { display: grid; place-items: center; min-height: 380px; text-align: center; color: var(--vb-leise); padding: 30px; }
.vb-fluss-leer b { display: block; color: var(--vb-text); font-size: 16px; font-weight: 500; margin-bottom: 6px; }
.vb-ergebnisse { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.vb-ergebnis { padding: 15px 14px 14px; border-radius: 16px; background: var(--vb-karte-2); display: flex; flex-direction: column; min-height: 150px; }
.vb-ergebnis .vb-karte-kopf h3 { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vb-ergebnis .vb-art { font-size: 11.5px; color: var(--vb-sehr-leise); margin-top: 2px; }
.vb-ergebnis .vb-zahlen { margin-top: auto; padding-top: 18px; }
.vb-zahlen { display: flex; gap: 14px; justify-content: space-between; }
.vb-zahl b { display: block; font-size: 21px; font-weight: 300; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.vb-zahl small { display: block; font-size: 11px; color: var(--vb-sehr-leise); margin-top: 1px; }
.vb-zahl.rechts { text-align: right; }

/* bottom cards */
.vb-unten { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.vb-klein { padding: 18px 18px 0; display: flex; flex-direction: column; min-height: 248px; overflow: hidden; }
.vb-klein .vb-zahlen { margin-top: 18px; }
.vb-klein .vb-zahl b { font-size: 22px; }
.vb-trenner { width: 1px; align-self: stretch; background: var(--vb-rand); }
.vb-diagramm { margin-top: auto; position: relative; }
.vb-diagramm svg { display: block; width: 100%; height: auto; overflow: visible; }
.vb-legende { display: flex; gap: 12px; font-size: 11px; color: var(--vb-sehr-leise); margin-top: 10px; }
.vb-legende i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 5px; vertical-align: 1px; }

/* right column */
.vb-rechts { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.vb-chips { display: flex; justify-content: flex-end; align-items: center; gap: 8px; flex-wrap: wrap; min-height: 36px; }
.vb-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 10px 7px 14px; border-radius: 999px; border: 1px solid var(--vb-rand);
  background: var(--vb-karte); font-size: 12.5px; color: #e4e3e7; max-width: 100%;
}
.vb-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vb-chip button { border: 0; background: transparent; padding: 0 2px; color: var(--vb-leise); font-size: 13px; line-height: 1; }
.vb-chip button:hover { color: #fff; }
.vb-spalte { padding: 18px 18px 8px; }
.vb-abschnitt { padding: 4px 0 20px; }
.vb-abschnitt + .vb-abschnitt { padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.035); }
.vb-abschnitt .vb-karte-kopf { margin-bottom: 14px; }
.vb-zeitleiste { position: relative; display: flex; flex-direction: column; gap: 13px; padding-left: 16px; }
.vb-zeitleiste::before { content: ""; position: absolute; left: 3px; top: 6px; bottom: 6px; width: 1px; background: rgba(255, 255, 255, 0.12); }
.vb-zeile { position: relative; display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: #dddce1; }
.vb-zeile::before { content: ""; position: absolute; left: -16px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: var(--vb-lime); }
.vb-zeile.kritisch::before { background: var(--vb-rot); }
.vb-zeile.warnung::before { background: var(--vb-gelb); }
.vb-zeile.ruhig::before { background: #d8d7dc; }
.vb-zeile > span:first-child { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vb-zeile .vb-wert { color: #c9c8cd; font-variant-numeric: tabular-nums; flex: none; }
.vb-zeile .vb-wert2 { width: 52px; text-align: right; color: var(--vb-sehr-leise); font-variant-numeric: tabular-nums; flex: none; }
.vb-leerzeile { font-size: 12.5px; color: var(--vb-sehr-leise); }

.vb-gesundheit { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; height: 9px; }
.vb-gesundheit i { border-radius: 99px; background: var(--vb-grau); overflow: hidden; position: relative; }
.vb-gesundheit i b { position: absolute; top: 0; bottom: 0; }
.vb-unterzeile { margin-top: 10px; font-size: 11.5px; color: var(--vb-leise); }
.vb-motorliste { margin-top: 10px; display: grid; gap: 6px; font-size: 11.5px; color: var(--vb-leise); }
.vb-motorliste div { display: flex; justify-content: space-between; gap: 10px; }

.vb-wertung .vb-zeile { gap: 12px; }
.vb-wertung .vb-zeile > span:first-child { flex: 0 0 82px; }
.vb-balken {
  flex: 1; height: 7px; border-radius: 99px; position: relative; overflow: hidden;
  background: repeating-linear-gradient(-55deg, rgba(255, 255, 255, 0.07) 0 2px, transparent 2px 6px);
}
.vb-balken b { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; background: var(--vb-lime); min-width: 0; }
.vb-wertung .vb-wert { width: 40px; text-align: right; }

/* single calls: drawer */
.vb-schublade-grund { position: fixed; inset: 0; background: rgba(8, 7, 10, 0.55); backdrop-filter: blur(3px); z-index: 20; display: flex; justify-content: flex-end; }
.vb-schublade {
  width: min(1040px, 100%); height: 100%; background: #17151a; border-left: 1px solid var(--vb-rand); display: flex; flex-direction: column;
  box-shadow: -30px 0 80px rgba(0, 0, 0, 0.5); color: var(--vb-text);
}
.vb-schublade header { display: flex; align-items: center; gap: 14px; padding: 22px 24px 14px; }
.vb-schublade header h2 { margin: 0; font-size: 22px; font-weight: 400; flex: 1; }
.vb-reiter { display: flex; gap: 6px; padding: 0 24px 14px; flex-wrap: wrap; align-items: center; }
.vb-reiter button { border: 1px solid var(--vb-rand); background: var(--vb-karte); padding: 7px 15px; border-radius: 999px; font-size: 12.5px; color: #dddce1; }
.vb-reiter button[aria-pressed="true"] { background: var(--vb-lime); color: #141710; border-color: transparent; font-weight: 600; }
.vb-reiter .vb-hinweis { margin-left: auto; font-size: 11.5px; color: var(--vb-sehr-leise); }
.vb-tabelle { flex: 1; overflow: auto; padding: 0 24px 24px; }
.vb-tabelle table { width: 100%; border-collapse: collapse; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.vb-tabelle th { position: sticky; top: 0; background: #17151a; text-align: left; font-weight: 500; color: var(--vb-leise); padding: 9px 10px; border-bottom: 1px solid var(--vb-rand); white-space: nowrap; }
.vb-tabelle td { padding: 9px 10px; border-bottom: 1px solid rgba(255, 255, 255, 0.04); vertical-align: top; }
.vb-tabelle td:not(:last-child) { white-space: nowrap; }
.vb-tabelle td.zahl, .vb-tabelle th.zahl { text-align: right; white-space: nowrap; }
.vb-tabelle td small { display: block; color: var(--vb-rot); margin-top: 2px; max-width: 320px; }
.vb-marke-status { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; background: rgba(200, 245, 59, 0.13); color: var(--vb-lime); white-space: nowrap; }
.vb-marke-status.fehler { background: rgba(239, 77, 85, 0.14); color: var(--vb-rot); }
.vb-marke-status.abgebrochen { background: rgba(243, 196, 50, 0.13); color: var(--vb-gelb); }

.vb-fehlerzeile { margin: 0 0 16px; padding: 12px 16px; border-radius: 14px; background: rgba(239, 77, 85, 0.1); color: #ffb3b6; font-size: 13px; }
.vb-laedt { opacity: 0.55; transition: opacity 0.2s; }

/* ---------- smaller windows ---------- */
@media (max-width: 1440px) {
  .vb { padding: 22px 24px 28px; }
  .vb-raster { grid-template-columns: 220px minmax(0, 1fr) 290px; gap: 16px; }
  .vb-fluss-rumpf { grid-template-columns: minmax(0, 1fr) 170px; }
  .vb-nav button { padding: 9px 16px; }
  .vb-marke { min-width: 0; }
}
@media (max-width: 1220px) {
  .vb-raster { grid-template-columns: 210px minmax(0, 1fr); }
  .vb-rechts { grid-column: 1 / -1; }
  .vb-spalte { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); column-gap: 26px; }
  .vb-abschnitt + .vb-abschnitt { border-top: 0; padding-top: 4px; }
  .vb-chips { justify-content: flex-start; }
  .vb-filter { flex-basis: 100%; }
  .vb-suchfeld input { width: 150px; }
}
@media (max-width: 980px) {
  .vb-kopf { flex-wrap: wrap; gap: 14px; }
  .vb-nav { order: 3; flex-basis: 100%; justify-content: flex-start; }
  .vb-raster { grid-template-columns: minmax(0, 1fr); }
  .vb-seite { position: static; order: 3; }
  .vb-mitte { order: 1; }
  .vb-rechts { order: 2; }
  .vb-seite nav { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
  .vb-seite-fuss { padding-top: 10px; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
  .vb-kacheln { grid-column: 1 / -1; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .vb-kachel { min-height: 0; gap: 12px; }
  .vb-unten { grid-template-columns: minmax(0, 1fr); }
  .vb-fluss-rumpf { grid-template-columns: minmax(0, 1fr); }
  .vb-ergebnisse { flex-direction: row; overflow-x: auto; }
  .vb-ergebnis { min-width: 200px; min-height: 0; }
  .vb-titel h1 { font-size: 34px; }
}
@media (max-width: 620px) {
  .vb { padding: 16px 16px 24px; }
  .vb-fluss { padding: 14px; }
  .vb-fluss-flaeche { overflow-x: auto; }
  .vb-fluss-flaeche svg { min-width: 600px; }
  .vb-titel { gap: 12px; margin: 16px 0 14px; }
  .vb-titel h1 { font-size: 28px; }
  .vb-filter label + label { margin-left: 0; }
  .vb-suchfeld input { width: 120px; }
  .vb-marke small { display: none; }
  .vb-spalte { grid-template-columns: minmax(0, 1fr); }
}
