/* Kundenanzeige (#79) — Pages/CustomerDisplay.razor, Components/Display/*. Zweites Tablet, zum Kunden gedreht:
   aus 1–2 m lesbar, ruhige Flächen, keine Bedienelemente außer beim Koppeln. Präfix anz-; Farben aus kasse.css. */
.anz-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #fff;
    color: var(--kasse-ink);
    font-size: 22px;
    position: relative;
}

.anz-center { flex: 1; display: flex; align-items: center; justify-content: center; padding: 32px 16px; background: var(--kasse-bg); }
.anz-center > p { color: var(--kasse-muted); }

.anz-offline {
    position: absolute;
    right: 16px;
    bottom: 48px; /* über „Powered by GaiGo“ (#104) */
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(178, 106, 0, 0.12);
    color: var(--kasse-warn);
    font-size: 15px;
}

.anz-qr { display: block; width: 220px; height: 220px; image-rendering: pixelated; margin: 12px auto 0; }

/* Filiallogo (#104): Ruhe groß, Verkauf/Zahlung klein im Kopf; „Powered by GaiGo“ klein rechts unten, alle Phasen. */
.anz-logo { display: block; object-fit: contain; object-position: left center; }
.anz-logo--large { max-height: 160px; max-width: min(480px, 100%); }
.anz-logo--small { max-height: 44px; max-width: 240px; }
.anz-sale-head { margin: 0 0 16px; }
.anz-powered {
    position: absolute;
    right: 16px;
    bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.85); /* lesbar auch auf der dunklen Summenspalte */
    font-size: 14px;
    color: var(--kasse-muted);
}
.anz-powered img { width: 20px; height: 20px; }

/* Ruhe */
.anz-idle { flex: 1; display: flex; flex-direction: column; padding: 32px 40px; gap: 24px; }
.anz-idle-head h1 { margin: 0; font-size: 44px; }
.anz-idle-head p { margin: 4px 0 0; color: var(--kasse-muted); font-size: 24px; }
.anz-idle-body { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; }
.anz-idle-body--solo { grid-template-columns: minmax(0, 1fr); }
.anz-highlights { display: grid; gap: 20px; }
.anz-highlight {
    display: flex;
    gap: 20px;
    padding: 16px;
    border-radius: 18px;
    background: var(--kasse-bg);
    align-items: center;
}
.anz-highlight-img { width: 180px; height: 135px; object-fit: cover; border-radius: 12px; flex: none; }
.anz-highlight-text h2 { margin: 4px 0; font-size: 30px; }
.anz-highlight-text p { margin: 0; color: var(--kasse-muted); line-height: 1.4; }
.anz-highlight-tag {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    background: var(--kasse-primary);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.anz-welcome { display: flex; align-items: center; justify-content: center; min-height: 240px; font-size: 32px; color: var(--kasse-muted); }
.anz-order { padding: 24px; border-radius: 18px; border: 2px solid #e3e8f2; text-align: center; }
.anz-order h2 { margin: 0 0 8px; font-size: 28px; }
.anz-order p { margin: 0; color: var(--kasse-muted); font-size: 18px; line-height: 1.4; }

/* Verkauf und Zahlung */
/* Feste Höhe (#124): die Positionsliste füllt den Rest der Spalte; was nicht ganz passt, fasst „… und n weitere“ zusammen. */
.anz-sale { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) 380px; height: 100vh; }
.anz-lines { padding: 28px 32px; overflow: hidden; display: flex; flex-direction: column; min-height: 0; }
.anz-customer { margin: 0 0 12px; font-size: 26px; font-weight: 700; }
/* Eine Mengenspalte für alle Zeilen (subgrid): mit Verkaufseinheit (#134, „0,5 kg ×“) ist sie breiter, die Namen stehen
   trotzdem bündig untereinander. align-content: start, damit wenige Zeilen nicht auf die Listenhöhe gestreckt werden. */
.anz-lines ul {
    list-style: none; margin: 0; padding: 0; flex: 1 1 0; min-height: 0; overflow: hidden;
    display: grid;
    grid-template-columns: minmax(70px, auto) minmax(0, 1fr) auto;
    align-content: start;
    column-gap: 14px;
}
.anz-line {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: subgrid;
    align-items: baseline;
    padding: 12px 0;
    border-bottom: 1px solid #e3e8f2;
    font-size: 26px;
}
.anz-line:first-child { font-weight: 700; }
.anz-line-qty { color: var(--kasse-muted); text-align: right; }
.anz-line-name { min-width: 0; overflow-wrap: anywhere; }
.anz-line-total { white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; }
/* Positionsrabatt (#124): grün unter dem Namen, bis unter den Betrag */
.anz-line-discount { grid-column: 2 / -1; margin-top: 2px; font-size: 0.8em; font-weight: 400; color: var(--kasse-ok); font-variant-numeric: tabular-nums; }
/* Viele Positionen (#124): ab 10 kleinere Schrift, weniger Abstand; die Rest-Zeile ruhig darunter */
.anz-lines--compact .anz-line { padding: 7px 0; font-size: 21px; }
.anz-line.anz-more { display: block; color: var(--kasse-muted); font-style: italic; font-weight: 400; border-bottom: 0; }
.anz-sums { padding: 28px 32px; background: var(--kasse-ink); color: #fff; display: flex; flex-direction: column; justify-content: center; }
.anz-sums dl { margin: 0; display: grid; gap: 4px; }
.anz-sums dt { font-size: 22px; opacity: 0.75; margin-top: 16px; }
.anz-sums dd { margin: 0; font-size: 34px; font-weight: 700; font-variant-numeric: tabular-nums; }
.anz-sums .anz-big { font-size: 64px; }
.anz-sums .anz-count { margin-top: 4px; }
.anz-sale--payment .anz-sums { background: var(--kasse-primary); }
.anz-change { color: #b9f6ca; }
/* Standardrabatt (#124) in der Summenspalte: helles Grün wie das Rückgeld (dunkler Grund) */
.anz-sums .anz-discount { color: #b9f6ca; }

/* Bezahlt */
.anz-done { flex: 1; display: flex; align-items: center; justify-content: center; gap: 48px; padding: 32px; flex-wrap: wrap; }
.anz-done-main h1 { margin: 0 0 16px; font-size: 56px; color: var(--kasse-ok); }
.anz-done-main dl { margin: 0; display: grid; grid-template-columns: auto auto; gap: 8px 24px; font-size: 32px; }
.anz-done-main dt { color: var(--kasse-muted); }
.anz-done-main dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.anz-done-main .anz-change { color: var(--kasse-ok); }

/* Zettel-QR (#114): klein — im Verkauf unter der Summe, nach der Zahlung neben Beleg-/Lieferschein-QR. */
.anz-qr--small { width: 140px; height: 140px; }
.anz-done .anz-zettel { padding: 16px; max-width: 240px; }
.anz-done .anz-zettel h2 { font-size: 22px; }
.anz-done .anz-zettel p { font-size: 16px; }
.anz-sums .anz-zettel { margin-top: 24px; padding: 12px; border-radius: 14px; background: #fff; color: var(--kasse-ink); text-align: center; }
.anz-sums .anz-zettel p { margin: 0; font-size: 16px; line-height: 1.3; }
.anz-sums .anz-zettel .anz-qr { margin-top: 8px; }

/* Hochformat-Tablet: Summe unten, Aktionen untereinander */
@media (orientation: portrait), (max-width: 900px) {
    .anz-sale { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; }
    .anz-idle-body { grid-template-columns: 1fr; }
    .anz-idle { padding: 24px 16px; }
    .anz-highlight-img { width: 120px; height: 90px; }
}
