/* Der Laden (lib/laden.mjs, 10.11.2026). Baut auf dem Markentest auf: Schriften, Farben je Marke, Knopf, Feld, Fuß. */
@import url("/css/test.css");

a.knopf { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.ld-klein { display: block; font-size: 14px; color: var(--leise); letter-spacing: 0.04em; }
.ld-hinweis { margin: 16px 0; padding: 14px 18px; border-radius: 16px; background: var(--karte); font-size: 16px; }
.pfui .ld-hinweis { border: 2px solid var(--tinte); }

/* Kopf */
.ld-kopf { gap: 16px; flex-wrap: wrap; height: auto; min-height: 72px; padding-block: 12px; }
.ld-nav { display: flex; gap: 22px; flex-wrap: wrap; font-size: 16px; }
.ld-nav a { text-decoration: none; }
.ld-nav a[aria-current] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.ld-korb { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 20px; background: var(--dunkel); color: var(--hell); text-decoration: none; font-weight: 700; font-size: 15px; }
.ld-korb span { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--hell); color: var(--dunkel); font-size: 13px; display: inline-flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; }

/* Start */
.ld-frage { font-weight: var(--kopf); font-size: 24px; letter-spacing: -0.02em; }
.ld-antwort { margin-top: 24px; padding: 22px; border-radius: var(--rund); background: var(--karte); max-width: 520px; }
.pfui .ld-antwort { border: 2px solid var(--tinte); }
.ld-antwort h2 { margin: 4px 0 12px; font-size: 24px; font-weight: var(--kopf); letter-spacing: -0.02em; text-wrap: balance; }
.ld-antwort ul { margin: 0 0 18px; padding-left: 20px; font-size: 16px; display: grid; gap: 6px; }
.ld-antwort a { font-weight: 700; }

.ld-band { padding: 0 0 64px; scroll-margin-top: 16px; }
.ld-band h2, .ld-set h2 { margin: 0 0 20px; font-weight: var(--kopf); letter-spacing: var(--spur); font-size: clamp(32px, 5vw, 48px); }
.ld-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.ld-karte { display: flex; flex-direction: column; gap: 6px; padding: 16px 16px 20px; border-radius: var(--rund); background: var(--karte); text-decoration: none; }
.pfui .ld-karte { border: 2px solid var(--tinte); }
.ld-karte:hover { transform: translateY(-2px); }
.ld-karte__ort { font-size: 13px; color: var(--leise); margin-top: 8px; }
.ld-karte__name { font-weight: var(--kopf); font-size: 22px; letter-spacing: -0.02em; }
.ld-karte__kurz { font-size: 15px; color: var(--leise); flex: 1 1 auto; }
.ld-karte__preis { font-weight: 700; font-variant-numeric: tabular-nums; }

