/* Quantvis Corporate Design fuer die Laien-Ansicht (V7) - einzige Quelle fuer CSS-Farbwerte.

   Die Markenfarben folgen dem Style Handoff (Hex-Werte als Quelle der Wahrheit, wie im
   Handelstagebuch-Frontend; die oklch()-Formeln des Handoffs rendern dunkler als die
   danebenstehenden Hex-Werte). Toene, die nur der Design-Entwurf definiert (Bandfarben,
   Statusfarben), bleiben in oklch wie im Entwurf. Kein Dunkelmodus in V7. */

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/qv-static/fonts/manrope-variable.woff2") format("woff2");
}

@font-face {
  font-family: "Spline Sans Mono";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("/qv-static/fonts/spline-sans-mono-variable.woff2") format("woff2");
}

:root {
  --tiefsee: #1b2e33;
  --petrol: #22424b;
  --signal: #4fb6a0;
  --raster: #d3d9da;
  --papier: #f5f6f6;
  --weiss: #fdfdfd;
  --text2: #4c5b5f;
  --nav-inaktiv: #9dc7c7;

  --petrol-mid: oklch(0.74 0.05 200);
  --petrol-hell: oklch(0.93 0.015 210);
  --band-aussen: oklch(0.88 0.025 205);
  --vorlage-rand: oklch(0.74 0.02 230);

  /* Statusfarben der Einordnung. "ok" teilt den Farbton (175) mit Signal, ist aber dunkler und
     gedeckter; Frank bestaetigt das noch gegen das Corporate Design - Wert nur hier. */
  --status-ok: oklch(0.45 0.09 175);
  --status-warn: oklch(0.48 0.10 70);
  --status-risk: oklch(0.42 0.13 340);

  --font-sans: "Manrope", system-ui, sans-serif;
  --font-mono: "Spline Sans Mono", ui-monospace, monospace;
}

body {
  margin: 0;
  background: var(--papier);
  color: var(--tiefsee);
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.55;
}
a { color: var(--tiefsee); }
a:hover { color: var(--petrol); }
h1, h2, h3, p, dl, dd, ul { margin: 0; }

/* NiceGUI/Quasar-Grundflaechen neutralisieren */
.q-page, .nicegui-content { padding: 0; }
.nicegui-content { gap: 0; align-items: stretch; width: 100%; }

.m { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* Programmatischer Fokus auf die Ueberschrift nach einem Schrittwechsel: kein Ring */
h1:focus, h1:focus-visible { outline: none; box-shadow: none; }

/* Fokus: nie entfernen */
:focus-visible {
  outline: 3px solid var(--tiefsee);
  outline-offset: 3px;
  box-shadow: 0 0 0 7px var(--signal);
}
.qv-hd :focus-visible { outline-color: var(--papier); }

/* ---- Kopfzeile --------------------------------------------------------- */
.qv-hd { background: var(--tiefsee); width: 100%; }
.qv-hd-in {
  max-width: 1120px; margin: 0 auto; padding: 12px 24px; box-sizing: border-box;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 32px;
}
.qv-brand { display: flex; flex-direction: column; align-items: flex-start; text-decoration: none; color: var(--papier); }
.qv-brand:hover { color: var(--papier); }
.qv-logo { display: flex; align-items: center; gap: 11px; }
.qv-bars { display: flex; align-items: center; gap: 3px; flex: none; }
.qv-bars i { display: block; width: 5px; background: var(--papier); }
.qv-bars i:nth-child(2) { background: var(--signal); height: 24px; }
.qv-bars i:nth-child(1), .qv-bars i:nth-child(3) { height: 11px; }
.qv-wordmark { font-size: 24px; letter-spacing: -0.035em; line-height: 1; font-weight: 400; }
.qv-wordmark em { font-style: normal; font-weight: 800; }
.qv-wordmark em + em { font-weight: 400; color: var(--nav-inaktiv); }
.qv-sub {
  display: block; font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em;
  color: var(--nav-inaktiv); margin-top: 5px;
}
.qv-nav { display: flex; flex-wrap: wrap; gap: 0 8px; }
.qv-nav a, .qv-nav button {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  font: 600 16px var(--font-sans); color: var(--nav-inaktiv); text-decoration: none;
  border: 0; border-bottom: 3px solid transparent; background: transparent; cursor: pointer;
}
.qv-nav a:hover, .qv-nav button:hover { color: var(--papier); }
.qv-nav a.on { color: var(--papier); border-bottom-color: var(--signal); }

.qv-wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; width: 100%; box-sizing: border-box; }
.qv-main { padding-top: 40px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 48px; }

