/* Verlauf – Premium-Umbau (PLAN 2.8) */
/* ============================================================
   VERLAUF
   ============================================================ */
.vl-inhalt { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 18px 28px; display: grid; gap: 16px; align-items: start; }
.vl-seite { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.vl-haupt { min-width: 0; }
.vl-titel, .vl-schatz-kopf h3 { margin: 0; font-size: var(--fs-ueber); font-weight: var(--gw-stark); letter-spacing: var(--lw-ueber); text-transform: uppercase; color: var(--text-2); }
.vl-titel { margin: 4px 0 10px; padding-left: 2px; }
@media (min-width: 900px) and (orientation: landscape) {
  .vl-inhalt { grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); gap: 20px; }
}

.vl-statistik { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 12px 8px; }
.vl-kachel { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 64px; padding: 4px 2px; text-align: center; min-width: 0; }
.vl-kachel b { font-family: var(--display); font-size: 21px; font-weight: var(--gw-titel); letter-spacing: -.02em; line-height: 1.1; white-space: nowrap; }
.vl-kachel > span { font-size: 12px; font-weight: 600; color: var(--text-2); line-height: 1.2; }
.vl-kachel b .stern { font-size: .85em; }
.vl-kachel.sieg b { color: var(--kt-bester); }
.vl-kachel.remis b { color: var(--text); }
.vl-kachel.niederlage b { color: var(--text-2); }

