/* Vocab Trainer – Frontend UI (2026)
   Primärfarbe: #0170b9
   Scope: nur innerhalb .vt-shell / .vt-* Klassen
*/

/* ------------------------------------------------------------------
   Design-Ziele:
   - Hell / Weiß / sehr helle Grautöne
   - Sehr gut lesbar (Kontrast, Typografie, Abstände)
   - Moderne, professionelle UI mit Akzenten in #0170b9
------------------------------------------------------------------- */

:root{
  /* Brand */
  --vt-primary:#0170b9;
  --vt-primary-weak:rgba(1,112,185,0.14);
  --vt-primary-weak-2:rgba(1,112,185,0.08);

  /* Surfaces */
  --vt-bg:#f8fafc;          /* sehr helles Grau (Hintergrund) */
  --vt-card:#ffffff;        /* Karten */
  --vt-border:#e2e8f0;      /* zarte Linien */
  --vt-border-strong:#cbd5e1;

  /* Text */
  --vt-text:#0f172a;
  --vt-muted:#475569;

  /* Status */
  --vt-success:#067647;
  --vt-success-bg:#ecfdf3;
  --vt-success-border:#abefc6;

  --vt-danger:#b42318;
  --vt-danger-bg:#fef3f2;
  --vt-danger-border:#fecdca;

  --vt-warning:#b54708;
  --vt-warning-bg:#fffaeb;
  --vt-warning-border:#fedf89;

  /* Decorative */
  --vt-zebra:rgba(15,23,42,0.02);
  --vt-section-bg:rgba(1,112,185,0.06);

  /* Shadows */
  --vt-shadow-soft:0 1px 2px rgba(15,23,42,0.05), 0 10px 30px rgba(15,23,42,0.06);
  --vt-shadow-card:0 1px 2px rgba(15,23,42,0.05), 0 16px 40px rgba(15,23,42,0.08);

  /* Radii */
  --vt-radius-sm:12px;
  --vt-radius:16px;
  --vt-radius-lg:18px;
}

/* --- Layout / Hintergrund --- */
.vt-shell{
  width:100%;
  display:flex;
  justify-content:center;
  padding:32px 0;

  background:var(--vt-bg);
}

.vt-shell *{
  box-sizing:border-box;
}

.vt-login,
.vt-practice{
  width:100%;
  max-width:900px;
  padding:0 16px;

  text-align:left;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;

  color:var(--vt-text);
}

/* --- Top Bar --- */
.vt-bar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;

  padding:12px 14px;
  margin:0 auto 16px auto;
  max-width:900px;

  border:1px solid var(--vt-border);
  border-radius:var(--vt-radius);
  background:var(--vt-card);
  box-shadow:var(--vt-shadow-soft);

  font-size:14px;
  color:var(--vt-muted);
}

.vt-bar-left{
  display:flex;
  align-items:baseline;
  gap:10px;
  min-width:240px;
}

.vt-brand{
  font-weight:800;
  color: #0170b9;
}

.vt-bar-status{
  font-size:13px;
  color:var(--vt-muted);
}

.vt-bar-right{
  display:flex;
  align-items:center;
  gap:10px;
}

.vt-bar-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;

  padding:6px 20px;
  border-radius:999px;

  background:  #0170b9;
  color: #ffffff;
  text-decoration:none;
  font-weight:800;

  transition:filter .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.vt-bar-link:hover{
  filter:brightness(0.98);
  color: #f4f4f4;
}

.vt-bar-link:focus-visible{
  outline:none;
  box-shadow:0 0 0 4px var(--vt-primary-weak);
}

/* --- Cards --- */
.vt-card{
  background: #f9f9f9;
  border:1px solid #d0d0d0;
  border-radius:var(--vt-radius-lg);
  padding:26px 22px;
  box-shadow:var(--vt-shadow-card);
  max-width:900px;
  margin:0 auto;
}

.vt-card h3{
  margin:0 0 14px 0;
  font-size:30px;
  font-weight:900;
  letter-spacing:-0.012em;
  text-align:center;
  margin-bottom: 25px;
}

.vt-card p{
  margin:12px 0;
  line-height:1.6;
}

/* --- Session fertig --- */
.vt-card.vt-done{
  border-color: #d0d0d0;
  background: #f9f9f9;
}

.vt-card.vt-done h3{
  color: #0170b9;
}

.vt-shell .vt-card.vt-done p{
  text-align:center;
}


/* --- Kleine Meta-/Statuszeilen --- */
.vt-stage{
  margin:0 auto 12px auto;
  font-size:12px;
  color:var(--vt-muted);
  letter-spacing:0.02em;
  text-align:center;
}

/* --- Stats als Chips --- */
.vt-stats{
  margin:0 auto 16px auto;
  max-width:900px;

  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:8px;

  font-size:13px;
  color:var(--vt-muted);
}

.vt-chip{
  display:inline-flex;
  align-items:center;
  gap:6px;

  padding:6px 20px;
  border-radius:999px;
  border:1px solid var(--vt-border);
  background:var(--vt-card);
  box-shadow:0 1px 2px rgba(15,23,42,0.04);

  font-weight:700;
  color:var(--vt-muted);
}