/* ---- Typografie --------------------------------------------------------- */
.qv-eyebrow {
  font-family: var(--font-mono); font-size: 14px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--petrol); font-weight: 500;
}
.qv-h1 { font-size: 44px; line-height: 1.12; font-weight: 800; letter-spacing: -0.02em; text-wrap: balance; }
.qv-h1-lg { font-size: 52px; }
.qv-h2 { font-size: 28px; font-weight: 800; line-height: 1.2; letter-spacing: -0.01em; }
.qv-lbl { font-weight: 800; font-size: 24px; line-height: 1.3; }
.qv-hint { color: var(--text2); font-size: 16px; text-wrap: pretty; }
.qv-big {
  font-family: var(--font-mono); font-weight: 700; white-space: nowrap;
  text-decoration: underline; text-decoration-color: var(--signal);
  text-decoration-thickness: 6px; text-underline-offset: 6px;
}

/* ---- Fortschritt -------------------------------------------------------- */
.qv-prog { display: flex; gap: 8px; }
.qv-ps { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.qv-bar { height: 8px; border-radius: 4px; background: var(--raster); }
.qv-ps.done .qv-bar { background: var(--petrol); }
.qv-ps.cur .qv-bar { background: var(--signal); box-shadow: inset 0 0 0 1.5px var(--tiefsee); }
.qv-pl { font-size: 14px; color: var(--text2); }
.qv-ps.cur .qv-pl { color: var(--tiefsee); font-weight: 600; }

/* ---- Schaltflaechen ----------------------------------------------------- */
.qv-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px;
  padding: 0 28px; border-radius: 10px; font: 700 18px var(--font-sans); text-decoration: none;
  border: 2px solid var(--tiefsee); cursor: pointer; box-sizing: border-box; text-align: left;
}
.qv-btn-p { background: var(--tiefsee); color: var(--weiss); }
.qv-btn-p:hover, .qv-btn-p:active { background: var(--signal); color: var(--tiefsee); }
.qv-btn-g { background: transparent; color: var(--tiefsee); }
.qv-btn-g:hover { background: var(--petrol-hell); color: var(--tiefsee); }
.qv-btn-q {
  min-height: 44px; padding: 0 14px; border-color: transparent; background: transparent; color: var(--text2);
  font-size: 16px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px;
}
.qv-btn-q:hover { background: var(--petrol-hell); color: var(--tiefsee); }
.qv-btn[disabled], .qv-btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.qv-btn-light { background: var(--papier); border-color: var(--papier); color: var(--tiefsee); }
.qv-btn-light:hover, .qv-btn-light:active { background: var(--signal); border-color: var(--signal); color: var(--tiefsee); }

/* ---- Eingaben ----------------------------------------------------------- */
.qv-inw { display: flex; align-items: center; gap: 14px; }
.qv-unit { font-family: var(--font-mono); font-size: 30px; font-weight: 500; }
.qv-inp, .q-field.qv-inp .q-field__control {
  box-sizing: border-box; width: 100%; min-height: 68px; border: 2px solid var(--tiefsee);
  border-radius: 10px; background: var(--weiss); padding: 0 18px;
  font-family: var(--font-mono); font-weight: 500; font-size: 30px; color: var(--tiefsee);
}
.qv-inp-sm { min-height: 56px; font-size: 22px; }
.qv-dd {
  box-sizing: border-box; width: 100%; max-width: 420px; min-height: 64px; border: 2px solid var(--tiefsee);
  border-radius: 10px; background: var(--weiss); padding: 0 16px; font: 700 20px var(--font-sans);
  color: var(--tiefsee);
}