/* Packung als Bild (bis Fotos da sind) */
.ld-pack { aspect-ratio: 4 / 3; max-width: 100%; border-radius: calc(var(--rund) - 8px); padding: 14px; display: flex; flex-direction: column; justify-content: space-between; font-weight: var(--kopf); }
.ld-pack b { font-size: 20px; letter-spacing: var(--spur); }
.ld-pack span { font-size: 22px; line-height: 1; letter-spacing: -0.02em; }
.pfui .ld-pack--kueche { background: var(--gelb); color: var(--tinte); }
.pfui .ld-pack--tonne { background: var(--dunkel); color: var(--hell); }
.rein .ld-pack--kueche { background: #FFFFFF; color: #1D1D1F; box-shadow: inset 0 0 0 1px #E8E8ED; }
.rein .ld-pack--tonne { background: #2A2A2D; color: #F5F5F7; }
.ld-pack--gross { aspect-ratio: 1 / 1; padding: 28px; }
/* Produktansicht (Render) statt gezeichneter Packung, 10.11.2026. Gleiche Ecken wie die Packung, Seitenverhältnis des Renders. */
.ld-ansicht { display: block; width: 100%; height: auto; aspect-ratio: 7 / 5; object-fit: cover; border-radius: calc(var(--rund) - 8px); background: var(--karte); }
.ld-ansicht--gross { border-radius: var(--rund); }
.ld-pack--gross b { font-size: 36px; }
.ld-pack--gross span { font-size: 44px; }

.ld-set { margin: 0 0 80px; padding: 40px; border-radius: calc(var(--rund) + 8px); background: var(--dunkel); color: var(--hell); }
.ld-set p { max-width: 46ch; margin: 0 0 24px; }
.ld-set .ld-klein { color: inherit; opacity: 0.75; }
.pfui .ld-set .knopf { background: var(--gelb); color: var(--tinte); }
.rein .ld-set .knopf { background: #FFFFFF; color: #1D1D1F; }

/* Produkt */
.ld-pfad { font-size: 14px; color: var(--leise); padding: 8px 0 24px; }
.ld-produkt { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; padding-bottom: 80px; align-items: start; }
.ld-produkt h1 { margin: 6px 0 12px; font-weight: var(--kopf); letter-spacing: var(--spur); line-height: 0.95; font-size: clamp(44px, 6vw, 72px); text-wrap: balance; }
.ld-produkt .unter { max-width: 42ch; margin-bottom: 20px; }
.ld-preis { display: block; font-size: 30px; font-weight: var(--kopf); margin-bottom: 18px; font-variant-numeric: tabular-nums; }
.ld-wahl { border: 0; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.ld-wahl legend { font-size: 14px; color: var(--leise); margin-bottom: 8px; }
.ld-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.ld-chip { display: inline-flex; align-items: center; height: 44px; padding: 0 18px; border-radius: 22px; border: 2px solid var(--tinte); text-decoration: none; font-size: 16px; font-weight: 500; }
.rein .ld-chip { border-width: 1px; border-color: #D2D2D7; }
.ld-chip[aria-current] { background: var(--dunkel); color: var(--hell); border-color: var(--dunkel); }
.ld-kauf { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; margin-bottom: 24px; }
.ld-menge { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--leise); }
.ld-menge input { width: 88px; height: 52px; padding: 0 14px; border-radius: 26px; border: 2px solid var(--tinte); background: var(--karte); font: inherit; color: var(--tinte); }
.ld-fakten { display: grid; grid-template-columns: auto 1fr; gap: 8px 20px; margin: 0 0 20px; font-size: 16px; }
.ld-fakten dt { color: var(--leise); }
.ld-fakten dd { margin: 0; }
.ld-mehr { font-weight: 700; }

/* Set */
.ld-setbau { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 48px; padding: 16px 0 80px; align-items: start; }
.ld-setbau h1 { margin: 6px 0 32px; font-weight: var(--kopf); letter-spacing: var(--spur); font-size: clamp(44px, 6vw, 72px); line-height: 0.95; }
.ld-schritt { display: flex; gap: 12px; align-items: baseline; margin: 0 0 12px; font-size: 20px; font-weight: var(--kopf); }
.ld-schritt b { font-size: 14px; color: var(--leise); font-variant-numeric: tabular-nums; }
.ld-zusammen { padding: 28px; border-radius: var(--rund); background: var(--karte); }
.pfui .ld-zusammen { border: 2px solid var(--tinte); }
.ld-zusammen h2 { margin: 0 0 14px; font-size: 22px; font-weight: var(--kopf); }
.ld-zusammen ul { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; font-size: 16px; }
.ld-zusammen li { display: flex; justify-content: space-between; gap: 12px; }
.ld-zusammen li span:last-child { font-variant-numeric: tabular-nums; color: var(--leise); }
.ld-zusammen form .knopf { width: 100%; margin-top: 16px; }
.ld-summe { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0; border-top: 1px solid rgba(0, 0, 0, 0.12); }
.ld-summe b { font-size: 28px; font-weight: var(--kopf); font-variant-numeric: tabular-nums; }

/* Korb */
.ld-korbseite { max-width: 720px; padding: 16px 0 80px; }
.ld-korbseite h1 { margin: 0 0 24px; font-weight: var(--kopf); letter-spacing: var(--spur); font-size: clamp(44px, 6vw, 72px); }
.ld-liste { list-style: none; margin: 0 0 8px; padding: 0; }
.ld-zeile { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 16px 0; border-bottom: 1px solid rgba(0, 0, 0, 0.12); }
.ld-zeile > div:first-child { min-width: 0; }
.ld-zeile b a { text-decoration: none; }
.ld-zeile__rechts { display: flex; align-items: center; gap: 14px; font-variant-numeric: tabular-nums; }
.ld-zeile form { margin: 0; }
.ld-abo { font-size: 12px; padding: 2px 8px; border-radius: 10px; background: var(--dunkel); color: var(--hell); vertical-align: middle; }
.ld-stepper { display: inline-flex; align-items: center; gap: 4px; border-radius: 20px; border: 1px solid rgba(0, 0, 0, 0.2); padding: 2px; }
.ld-stepper span { min-width: 24px; text-align: center; }
.ld-mini { border: 0; background: none; font: inherit; color: inherit; cursor: pointer; min-width: 36px; height: 36px; padding: 0 6px; font-size: 15px; text-decoration: underline; }
.ld-stepper .ld-mini { text-decoration: none; font-size: 20px; }

/* Ratgeber */
.ld-ratgeber { max-width: 680px; padding: 16px 0 80px; }
.ld-ratgeber h1 { margin: 6px 0 16px; font-weight: var(--kopf); letter-spacing: var(--spur); font-size: clamp(40px, 6vw, 64px); line-height: 0.95; text-wrap: balance; }
.ld-ratgeber h2 { margin: 36px 0 8px; font-size: 24px; font-weight: var(--kopf); letter-spacing: -0.02em; }
.ld-ratgeber p { margin: 0 0 12px; }

@media (max-width: 760px) {
  .ld-produkt, .ld-setbau { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .ld-set { padding: 28px 20px; }
  .ld-nav { order: 3; width: 100%; gap: 16px; }
  .ld-kauf .knopf { width: auto; flex: 1 1 auto; }
}
.ld-zusammen .ld-hinweis { padding: 0; border: 0; background: none; }

/* Kasse (lib/ladenkasse.mjs) */
.ld-anschrift { display: grid; gap: 14px; margin-top: 24px; }
.ld-feld { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--leise); min-width: 0; }
.ld-feld input { height: 52px; padding: 0 16px; border-radius: 14px; border: 2px solid var(--tinte); background: var(--karte); font: inherit; font-size: 17px; color: var(--tinte); min-width: 0; }
.rein .ld-feld input { border-width: 1px; border-color: #D2D2D7; }
.ld-zwei { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 12px; }
.ld-anschrift .knopf, .ld-zahlen .knopf { width: 100%; margin-top: 8px; }
.ld-zahlen { display: grid; gap: 12px; margin-top: 20px; }
.ld-karte-feld { min-height: 56px; padding: 16px; border-radius: 14px; border: 2px solid var(--tinte); background: var(--karte); }
.rein .ld-karte-feld { border-width: 1px; border-color: #D2D2D7; }
.knopf:disabled { opacity: 0.45; cursor: default; }

/* Kündigen (lib/kuendigen.mjs) */
.ld-wahl--spalte { flex-direction: column; align-items: flex-start; gap: 8px; }
.ld-quittung { white-space: pre-wrap; font: inherit; font-size: 16px; padding: 20px; border-radius: var(--rund); background: var(--karte); }
.fuss .ld-kuendigen { font-weight: 700; }
.ld-korbseite h1 { line-height: 0.95; text-wrap: balance; }