.vl-schatz { padding: 14px; background: var(--flaeche); border-color: var(--linie); }
.vl-schatz-kopf { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.vl-schatz-kopf > svg { width: 24px; height: 24px; color: var(--k-brillant); flex: none; }
.vl-schatz-kopf h3 { flex: 1; color: var(--text); }
.vl-schatz-kopf .chip { height: 28px; font-size: 12px; color: var(--kt-brillant); border-color: var(--linie-2); box-shadow: none; }
.vl-schatz-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.vl-juwel { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 8px 12px; border-radius: 14px; text-align: left; cursor: pointer;
  background: var(--flaeche-2); border: 1px solid var(--linie); color: inherit; font: inherit; min-width: 0; }
.vl-juwel:active { transform: scale(.98); background: var(--flaeche-3); }
.vl-juwel:disabled { opacity: .5; cursor: default; }
.vl-juwel-symbol { width: 32px; height: 32px; flex: none; }
.vl-juwel-symbol svg { display: block; width: 100%; height: 100%; }
.vl-juwel-text { display: flex; flex-direction: column; min-width: 0; }
.vl-juwel-text b { font-size: 16px; color: var(--kt-brillant); }
/* Gegner und Datum nicht abschneiden (Flos iPhone-Befund): lieber zweizeilig */
.vl-juwel-text span { font-size: 12px; line-height: 1.3; color: var(--text-2); overflow-wrap: break-word; }
.vl-schatz-leer { margin: 0; font-size: 14px; color: var(--text-2); }

.vl-liste { display: flex; flex-direction: column; gap: 10px; }
.vl-zeile { position: relative; border-radius: 18px; overflow: hidden; }
/* 2 px eingerueckt: sonst blitzt das Rot an den runden Ecken der hellen Karte durch */
.vl-hinten { position: absolute; top: 2px; right: 2px; bottom: 2px; width: 118px; padding-left: 16px; border: 0; border-radius: 18px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; background: var(--warn); color: #FFFFFF; font: inherit; font-size: 13px; font-weight: 800; }
.vl-hinten svg { width: 22px; height: 22px; }
.vl-vorne { position: relative; z-index: 1; display: flex; align-items: center; gap: 6px; padding: 6px 8px 6px 6px; border-radius: 18px; touch-action: pan-y;
  background: var(--flaeche); border: 1px solid var(--linie); box-shadow: var(--s1); transition: transform .25s cubic-bezier(.2, .9, .2, 1); }
.vl-zeile.offen .vl-vorne { transform: translateX(-104px); }
.vl-zeile.zieht .vl-vorne { transition: none; }
.vl-zeile.weg { animation: vl-weg .26s ease-in forwards; }
@keyframes vl-weg { to { opacity: 0; transform: translateX(-30px); } }
.vl-oeffnen { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; min-height: 68px; padding: 4px 6px; border: 0; border-radius: 14px;
  background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.vl-oeffnen:active { background: var(--flaeche-2); }
.vl-oeffnen .an-avatar { --g: 52px; border-radius: 14px; }
.vl-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.vl-z1 { display: flex; align-items: center; gap: 4px 8px; flex-wrap: wrap; min-width: 0; }
/* Namen nie abschneiden (Flos iPhone-Befund): lieber zweizeilig */
.vl-name { font-family: var(--display); font-size: 17px; font-weight: var(--gw-titel); letter-spacing: -.02em; line-height: 1.2; overflow-wrap: anywhere; max-width: 100%; }
.vl-ergebnis { flex: none; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 800; line-height: 1.35; }
.vl-ergebnis.sieg { color: #FFFFFF; background: #23794C; }
.vl-ergebnis.niederlage { color: var(--text-2); background: var(--flaeche-3); }
.vl-ergebnis.remis { color: #1C1B19; background: var(--gold); }
/* Nebenzeilen (Eroeffnungsname, Datum) ebenfalls nie abschneiden: umbrechen statt Ellipse */
.vl-z2, .vl-z3 { font-size: 13px; line-height: 1.3; color: var(--text-2); overflow-wrap: break-word; }
.vl-z2 { color: var(--text-2); font-weight: 600; }
.vl-werte { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; padding-left: 4px; }
.vl-genau { font-family: var(--display); font-size: 18px; font-weight: var(--gw-titel); color: var(--text); white-space: nowrap; font-variant-numeric: tabular-nums; }
.vl-genau.offen { font-size: 13px; font-weight: 700; color: var(--text-2); }
.vl-sterne { font-size: 15px; letter-spacing: 1px; line-height: 1; }
.vl-sterne .an { color: var(--gold); }
.vl-sterne .aus { color: var(--linie-2); }
.vl-muell { color: var(--text-2); background: var(--flaeche-2); box-shadow: none; }
.vl-muell:active { color: var(--warn); }

.vl-leer { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 32px 20px; text-align: center; }
.vl-leer h3 { margin: 6px 0 0; font-family: var(--display); font-size: 22px; font-weight: var(--gw-titel); letter-spacing: -.02em; }
.vl-leer p { margin: 0 0 8px; font-size: 16px; color: var(--text-2); }
.vl-leer-avatar { --g: 88px; }

.vl-dialog-hg { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px;
  background: var(--schleier); animation: vl-ein .18s ease both; }
.vl-dialog { width: min(420px, 100%); padding: 20px; background: var(--flaeche); border-radius: var(--r-l); box-shadow: var(--s3); }
.vl-dialog h3 { margin: 0 0 8px; font-family: var(--display); font-size: 20px; font-weight: var(--gw-titel); letter-spacing: -.02em; }
.vl-dialog p { margin: 0 0 18px; font-size: 15px; color: var(--text-2); }
.vl-dialog-knoepfe { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.vl-rot { background: var(--warn); border-color: var(--warn); color: #FFFFFF; box-shadow: none; }
@keyframes vl-ein { from { opacity: 0; } }

@media (max-width: 520px) {
  .vl-screen .kopf { height: 56px; padding: 0 10px; }
  .vl-inhalt { padding: 0 10px 20px; gap: 12px; }
  .vl-statistik { padding: 8px 4px; }
  .vl-kachel { min-height: 56px; }
  .vl-kachel b { font-size: 17px; }
  .vl-kachel > span { font-size: 12px; }
  .vl-oeffnen { gap: 10px; padding: 4px 2px; }
  .vl-oeffnen .an-avatar { --g: 44px; border-radius: 12px; }
  .vl-name { font-size: 16px; }
  .vl-z3 { display: none; }
  .vl-genau { font-size: 16px; }
  .vl-sterne { font-size: 13px; }
  .vl-screen .vl-muell { --tap: 44px; }
  .vl-schatz-liste { grid-template-columns: 1fr 1fr; }
  .vl-juwel { padding: 8px; gap: 8px; }
  .vl-juwel-symbol { width: 26px; height: 26px; }
  .vl-juwel-text b { font-size: 14px; }
}

/* Handy (Flo 31.10.2026 abends: "zu gross"): leerer Verlauf mit kleinerem Titel */
@media (max-width: 520px) {
  .vl-leer h3 { font-size: 19px; }
}