.qv-error { color: var(--status-risk); font-weight: 600; font-size: 16px; }
.qv-adv-body {
  background: var(--weiss); border: 2px solid var(--tiefsee); border-top: 0; border-radius: 0 0 14px 14px;
  padding: 24px; display: flex; flex-direction: column; gap: 28px;
}
.qv-spin { display: flex; align-items: center; gap: 16px; }
.qv-guard { background: var(--weiss); border: 2px solid var(--raster); border-radius: 16px; padding: 24px; }
.qv-btn-p.qv-attn { box-shadow: 0 0 0 4px var(--signal); }
.qv-ok { color: var(--status-ok); font-weight: 700; }

.qv-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 40px 64px; }
.qv-hero > .qv-col { flex: 1 1 480px; }
.qv-hero-art { flex: 1 1 320px; max-width: 460px; }
.qv-lead { font-size: 20px; max-width: 34em; }
.qv-h3 { font-size: 24px; font-weight: 800; line-height: 1.2; }
.qv-dark-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; }
.qv-dark-row p { color: var(--nav-inaktiv); max-width: 40em; }
.qv-dark-row .qv-h2 { color: var(--papier); }
.qv-other { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.qv-amount-row { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; }
.qv-share { font-size: 18px; }
.qv-summary { font-size: 22px; line-height: 1.5; max-width: 40em; }
.qv-sublbl { font-weight: 700; font-size: 18px; }
.qv-failure {
  border: 2px solid var(--status-risk); border-radius: 14px; background: var(--weiss);
  padding: 20px 24px; color: var(--tiefsee); display: flex; flex-direction: column; gap: 8px;
}
.qv-spinner { color: var(--petrol); }
a.qv-btn { text-decoration: none; }

/* Eingabefelder (Quasar-QInput im Stil des Entwurfs; vgl. text_input in components.py) */
.qv-qi { width: 100%; }
.qv-qi .q-field__control {
  min-height: 68px; border: 2px solid var(--tiefsee); border-radius: 10px; background: var(--weiss); padding: 0 18px;
  box-sizing: border-box;
}
.qv-qi .q-field__native {
  font: 500 30px var(--font-mono); font-variant-numeric: tabular-nums; color: var(--tiefsee); min-height: 0; padding: 0;
}
.qv-qi .q-field__native::placeholder { color: var(--text2); opacity: .7; }
.qv-qi-sm .q-field__control { min-height: 56px; }
.qv-qi-sm .q-field__native { font-size: 22px; }
.qv-qi-xs .q-field__control { min-height: 48px; border-width: 1.5px; border-radius: 8px; padding: 0 14px; }
.qv-qi-xs .q-field__native { font-size: 18px; }
.qv-qi:focus-within .q-field__control { outline: 3px solid var(--tiefsee); outline-offset: 3px; box-shadow: 0 0 0 7px var(--signal); }
.qv-qi input:focus-visible { outline: none; box-shadow: none; }
@media (max-width: 640px) {
  .qv-qi .q-field__control { min-height: 60px; }
  .qv-qi .q-field__native { font-size: 24px; }
  .qv-qi-xs .q-field__control { min-height: 48px; }
  .qv-qi-xs .q-field__native { font-size: 18px; }
}

/* Schalterreihe */
.qv-seg { display: flex; flex-wrap: wrap; gap: 10px; }
.qv-segb {
  min-height: 60px; min-width: 96px; padding: 0 22px; border-radius: 10px; border: 2px solid var(--raster);
  background: var(--weiss); font: 600 20px var(--font-mono); color: var(--tiefsee); cursor: pointer;
}
.qv-segb:hover { border-color: var(--tiefsee); }
.qv-segb[aria-pressed="true"] { border-color: var(--tiefsee); background: var(--tiefsee); color: var(--weiss); }
.qv-segw { font-family: var(--font-sans); font-size: 18px; text-align: left; padding: 12px 22px; line-height: 1.4; }

/* ---- Karten ------------------------------------------------------------- */
.qv-card { background: var(--weiss); border: 2px solid var(--raster); border-radius: 16px; padding: 32px; box-sizing: border-box; }
.qv-table { border-collapse: collapse; width: 100%; font-size: 18px; color: var(--tiefsee); }
.qv-table th, .qv-table td { text-align: left; padding: 12px 16px 12px 0; border-top: 1px solid var(--raster); }
.qv-table thead th { border-top: 0; font-weight: 800; }
.qv-table tbody th { font-weight: 600; }
.qv-choice {
  display: flex; flex-direction: column; gap: 14px; box-sizing: border-box; padding: 32px;
  background: var(--weiss); border: 2px solid var(--raster); border-radius: 16px; text-decoration: none;
  color: var(--tiefsee); min-height: 260px; text-align: left; font-family: var(--font-sans); cursor: pointer;
}
.qv-choice:hover { border-color: var(--tiefsee); color: var(--tiefsee); }
.qv-choice:hover .qv-go { background: var(--signal); }
.qv-go {
  margin-top: auto; display: inline-flex; align-items: center; gap: 10px; align-self: flex-start;
  min-height: 48px; padding: 0 20px; border-radius: 10px; border: 2px solid var(--tiefsee);
  font-weight: 700; font-size: 17px;
}
.qv-vorl {
  display: flex; flex-direction: column; gap: 8px; box-sizing: border-box; padding: 24px 28px;
  background: transparent; border: 2px dashed var(--vorlage-rand); border-radius: 14px;
  color: var(--tiefsee); text-align: left; font-family: var(--font-sans); cursor: pointer;
}
.qv-vorl:hover { border-style: solid; border-color: var(--tiefsee); background: var(--weiss); }
.qv-dark { background: var(--tiefsee); color: var(--papier); border-radius: 16px; padding: 32px 36px; }

/* Auswahlkarte (Markt, Festigkeit, Pruefmethode) */
.qv-sel {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  box-sizing: border-box; text-align: left; padding: 28px 72px 28px 28px; background: var(--weiss);
  border: 2px solid var(--raster); border-radius: 16px; cursor: pointer; color: var(--tiefsee);
  font: 17px/1.5 var(--font-sans); width: 100%;
}
.qv-sel:hover { border-color: var(--tiefsee); }
.qv-sel[aria-pressed="true"] { border-color: var(--tiefsee); box-shadow: 0 0 0 1px var(--tiefsee); }
.qv-sel:disabled { cursor: not-allowed; background: var(--papier); border-style: dashed; }
.qv-sel:disabled h3, .qv-sel:disabled p { color: var(--text2); }
.qv-selwrap { position: relative; }
.qv-sel-info { position: absolute; top: 15px; right: 64px; }
.qv-selwrap:has(.qv-sel-info) .qv-sel { padding-right: 120px; }
.qv-sel h3 { font-size: 24px; font-weight: 800; line-height: 1.2; }
.qv-sel p { color: var(--text2); font-size: 16px; text-wrap: pretty; }
.qv-mk {
  position: absolute; top: 22px; right: 22px; width: 30px; height: 30px; border-radius: 50%;
  border: 2px solid var(--raster); display: grid; place-items: center;
}
.qv-mk svg { opacity: 0; }
.qv-sel[aria-pressed="true"] .qv-mk { background: var(--signal); border-color: var(--tiefsee); }
.qv-sel[aria-pressed="true"] .qv-mk svg { opacity: 1; }

/* Aufklappbereich */
.qv-adv {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%;
  box-sizing: border-box; text-align: left; min-height: 72px; padding: 16px 24px; background: var(--weiss);
  border: 2px solid var(--raster); border-radius: 14px; cursor: pointer; color: var(--tiefsee); font-family: var(--font-sans);
}
.qv-adv:hover { border-color: var(--tiefsee); }
.qv-adv[aria-expanded="true"] { border-color: var(--tiefsee); border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.qv-adv .qv-chev { transition: transform .15s; }
.qv-adv[aria-expanded="true"] .qv-chev { transform: rotate(180deg); }

/* ---- Info-Symbol und Info-Fenster --------------------------------------- */
.qv-ib {
  width: 44px; height: 44px; border: none; background: transparent; display: inline-grid; place-items: center;
  cursor: pointer; padding: 0; border-radius: 50%; flex: none;
}
.qv-ibi {
  width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--petrol); color: var(--petrol);
  display: grid; place-items: center; font: 600 15px var(--font-mono); background: var(--weiss);
}
.qv-ib[aria-expanded="true"] .qv-ibi { background: var(--tiefsee); border-color: var(--tiefsee); color: var(--weiss); }
.qv-pop {
  background: var(--weiss); border: 2px solid var(--tiefsee); border-radius: 14px; padding: 22px 26px;
  display: flex; flex-direction: column; gap: 14px;
}
.qv-pop .k {
  font: 600 14px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--petrol);
}
.qv-pop p { font-size: 17px; }

