Files
laraundfelix/resources/css/components/lf-shop.css
T
LarsandClaude Sonnet 5.5 42e0a6bb93
CI Feature / test (push) Failing after 3m2s
Mache den Download bei reiner Download-Lizenz erreichbar und zeige den Stand zum Verkaufsstart
Die Artikelseite zeigte bei einer Lizenz nur zum Herunterladen (kein Streamen oder
Ansehen) "Nicht enthalten"; jetzt bietet sie den Download. Tests belegen Einzelfilm
und Begleit-PDF aus der Bibliothek mit Dateiname und Zugriffsgrenzen. Neue
Verwaltungsseite Verkaufsstart nennt fehlende Rechtstexte und den Zustand der
Zahlungseinrichtung, ohne Schlüssel zu zeigen.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-22 19:58:22 +01:00

424 lines
7.5 KiB
CSS

/*
* Shop (Etappe 1): Produktseite mit Lizenzoptionen, Shop-Suche, Warenkorb und Kasse.
* Nur Bedeutungswerte aus tokens.css; keine eigenen Farben. Zustand wird nie allein durch Farbe vermittelt
* (jede Markierung trägt Text).
*/
.shop-options {
margin-top: var(--space-7);
}
.shop-options-lede,
.shop-note {
color: var(--color-text-muted);
max-width: var(--measure);
}
.shop-option-list,
.shop-lines,
.shop-tiles {
list-style: none;
margin: var(--space-5) 0;
padding: 0;
display: grid;
gap: var(--space-4);
}
.shop-option,
.shop-line,
.shop-tile {
background: var(--color-surface-raised);
border: 1px solid var(--color-border);
border-radius: var(--radius-card);
padding: var(--space-5);
}
.shop-option h3,
.shop-line h2,
.shop-tile h2 {
margin: 0 0 var(--space-2);
}
.shop-option h4 {
margin: var(--space-4) 0 var(--space-2);
font-size: var(--text-body);
}
.shop-price {
white-space: nowrap;
font-size: var(--text-h3);
font-weight: 700;
color: var(--color-heading);
margin: 0 0 var(--space-3);
}
.shop-price.is-struck {
color: var(--color-text-muted);
text-decoration: line-through;
}
.shop-price-old {
color: var(--color-text-muted);
font-weight: 400;
margin-right: var(--space-2);
}
.shop-facts {
display: flex;
flex-wrap: wrap;
gap: var(--space-2) var(--space-5);
margin: 0 0 var(--space-3);
}
.shop-facts div {
display: grid;
}
.shop-facts dt {
color: var(--color-text-muted);
font-size: var(--text-small);
}
.shop-facts dd {
margin: 0;
font-weight: 600;
}
.shop-scope {
list-style: none;
margin: 0 0 var(--space-4);
padding: 0;
display: grid;
gap: var(--space-2);
}
.shop-scope li {
display: grid;
}
.shop-scope span {
color: var(--color-text-muted);
font-size: var(--text-small);
}
.shop-actions {
display: flex;
flex-wrap: wrap;
gap: var(--space-3);
align-items: center;
}
.shop-actions form {
margin: 0;
}
.shop-switch {
max-width: var(--measure);
}
.shop-in-cart {
font-weight: 600;
margin: 0;
}
.shop-search {
display: flex;
flex-wrap: wrap;
gap: var(--space-3);
align-items: end;
margin: var(--space-5) 0;
}
.shop-search label {
flex-basis: 100%;
font-weight: 600;
}
.shop-search input[type='search'],
.shop-holder select {
font: inherit;
min-height: var(--touch-target);
border: 1px solid var(--color-border-strong);
border-radius: var(--radius-small);
padding: 0.5rem 0.75rem;
background: var(--color-surface);
color: var(--color-text);
flex: 1 1 16rem;
max-width: 28rem;
}
.shop-holder {
display: flex;
flex-wrap: wrap;
gap: var(--space-3);
align-items: center;
margin: 0 0 var(--space-4);
}
.shop-holder label {
font-weight: 600;
}
.shop-count {
color: var(--color-text-muted);
margin: 0;
}
.shop-tiles {
grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
}
.shop-tile-price {
font-weight: 600;
margin: var(--space-3) 0 0;
}
.shop-line {
display: grid;
gap: var(--space-4);
}
.shop-line.is-owned {
background: var(--color-surface-subtle);
}
.shop-line.is-blocked {
border-color: var(--color-danger);
border-width: 2px;
}
.shop-line-option {
margin: 0 0 var(--space-3);
color: var(--color-text-muted);
}
.shop-badge {
display: inline-block;
margin: 0 0 var(--space-2);
padding: 0.15rem 0.7rem;
border-radius: var(--radius-pill);
border: 2px solid currentColor;
font-weight: 700;
font-size: var(--text-small);
}
.shop-badge-owned {
color: var(--color-success);
background: var(--color-success-surface);
}
.shop-badge-changed {
color: var(--color-warning);
background: var(--color-warning-surface);
}
.shop-badge-blocked {
color: var(--color-danger);
background: var(--color-danger-surface);
}
.shop-total {
margin: var(--space-5) 0;
padding-top: var(--space-4);
border-top: 2px solid var(--color-border-strong);
}
.shop-total p:first-child {
display: flex;
justify-content: space-between;
gap: var(--space-4);
font-size: var(--text-h3);
margin: 0 0 var(--space-2);
max-width: 32rem;
}
.shop-cart-count {
font-weight: 700;
}
/* Sichtbare Anzahl am Warenkorbsymbol; die Anzahl steht zusätzlich im Namen des Links. */
.site-icon-link:has(.shop-cart-badge) {
position: relative;
}
.shop-cart-badge {
position: absolute;
top: -0.35rem;
right: -0.35rem;
min-width: 1.35rem;
height: 1.35rem;
padding: 0 0.3rem;
border-radius: var(--radius-pill);
background: var(--color-accent);
color: var(--lf-navy);
font-size: 0.8rem;
font-weight: 800;
line-height: 1.35rem;
text-align: center;
}
.shop-order-summary {
max-width: 40rem;
}
.shop-order-summary li {
flex-wrap: wrap;
display: flex;
justify-content: space-between;
gap: var(--space-4);
}
@media (min-width: 48rem) {
.shop-line {
grid-template-columns: minmax(0, 1fr) auto;
align-items: start;
}
.shop-line-side {
text-align: right;
}
.shop-line-side .shop-actions {
justify-content: flex-end;
}
}
/* Verkaufsstart: Nutzerkreis, Rabattcode, Summen, Pflichtangaben und Zustimmungen */
.shop-licence {
margin: 0 0 var(--space-2);
}
.shop-draft {
padding: var(--space-3) var(--space-4);
border: 2px dashed var(--color-warning);
border-radius: var(--radius-card, 0.5rem);
background: var(--color-warning-surface);
color: var(--color-text);
}
.shop-badge-discount {
color: var(--color-success);
background: var(--color-success-surface);
}
.shop-roles {
display: grid;
gap: var(--space-2);
max-width: 40rem;
margin: 0 0 var(--space-5);
}
.shop-roles div {
display: grid;
gap: 0.15rem;
}
.shop-roles dt {
font-weight: 700;
}
.shop-roles dd {
margin: 0;
}
.shop-code,
.shop-pay,
.shop-legal {
max-width: 40rem;
margin: var(--space-5) 0;
}
.shop-code-row {
display: flex;
flex-wrap: wrap;
gap: var(--space-3);
align-items: stretch;
}
.shop-code-row input {
flex: 1 1 12rem;
min-height: 2.75rem;
padding: 0 var(--space-3);
border: 2px solid var(--color-border-strong);
border-radius: var(--radius-control, 0.4rem);
font: inherit;
text-transform: uppercase;
}
.shop-code-applied {
font-weight: 600;
}
.shop-total-table {
max-width: 32rem;
display: grid;
gap: var(--space-2);
}
.shop-total-table div {
display: flex;
justify-content: space-between;
gap: var(--space-4);
}
.shop-total-table dt,
.shop-total-table dd {
margin: 0;
}
.shop-total-final {
font-size: var(--text-h3);
padding-top: var(--space-2);
border-top: 1px solid var(--color-border-strong);
}
.shop-pay,
.shop-legal {
border: 0;
padding: 0;
}
.shop-pay legend,
.shop-legal legend {
font-weight: 700;
padding: 0;
margin-bottom: var(--space-3);
}
.shop-pay label,
.shop-consent {
display: flex;
gap: var(--space-3);
align-items: flex-start;
margin: 0 0 var(--space-3);
}
.shop-pay input,
.shop-consent input {
flex: none;
width: 1.35rem;
height: 1.35rem;
margin-top: 0.15rem;
}
.shop-legal-missing {
color: var(--color-danger);
font-weight: 600;
}
.mb-withdraw {
margin-top: var(--space-5);
max-width: 40rem;
}
.mb-withdraw summary {
cursor: pointer;
font-weight: 600;
}
.mb-withdraw textarea {
display: block;
width: 100%;
margin: var(--space-2) 0 var(--space-3);
}