/* assets/rechnung.css  -  "Meine Rechnung" zur oeffentlichen Karte
 * (22.09.2026).
 *
 * DAS HANDY IM HOCHFORMAT IST DER NORMALFALL: jemand sitzt am Tisch und hat
 * eben den QR-Code gescannt. Eine Spalte, grosse Zahlen oben, darunter die
 * Zeilen - und kein einziger Knopf, denn die Seite aendert nichts.
 *
 * Farben stehen wie ueberall ausschliesslich in :root; die Werte sind die der
 * Getraenkekarte, damit der Weg von dort hierher nicht wie ein Seitenwechsel
 * aussieht.
 */
:root {
  --re-orange: #f36b21;
  --re-dunkel: #17191c;
  --re-text:   #17191c;
  --re-neben:  #62676d;
  --re-linie:  #d6d7d9;
  --re-flaeche: #f2f3f4;
  --re-weiss:  #ffffff;
  --re-grund:  #fafafa;
  --re-gruen:  #2f9d5b;
}

html, body { margin: 0; padding: 0; }
.re-body {
  background: var(--re-grund);
  color: var(--re-text);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.4;
  -webkit-text-size-adjust: 100%;
}
.re-blatt {
  max-width: 560px;
  margin: 0 auto;
  padding: 20px 16px calc(24px + env(safe-area-inset-bottom));
  box-sizing: border-box;
}

/* ------------------------------------------------------------- Der Kopf */
.re-kopf { text-align: center; margin-bottom: 16px; }
.re-logo { width: 116px; height: auto; display: block; margin: 0 auto 8px; }
.re-kopf h1 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: .02em; }
.re-person { margin: 2px 0 0; font-size: 15px; color: var(--re-neben); }

/* ---------------------------------------------- Gebucht, Bezahlt, Offen */
.re-summe {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px;
  margin: 14px 0 10px;
}
.re-summe > div {
  background: var(--re-weiss); border: 1px solid var(--re-linie); border-radius: 10px;
  padding: 10px 8px; text-align: center;
}
.re-summe span { display: block; font-size: 12px; color: var(--re-neben); text-transform: uppercase; letter-spacing: .04em; }
.re-summe b { display: block; margin-top: 3px; font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; }
.re-summe .gross { border-color: var(--re-orange); }
.re-summe .gross b { color: var(--re-orange); font-size: 18px; }

/* ---------------------------------------------------------- Die Zeilen */
.re-blatt h2 { margin: 18px 0 6px; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--re-neben); }
.re-liste { list-style: none; margin: 0; padding: 0; }
.re-liste li {
  display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: baseline;
  padding: 8px 10px; border-bottom: 1px solid var(--re-linie);
  background: var(--re-weiss);
}
.re-liste li:first-child { border-top-left-radius: 10px; border-top-right-radius: 10px; }
.re-liste li:last-child { border-bottom: 0; border-bottom-left-radius: 10px; border-bottom-right-radius: 10px; }
.re-zeit { font-size: 13px; color: var(--re-neben); font-variant-numeric: tabular-nums; }
.re-name { min-width: 0; word-break: break-word; }
.re-name small { color: var(--re-neben); font-size: 12px; }
.re-preis { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
/* Storniert oder abgegeben: die Zeile bleibt lesbar, zaehlt aber nicht mehr. */
.re-pos.weg { color: var(--re-neben); text-decoration: line-through; }
.re-pos.weg small { text-decoration: none; }
.re-pos.bezahlt { background: var(--re-flaeche); }
.re-zahlung.trinkgeld .re-name { color: var(--re-neben); }
.re-ok { color: var(--re-gruen); font-weight: 700; }

/* --------------------------------------------------------- Die Hinweise */
.re-hinweis { margin: 10px 0 0; font-size: 14px; color: var(--re-neben); }
.re-ruhig { margin: 14px 0; font-size: 15px; color: var(--re-neben); }
.re-andere {
  margin: 18px 0 0; padding: 12px 14px;
  background: var(--re-weiss); border: 1px solid var(--re-orange); border-radius: 10px;
  font-size: 15px;
}
.re-zurueck { margin: 22px 0 0; font-size: 15px; }
.re-zurueck a { color: var(--re-neben); text-decoration: none; }
.re-zurueck a:hover { color: var(--re-orange); }