/* ---- Seitenleiste "Ihre Angaben" ---------------------------------------- */
.qv-rail {
  background: var(--weiss); border: 1.5px solid var(--raster); border-radius: 14px; padding: 24px;
  display: flex; flex-direction: column; gap: 18px;
}
.qv-rail dt { font: 14px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text2); }
.qv-rail dd { font-weight: 600; font-size: 18px; }
.qv-rail dd.pending { color: var(--text2); font-weight: 500; }
.qv-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; font-size: 16px; }

/* ---- Einordnung, Kennzahlen -------------------------------------------- */
.tone-ok { --tc: var(--status-ok); }
.tone-warn { --tc: var(--status-warn); }
.tone-risk { --tc: var(--status-risk); }
.tone-thin { --tc: var(--tiefsee); }
.qv-ein {
  background: var(--weiss); border: 2px solid var(--tc); border-radius: 16px; padding: 26px 28px;
  display: flex; flex-direction: column; gap: 14px;
}
.qv-ein .ico { width: 48px; height: 48px; border-radius: 50%; background: var(--tc); display: grid; place-items: center; flex: none; }
.qv-ein .nm { font-size: 26px; font-weight: 800; color: var(--tc); line-height: 1.15; }
.qv-kz {
  background: var(--weiss); border: 1.5px solid var(--raster); border-radius: 16px; padding: 22px 24px;
  display: flex; flex-direction: column; gap: 6px;
}
.qv-kz[data-open="true"] { border-color: var(--tiefsee); }
.qv-kz .lab { font-size: 16px; font-weight: 700; color: var(--text2); }
.qv-kz .val { font: 600 32px/1.15 var(--font-mono); letter-spacing: -0.01em; }
.qv-kz .sub { font-size: 15px; color: var(--text2); }
.qv-chartbox { overflow-x: auto; }
.qv-lg { display: flex; align-items: center; gap: 10px; font-size: 16px; }
.qv-gz { display: flex; gap: 16px; align-items: flex-start; }
.qv-gz .ic {
  flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--petrol-hell); color: var(--petrol);
  display: grid; place-items: center; font: 700 16px var(--font-mono); margin-top: 2px;
}