.vt-chip-strong{
  color: #0170b9;
  border-color: #0170b9;
  background: #ffffff;
}

/* --- Session-Fortschritt --- */
.vt-progress{
  max-width:900px;
  margin:0 auto 16px auto;
}

.vt-progress-bar{
  width:100%;
  height:10px;
  border-radius:999px;
  border:1px solid var(--vt-border);
  background:var(--vt-card);
  overflow:hidden;
}

.vt-progress-fill{
  height:100%;
  width:0%;
  background:var(--vt-primary);
}

.vt-progress-text{
  margin-top:10px;
  font-size:13px;
  font-weight:800;
  color:var(--vt-muted);
  text-align:center;
}

/* --- Hinweise/Infoboxen --- */
.vt-hint{
  padding:12px 25px;
  max-width: fit-content;
  border:1px solid var(--vt-border);
  border-radius:100px;
  background: #ffffff;
  color:var(--vt-text);
  margin-bottom: 25px;
}

.vt-hint strong{
  color: #0170b9;
}

/* --- Form Controls --- */
.vt-shell form{
  margin:0;
}

.vt-shell label{
  display:block;
  font-weight:500;
  color: #0170b9;
  margin-top: 50px;
}

.vt-shell input[type="email"],
.vt-shell input[type="password"],
.vt-shell input[type="text"],
.vt-shell textarea{
  width:min(620px, 100%);
  margin:10px auto 0 auto;
  padding:12px 14px;

  border:1px solid var(--vt-border);
  border-radius:var(--vt-radius);
  background:var(--vt-card);
  color:var(--vt-text);

  font-size:16px;
  line-height:1.35;
  text-align:left;

  outline:none;
  transition:border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.vt-shell textarea{
  min-height:120px;
  resize:vertical;
}

.vt-shell input[type="email"]:focus,
.vt-shell input[type="password"]:focus,
.vt-shell input[type="text"]:focus,
.vt-shell textarea:focus{
  border-color:rgba(1,112,185,0.55);
  box-shadow:0 0 0 4px var(--vt-primary-weak);
}

/* --- Buttons --- */
.vt-shell button{
  appearance:none;
  border:1px solid transparent;
  background:var(--vt-primary);
  color:#fff;

  padding:12px 18px;
  border-radius:var(--vt-radius);

  font-size:15px;
  font-weight:600;
  letter-spacing:0.01em;

  cursor:pointer;
  transition:transform .06s ease, filter .15s ease, box-shadow .15s ease;
}

.vt-shell button:hover{
  filter:brightness(0.97);
}

.vt-shell button:active{
  transform:translateY(1px);
}

.vt-shell button:focus-visible{
  outline:none;
  box-shadow:0 0 0 4px var(--vt-primary-weak), 0 10px 22px rgba(1,112,185,0.18);
}

.vt-shell button:disabled{
  opacity:0.6;
  cursor:not-allowed;
  box-shadow:none;
}

/* Sekundär-Button (z.B. "Überspringen") */
.vt-shell button.vt-btn-secondary{
  background:var(--vt-card);
  color:var(--vt-primary);
  border-color:rgba(1,112,185,0.35);
  box-shadow:none;
}

.vt-shell button.vt-btn-secondary:hover{
  filter:brightness(0.99);
}

/* --- Messages --- */
.vt-error,
.vt-good,
.vt-bad{
  max-width:900px;
  margin:14px auto;
  padding:12px 14px;
  border-radius:var(--vt-radius);
  border:1px solid var(--vt-border);
  background:var(--vt-card);
  text-align:center;
  box-shadow:0 1px 2px rgba(15,23,42,0.04);
}

.vt-good{
  border-color:var(--vt-success-border);
  background:var(--vt-success-bg);
  color:var(--vt-success);
}

.vt-bad{
  border-color:var(--vt-danger-border);
  background:var(--vt-danger-bg);
  color:var(--vt-danger);
}

.vt-error{
  border-color:var(--vt-warning-border);
  background:var(--vt-warning-bg);
  color:var(--vt-warning);
}

/* --- Table (Stufe 1) --- */
.vt-table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  margin:14px auto 8px auto;
  border:1px solid var(--vt-border);
  border-radius:var(--vt-radius);
  overflow:hidden;
  background:var(--vt-card);
}

.vt-table .vt-row:nth-child(odd) td{
  background:var(--vt-zebra);
}

.vt-table td{
  padding:12px 12px;
  text-align:left;
  vertical-align:top;
  border-top:1px solid var(--vt-border);
}

.vt-table tr:first-child td{
  border-top:none;
}

.vt-td-label{
  width:34%;
  font-weight:600;
  color: #0170b9;
}

.vt-td-value{
  width:66%;
  color:var(--vt-text);
}

.vt-table-section td{
  padding:12px 12px 8px 12px;
  background: #0170b9;
  border-top:1px solid var(--vt-border);
  color: #f9f9f9;
  font-weight:800;
}

/* --- Kleine Verbesserungen für sehr schmale Displays --- */
@media (max-width: 420px){
  .vt-card{ padding:20px 16px; }
  .vt-card h3{ font-size:18px; }
  .vt-shell button{ width:100%; max-width:620px; }
  .vt-td-label{ width:auto; }
  .vt-bar-left{ min-width:unset; }
}
