/* vmi.css -- gemeinsame Optik des VMI-Portals.
   Gebaut fuer eine Hand, einen Daumen und eine Lagerhalle: grosse Flaechen,
   hoher Kontrast, keine Feinheiten, die bei Sonne oder mit Handschuh
   verschwinden. Kein Fremd-CSS, kein CDN. */

:root {
  --blau: #1c5fa6;
  --blau-dunkel: #17497f;
  --gruen: #1d7a3c;
  --gruen-hell: #e6f4ea;
  --rot: #b3261e;
  --rot-hell: #fbeae9;
  --gelb-hell: #fdf3d8;
  --grau-text: #5a5a5a;
  --grau-linie: #d7dbe0;
  --grund: #f4f6f8;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--grund);
  color: #1a1a1a;
  font-family: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

.seite {
  max-width: 520px;
  margin: 0 auto;
  padding: 16px 16px 32px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.kopf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.kopf img { width: 190px; max-width: 55vw; height: auto; }

.sprachwahl { display: flex; gap: 4px; }
.sprachwahl button {
  border: 1px solid var(--grau-linie);
  background: #fff;
  color: var(--grau-text);
  border-radius: 6px;
  padding: 5px 9px;
  font-size: 13px;
  cursor: pointer;
}
.sprachwahl button[aria-pressed="true"] {
  background: var(--blau);
  border-color: var(--blau);
  color: #fff;
}

.karte {
  background: #fff;
  border: 1px solid var(--grau-linie);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
}
.karte + .karte { margin-top: 14px; }

.kurztext {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 4px;
  overflow-wrap: anywhere;
}
.artnr {
  font-size: 15px;
  color: var(--grau-text);
  margin: 0 0 18px;
  overflow-wrap: anywhere;
}

.menge {
  font-size: 46px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.5px;
}
.menge .einheit { font-size: 22px; font-weight: 600; margin-left: 6px; }

.zeile { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; }
.zeile + .zeile { border-top: 1px solid #eef1f4; }
.zeile .name { color: var(--grau-text); font-size: 14px; }
.zeile .wert { font-size: 14px; font-weight: 600; text-align: right; overflow-wrap: anywhere; }

.knopf {
  display: block;
  width: 100%;
  margin-top: 20px;
  padding: 20px 16px;
  font-size: 21px;
  font-weight: 700;
  color: #fff;
  background: var(--blau);
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  touch-action: manipulation;
}
.knopf:active { background: var(--blau-dunkel); }
.knopf[disabled] { opacity: .55; cursor: default; }

.knopf.leise {
  background: #fff;
  color: var(--blau);
  border: 1px solid var(--blau);
  font-size: 17px;
  padding: 14px 16px;
}

.meldung { border-radius: 12px; padding: 20px; text-align: center; }
.meldung h1 { font-size: 24px; margin: 0 0 8px; }
.meldung p { margin: 0; font-size: 16px; line-height: 1.45; }
.meldung.gut { background: var(--gruen-hell); border: 1px solid #b7dfc4; color: #12532a; }
.meldung.warn { background: var(--gelb-hell); border: 1px solid #ecd9a3; color: #6b5312; }
.meldung.schlecht { background: var(--rot-hell); border: 1px solid #eebfbb; color: #7d1d17; }
.haken { font-size: 46px; line-height: 1; margin-bottom: 6px; }

.fuss {
  margin-top: auto;
  padding-top: 24px;
  font-size: 12px;
  color: var(--grau-text);
  text-align: center;
  line-height: 1.6;
}
.fuss a { color: var(--grau-text); }

/* --- Erklaerseite: die drei Schritte als Bildfolge --------------------
   Dieselben drei Bilder wie auf dem gedruckten Etikett. Wer eines aendert,
   aendert das andere mit -- Papier und Seite sollen dasselbe zeigen. */
.schritte {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 4px;
  margin: 20px 0 4px;
}
.schritt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1 1 0;
  font-size: 12px;
  color: var(--grau-text);
  text-align: center;
}
.pikto {
  width: 46px;
  height: 34px;
  color: var(--blau);
}
.pfeil {
  color: var(--blau);
  font-size: 20px;
  font-weight: 700;
  line-height: 34px;
  flex: 0 0 auto;
}

.feld {
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 15px 14px;
  font-size: 17px;
  font-family: inherit;
  color: inherit;
  background: #fff;
  border: 1px solid var(--grau-linie);
  border-radius: 10px;
}
.feld:focus {
  outline: 2px solid var(--blau);
  outline-offset: 1px;
  border-color: var(--blau);
}

.versteckt { display: none !important; }