/* ---- Hilfsklassen fuer Layout (statt Inline-Styles) --------------------- */
.qv-col { display: flex; flex-direction: column; }
.qv-gap-8 { gap: 8px; } .qv-gap-14 { gap: 14px; } .qv-gap-24 { gap: 24px; } .qv-gap-48 { gap: 48px; } .qv-gap-56 { gap: 56px; }
.qv-split { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.qv-split > .qv-split-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 56px; }
.qv-split > aside { flex: 1 1 260px; max-width: 340px; display: flex; flex-direction: column; gap: 16px; }
.qv-actions {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px;
  padding-top: 32px; border-top: 1px solid var(--raster);
}
.qv-grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.qv-grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }

/* ---- Ergebnisseite ------------------------------------------------------ */
.qv-head-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.qv-cached { font-size: 14px; color: var(--text2); }
.qv-result-head { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.qv-result-main { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.qv-h1-result { font-size: 44px; line-height: 1.25; font-weight: 700; letter-spacing: -0.015em; }
.qv-inputline { font-size: 15px; color: var(--text2); line-height: 1.7; }
.qv-ein-card { flex: 1 1 340px; max-width: 440px; box-sizing: border-box; }
.qv-ein .qv-row { display: flex; align-items: center; gap: 16px; }
.qv-ein p { font-size: 17px; text-wrap: pretty; }
.qv-ein .qv-goal { font-size: 52px; font-weight: 700; line-height: 1.1; }
.qv-legend { display: flex; flex-wrap: wrap; gap: 12px 32px; }
.qv-soft { background: var(--petrol-hell); border-color: transparent; }
.qv-gz { display: flex; gap: 16px; align-items: flex-start; }
.qv-gz p { text-wrap: pretty; }
.qv-strong { font-weight: 800; }
.qv-kz-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.qv-ib-card { margin: -8px -10px -8px 0; }
.qv-next { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 16px; }
.qv-next-main { grid-column: 1 / -1; justify-content: space-between; min-height: 72px; font-size: 20px; }
.qv-next-note { grid-column: 1 / -1; }
.qv-save {
  grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; background: var(--weiss);
  border: 1.5px solid var(--raster); border-radius: 14px; padding: 20px 24px;
}
.qv-save-field { flex: 1 1 280px; }
.modebar-container { display: none !important; }
@media (max-width: 640px) {
  .qv-h1-result { font-size: 30px; line-height: 1.2; }
  .qv-result-head { gap: 24px; }
}

/* ---- Experten-Modus ----------------------------------------------------- */
.qv-xs {
  background: var(--weiss); border: 1.5px solid var(--raster); border-radius: 14px; padding: 24px;
  display: flex; flex-direction: column; gap: 18px; box-sizing: border-box;
}
.qv-xs h2 {
  font: 600 14px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--petrol);
}
.qv-xf { display: flex; flex-direction: column; gap: 8px; }
.qv-xl { font-weight: 700; font-size: 15px; }
.qv-xi {
  box-sizing: border-box; min-height: 48px; border: 1.5px solid var(--tiefsee); border-radius: 8px;
  background: var(--weiss); padding: 0 14px; font: 500 18px var(--font-mono); color: var(--tiefsee); width: 100%;
}
.qv-xr { display: flex; flex-wrap: wrap; gap: 16px; }
.qv-xr > .qv-xf { flex: 1 1 150px; }
.qv-xg { display: flex; flex-wrap: wrap; gap: 6px; }
.qv-xb {
  min-height: 44px; padding: 0 16px; border-radius: 8px; border: 1.5px solid var(--raster); background: var(--weiss);
  font: 500 15px var(--font-mono); color: var(--tiefsee); cursor: pointer;
}
.qv-xb:hover { border-color: var(--tiefsee); }
.qv-xb[aria-pressed="true"] { background: var(--tiefsee); border-color: var(--tiefsee); color: var(--weiss); }
.qv-xb:disabled { cursor: not-allowed; color: var(--text2); background: var(--papier); border-style: dashed; }
.qv-xh { font-size: 14px; color: var(--text2); }
.qv-xtop { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.qv-xsum { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.qv-xsum p { font-size: 15px; line-height: 1.7; flex: 1 1 400px; }
.qv-xcols { display: flex; flex-direction: column; gap: 24px; }

/* ---- Szenarien, Meine Daten, Hilfe -------------------------------------- */
.qv-actions-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.qv-pick-box {
  width: 24px; height: 24px; border-radius: 6px; border: 2px solid var(--tiefsee); display: inline-grid;
  place-items: center; flex: none;
}
.qv-pick-box svg { opacity: 0; }
.qv-pick[aria-pressed="true"] { border-color: var(--tiefsee); background: var(--petrol-hell); }
.qv-pick[aria-pressed="true"] .qv-pick-box { background: var(--signal); }
.qv-pick[aria-pressed="true"] .qv-pick-box svg { opacity: 1; }
.qv-cmp-sentence { font-size: 20px; line-height: 1.4; }
.qv-formrow { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: flex-end; }
.qv-formrow > .qv-col { flex: 1 1 200px; }
.qv-datarow {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
  padding: 16px 0; border-top: 1px solid var(--raster);
}
.qv-datarow-top { align-items: flex-start; }
.qv-mixlist { margin: 0; padding-left: 20px; }
.qv-mixrow { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: flex-end; }
.qv-mixrow-asset { flex: 2 1 220px; }
.qv-mixrow-weight { flex: 1 1 120px; }
.qv-mixrow-remove { min-height: 48px; }
.qv-sumline { font-size: 16px; font-weight: 600; }
.qv-newmix { border-top: 1px solid var(--raster); padding-top: 24px; }
.qv-flash {
  border: 2px solid var(--status-ok); border-radius: 14px; background: var(--weiss); padding: 16px 24px;
  color: var(--status-ok); font-weight: 700;
}
.qv-dialog { max-width: 92vw; width: 520px; border-radius: 16px; padding: 28px; gap: 16px; font-family: var(--font-sans); }
.qv-dialog-wide { width: 720px; }
.qv-upload { max-width: 420px; width: 100%; }
.qv-anchor { scroll-margin-top: 24px; }
.qv-gloss { display: flex; flex-direction: column; gap: 20px; margin: 0; }
.qv-gloss dt { font-weight: 800; font-size: 20px; }
.qv-gloss dd { margin: 4px 0 0; color: var(--text2); }

.qv-login { max-width: 480px; margin: 24px auto 0; width: 100%; }
.qv-flash-note { border-color: var(--petrol); color: var(--tiefsee); font-weight: 600; }

/* ---- Fusszeile (V10): Pflichtlinks und Hinweis --------------------------- */
.qv-ft { border-top: 1px solid var(--raster); width: 100%; }
.qv-ft-in {
  max-width: 1120px; margin: 0 auto; padding: 16px 24px 32px; box-sizing: border-box;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 32px;
  color: var(--text2); font-size: 15px;
}
.qv-ft-nav { display: flex; flex-wrap: wrap; gap: 0 24px; }
.qv-ft-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--petrol); font-weight: 600; }

/* Quasar-Komponenten an die Tokens anpassen (statt der Standardoptik) */
.q-notification {
  background: var(--tiefsee) !important; color: var(--weiss) !important; border-radius: 12px;
  font: 600 16px var(--font-sans); padding: 14px 20px;
}
.q-notification__message { font-size: 16px; }
.q-uploader.qv-upload {
  box-shadow: none; border: 2px solid var(--raster); border-radius: 10px; background: var(--weiss);
  color: var(--tiefsee); font-family: var(--font-sans);
}
.q-uploader.qv-upload .q-uploader__header { background: var(--petrol-hell); color: var(--tiefsee); }
.q-uploader.qv-upload .q-btn { min-height: 44px; min-width: 44px; }
.q-dialog__backdrop { background: rgba(27, 46, 51, 0.55); }

/* ---- Glossar-Eintraege (glossar.md) ------------------------------------- */
.qv-gentry { display: flex; flex-direction: column; gap: 6px; padding: 18px 0; border-top: 1px solid var(--raster); align-items: flex-start; }
.qv-gentry:first-of-type { border-top: 0; padding-top: 0; }
.qv-gterm { font-size: 22px; font-weight: 800; line-height: 1.25; }
.qv-gshort p { margin: 0; color: var(--text2); }
.qv-linkbtn { background: none; border: 0; padding: 0; cursor: pointer; font-family: var(--font-sans); color: var(--tiefsee); text-decoration: underline; text-underline-offset: 4px; }
.qv-linkbtn:hover { color: var(--petrol); }
.qv-md { font-size: 17px; line-height: 1.55; color: var(--tiefsee); max-width: 100%; }
.qv-md p { margin: 0 0 12px; }
.qv-md ul, .qv-md ol { margin: 0 0 12px; padding-left: 26px; }
.qv-md li { margin-bottom: 4px; }
.qv-md table { border-collapse: collapse; display: block; overflow-x: auto; max-width: 100%; margin: 4px 0 16px; font-size: 16px; }
.qv-md th, .qv-md td { border: 1px solid var(--raster); padding: 8px 12px; text-align: left; vertical-align: top; }
.qv-md th { background: var(--petrol-hell); font-weight: 700; }
.q-dialog__inner--minimized > .qv-gdialog { max-width: min(760px, 94vw); }
.qv-gdialog > * { flex-shrink: 0; }
.qv-gdialog { align-items: stretch; width: min(760px, 94vw); max-width: 94vw; max-height: 90vh; overflow-y: auto; border-radius: 16px; padding: 0 28px 28px; gap: 16px; font-family: var(--font-sans); }
.qv-gd-head {
  position: sticky; top: 0; z-index: 1; background: var(--weiss); display: flex; align-items: center;
  justify-content: space-between; gap: 16px; padding: 24px 0 12px; border-bottom: 1px solid var(--raster);
}
.qv-xinfo { flex: 1 1 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; }
.qv-xinfo-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 6px; border: 0; background: none;
  cursor: pointer; font: 600 15px var(--font-sans); color: var(--tiefsee);
}
.qv-xinfo-btn:hover { text-decoration: underline; }
@media (max-width: 640px) {
  .q-dialog__inner--minimized { padding: 0 !important; }
  .q-dialog__inner--minimized > .qv-gdialog { max-width: 100vw; }
  .qv-gdialog { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; padding: 0 18px 24px; }
  .qv-sel-info { right: 56px; }
}

@media (max-width: 900px) {
  .qv-split > aside { max-width: none; flex-basis: 100%; }
}
@media (max-width: 640px) {
  .qv-hd-in { padding: 10px 16px; gap: 4px 16px; }
  .qv-wrap { padding-left: 16px; padding-right: 16px; }
  .qv-nav { width: 100%; flex-wrap: nowrap; overflow-x: auto; }
  .qv-nav a, .qv-nav button { white-space: nowrap; padding: 0 10px; font-size: 15px; }
  .qv-h1, .qv-h1-lg { font-size: 30px; line-height: 1.15; }
  .qv-card { padding: 20px; }
  .qv-choice { padding: 24px; min-height: 0; }
  .qv-vorl { padding: 20px; }
  .qv-lbl { font-size: 21px; }
  .qv-inp, .q-field.qv-inp .q-field__control { font-size: 24px; min-height: 60px; }
  .qv-unit { font-size: 24px; }
  .qv-h2 { font-size: 23px; }
  .qv-kz .val { font-size: 28px; }
  .qv-sel { padding-right: 64px; }
  .qv-sel h3 { padding-right: 36px; }
  .qv-btn, .qv-go { width: 100%; box-sizing: border-box; justify-content: center; }
  .qv-chartbox svg, .qv-chartbox .js-plotly-plot { min-width: 620px; }
  .qv-pl { display: none; }
}
