/* Layout-Stile der foodcoop-App — baut auf tokens.css (Typomeister) auf.
   Mobile-first (Familien-Strecke); Desktop-Breakpoint für Verwaltungs-Sichten. */

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--color-bg-base, #f5f3ef);
  color: var(--color-text-primary, #2a2a2a);
  font-family: var(--font-body, "Source Sans 3", system-ui, sans-serif);
  font-size: var(--step-0, 1rem);
  line-height: 1.5;
}

/* Einkaufswelt ------------------------------------------------------------ */
.shop-kopf {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--space-l);
  margin: var(--space-xl) 0 var(--space-l);
}

.shop-kopf h1 {
  max-width: 16ch;
  margin: 0;
  font-size: clamp(2.4rem, 7vw, 5.4rem);
  line-height: .88;
}

.shop-kicker {
  margin: 0 0 var(--space-xs);
  color: var(--color-fire);
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.shop-einleitung {
  max-width: 48ch;
  color: var(--color-text-muted);
}

.katalogstand {
  max-width: 25rem;
  padding: var(--space-s) var(--space-m);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-m);
  background: var(--color-bg-surface);
}

.katalogstand strong,
.katalogstand span,
.katalogstand small {
  display: block;
}

.katalogstand-warnung {
  border-color: var(--color-warning, #9d7533);
}

.shop-filter {
  position: sticky;
  z-index: 4;
  top: .5rem;
  display: grid;
  grid-template-columns: minmax(14rem, 1fr) auto auto auto;
  gap: var(--space-s);
  margin-bottom: var(--space-l);
  padding: var(--space-s);
  border: 1px solid color-mix(in srgb, var(--color-border) 75%, transparent);
  border-radius: var(--radius-l);
  background: color-mix(in srgb, var(--color-bg-base) 92%, transparent);
  box-shadow: 0 14px 40px rgb(53 61 48 / 8%);
  backdrop-filter: blur(14px);
}

.shop-filter input,
.shop-filter select,
.shop-filter button {
  min-height: 3.25rem;
  margin: 0;
}

.produktwand {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
  gap: clamp(1rem, 3vw, 2rem);
  padding-bottom: var(--space-xl);
}

.produktkarte {
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--color-border) 72%, transparent);
  border-radius: calc(var(--radius-l) + .35rem);
  background: var(--color-bg-surface);
  box-shadow: 0 18px 48px rgb(49 56 44 / 9%);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.produktkarte:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 55px rgb(49 56 44 / 14%);
}

.produktbild {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--color-bg-elevated);
}

.produktbild img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease;
}

.produktkarte:hover .produktbild img {
  transform: scale(1.025);
}

.favorit-form {
  position: absolute;
  top: .75rem;
  right: .75rem;
}

.favorit-knopf {
  display: grid;
  width: 2.8rem;
  min-height: 2.8rem;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #3b4a3c;
  background: rgb(250 248 242 / 88%);
  font-size: 1.55rem;
  box-shadow: 0 6px 18px rgb(34 42 35 / 16%);
}

.produktinhalt {
  padding: var(--space-m);
}

.produkt-meta {
  min-height: 1.4em;
  margin: 0;
  color: var(--color-fire);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.produktinhalt h2 {
  min-height: 2.25em;
  margin: .3rem 0 .45rem;
  font-size: clamp(1.45rem, 2vw, 1.85rem);
  line-height: 1.08;
}

.produkt-gebinde {
  min-height: 1.5em;
  color: var(--color-text-muted);
}

.produkt-fuss {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--space-s);
  margin-top: var(--space-m);
}

.produkt-preis,
.produkt-status {
  display: block;
}

.produkt-preis {
  font-family: var(--font-display);
  font-size: 1.65rem;
}

.produkt-status {
  margin-top: .2rem;
  color: var(--color-text-muted);
  font-size: .8rem;
}

.status-sofort { color: #466a46; }
.status-vorbestellung { color: #8c672f; }
.status-nicht_lieferbar { color: #8d4e46; }
.artikelnummer { color: var(--color-text-muted); font-size: .75rem; }
.leerzustand { grid-column: 1 / -1; text-align: center; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 760px) {
  .shop-kopf {
    align-items: stretch;
    flex-direction: column;
  }

  .shop-filter {
    position: static;
    grid-template-columns: 1fr;
  }

  .produktwand {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr));
  }
}

.einkaufs-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 24rem);
  gap: clamp(1.25rem, 4vw, 3rem);
  align-items: start;
}

.produktwand.kompakt {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
}

.produkt-bestellen {
  display: grid;
  gap: .65rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

.produkt-bestellen input,
.produkt-bestellen select,
.produkt-bestellen textarea,
.produkt-bestellen button {
  width: 100%;
  margin-top: .25rem;
}

.produkt-bestellen details {
  color: var(--color-text-muted);
  font-size: .9rem;
}

.produkt-bestellen details[open] {
  padding: .65rem;
  border-radius: var(--radius-m);
  background: var(--color-bg-elevated);
}

.warenkorb-seite {
  position: sticky;
  top: 5.5rem;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: calc(var(--radius-l) + .35rem);
  background: var(--color-bg-surface);
  box-shadow: 0 20px 60px rgb(49 56 44 / 12%);
}

.warenkorb-kopf,
.warenkorb-zeile,
.warenkorb-summe,
.warenkorb-seite > form,
.warenkorb-seite > p {
  padding: 1rem 1.15rem;
}

.warenkorb-kopf {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--color-border);
}

.warenkorb-kopf h2,
.warenkorb-kopf p {
  margin: 0;
}

.warenkorb-zeile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  border-bottom: 1px solid var(--color-border);
}

.warenkorb-zeile strong,
.warenkorb-zeile small {
  display: block;
}

.warenkorb-zeile small {
  color: var(--color-text-muted);
}

.warenkorb-summe {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  background: var(--color-bg-elevated);
}

.warenkorb-summe strong {
  font-family: var(--font-display);
  font-size: 2rem;
}

.warenkorb-freigeben {
  width: 100%;
  min-height: 3.5rem;
}

@media (max-width: 980px) {
  .einkaufs-layout {
    grid-template-columns: 1fr;
  }

  .warenkorb-seite {
    position: static;
    grid-row: 1;
  }
}

/* Verteilkasse ------------------------------------------------------------ */
.kasse-kopf {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.kasse-kopf h1 {
  margin: 0;
  font-size: clamp(2.3rem, 6vw, 4.8rem);
  line-height: .95;
}

.sync-ampel {
  flex: 0 0 auto;
  padding: .7rem 1rem;
  border: 1px solid #76906f;
  border-radius: 999px;
  background: #edf3e9;
  font-weight: 700;
}

.sync-ampel span {
  display: inline-block;
  width: .7rem;
  height: .7rem;
  margin-right: .35rem;
  border-radius: 50%;
  background: #477343;
}

.ist-offline .sync-ampel {
  border-color: #a77e3d;
  background: #fbf0d9;
}

.ist-offline .sync-ampel span { background: #a66b25; }

.kasse-filter {
  display: flex;
  gap: .65rem;
  overflow-x: auto;
  margin-bottom: 1.25rem;
  padding-bottom: .25rem;
}

.offline-leiste {
  display: grid;
  grid-template-columns: auto auto minmax(12rem, 1fr);
  gap: .75rem;
  align-items: center;
  margin-bottom: 1rem;
  padding: .8rem;
  border: 1px solid var(--color-border);
  border-radius: 1rem;
  background: var(--color-bg-elevated);
}

.offline-leiste button {
  min-height: 3rem;
}

.offline-konflikte {
  grid-column: 1 / -1;
}

.kasse-filter button {
  min-width: 7rem;
  min-height: 3.25rem;
  border-radius: 999px;
}

.kassenwand {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
  gap: clamp(1rem, 3vw, 2rem);
  margin-bottom: 2rem;
}

.kassenkachel {
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 1.45rem;
  background: var(--color-bg-surface);
  box-shadow: 0 20px 55px rgb(42 50 40 / 14%);
}

.kassenkachel.typ-pfand {
  border-color: #78866f;
  background: #f1f2ea;
}

.kassenbild {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.kassenbild img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kassen-typ {
  position: absolute;
  top: .8rem;
  left: .8rem;
  padding: .4rem .7rem;
  border-radius: 999px;
  color: #fff;
  background: rgb(39 52 41 / 84%);
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.kasseninhalt {
  padding: 1.15rem;
}

.kasseninhalt h2 {
  margin: 0 0 .7rem;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1;
}

.mengenstand strong,
.mengenstand span {
  display: block;
}

.mengenstand strong {
  font-family: var(--font-display);
  font-size: 1.8rem;
}

.mengenstand span {
  color: var(--color-text-muted);
}

.pfandwert {
  font-weight: 700;
  color: #465b47;
}

.kassenformular {
  display: grid;
  gap: .75rem;
  margin-top: 1rem;
}

.kassenformular select,
.kassenformular input,
.kassenformular button {
  width: 100%;
  min-height: 3.5rem;
  margin-top: .25rem;
  font-size: 1.1rem;
}

.kasse-buchen {
  min-height: 4.2rem !important;
  font-size: 1.25rem !important;
}

.kasse-rest {
  color: var(--color-text-primary);
  border: 2px solid var(--color-fire);
  background: transparent;
}

.buchungsstrom > div {
  display: grid;
  grid-template-columns: minmax(10rem, 1fr) 1fr auto;
  gap: .4rem 1rem;
  padding: .8rem 0;
  border-bottom: 1px solid var(--color-border);
}

.buchungsstrom small {
  grid-column: 1 / -1;
  color: var(--color-text-muted);
}

@media (max-width: 700px) {
  .kasse-kopf {
    align-items: stretch;
    flex-direction: column;
  }

  .sync-ampel { align-self: start; }
  .kassenwand { grid-template-columns: 1fr; }
  .buchungsstrom > div { grid-template-columns: 1fr; }
  .buchungsstrom small { grid-column: auto; }
  .offline-leiste { grid-template-columns: 1fr; }
  .offline-konflikte { grid-column: auto; }
}

.sprache-start {
  width: 100%;
  min-height: 3.5rem;
  background: #334f46;
  font-size: 1.05rem;
}

.sprach-dialog {
  width: min(42rem, calc(100vw - 1.5rem));
  max-height: calc(100vh - 1.5rem);
  overflow: auto;
  border: 0;
  border-radius: 1rem;
  padding: clamp(1rem, 4vw, 2rem);
  box-shadow: 0 1.5rem 5rem rgba(25, 31, 27, 0.35);
}

.sprach-dialog::backdrop { background: rgba(27, 31, 28, 0.72); }
.sprach-dialog-kopf {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
}
.sprach-dialog-kopf h2 { margin-top: 0; }
.sprach-dialog-kopf button { flex: 0 0 auto; }
.sprach-dialog textarea {
  box-sizing: border-box;
  width: 100%;
  padding: 0.8rem;
  font: inherit;
  font-size: 1.1rem;
  border: 1px solid var(--color-border, #d9d3c8);
  border-radius: 0.5rem;
}
.sprach-aufnahme,
.sprach-bestaetigen {
  width: 100%;
  min-height: 4rem;
  font-size: 1.15rem;
}
.sprach-aufnahme.nimmt-auf {
  background: #9b3428;
  animation: sprach-puls 1.2s ease-in-out infinite;
}
@keyframes sprach-puls { 50% { filter: brightness(1.25); } }
.sprach-status { min-height: 1.5em; color: var(--color-text-muted, #625d55); }
.sprach-status.fehler { color: #8b2d1a; }
.sprach-vorschlag {
  margin-top: 1rem;
  padding: 1rem;
  background: #f2eee6;
  border: 2px solid #334f46;
  border-radius: 0.75rem;
}
.sprach-zuteilung {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid #d8d0c2;
  font-size: 1.15rem;
}
.sprach-zuteilung strong { font-size: 1.35rem; }
.sprach-warnung { font-weight: 700; color: #7b321f; }

.lieferannahme-position { margin-top: 1rem; }
.lieferposition-aktiv {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}
.lieferposition-aktiv input { width: auto; }
.liefer-raster {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 0.75rem;
}
.abweichung { padding: 0.75rem; border-left: 4px solid #b66a31; }
.abweichung.status-freigegeben,
.abweichung.status-geklaert { border-left-color: #416f4a; }
.liefer-rest-form {
  display: grid;
  grid-template-columns: minmax(8rem, 1fr) repeat(3, minmax(7rem, auto)) auto;
  gap: 0.5rem;
  align-items: end;
  margin-bottom: 0.75rem;
}
.liefer-rest-form input { margin-top: 0; }
@media (max-width: 700px) {
  .liefer-rest-form { grid-template-columns: 1fr; }
}

.familien-kostenzeile,
.familien-kostensumme {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--color-border, #e3ddd2);
}
.familien-kostensumme { font-size: 1.35rem; border-bottom: 0; }

h1, h2, h3 {
  font-family: var(--font-display, "Cormorant Garamond", Georgia, serif);
  font-weight: 600;
  line-height: 1.15;
}
h1 { font-size: var(--step-3, 1.8rem); }
h2 { font-size: var(--step-2, 1.44rem); }

.kopf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm, 0.5rem);
  padding: var(--space-sm, 0.5rem) var(--space-md, 1rem);
  background: var(--color-bg-surface, #eeeae3);
  border-bottom: 2px solid var(--color-fire, #c67a3c);
  flex-wrap: wrap;
}

.wortmarke {
  font-family: var(--font-display, "Cormorant Garamond", Georgia, serif);
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: var(--step-1, 1.2rem);
  color: var(--color-fire, #c67a3c);
}

.kopf-nav { display: flex; align-items: center; gap: var(--space-sm, 0.5rem); }
.kopf-nav a { color: inherit; }
.angemeldet-als { opacity: 0.75; }

main {
  max-width: 40rem;
  margin: 0 auto;
  padding: var(--space-md, 1rem);
}

/* Verwaltungs-Sichten dürfen breiter (Desktop-Breakpoint, Architektur-Plan) */
@media (min-width: 60rem) {
  main { max-width: 56rem; }
}

.karte {
  background: var(--color-bg-surface, #ffffff);
  border-radius: var(--radius-md, 10px);
  padding: var(--space-md, 1rem) var(--space-lg, 1.5rem);
  box-shadow: 0 1px 3px rgba(42, 38, 34, 0.08);
}

.anmeldung { max-width: 24rem; margin: 10vh auto 0; }

label { display: block; margin-top: var(--space-sm, 0.5rem); font-weight: 600; }

input:not([type="hidden"]) {
  width: 100%;
  padding: 0.6em 0.7em;
  margin-top: 0.25em;
  font: inherit;
  border: 1px solid var(--color-border, #e3ddd2);
  border-radius: var(--radius-sm, 6px);
  background: #fff;
}

button {
  margin-top: var(--space-md, 1rem);
  padding: 0.6em 1.4em;
  font: inherit;
  font-weight: 600;
  color: #fff;
  background: var(--color-fire, #c67a3c);
  border: 0;
  border-radius: var(--radius-sm, 6px);
  cursor: pointer;
  /* Touch-Ziel groß genug (Verteiltag/Handy) */
  min-height: 2.75rem;
}
button:hover { filter: brightness(0.95); }

button.leise {
  background: transparent;
  color: inherit;
  border: 1px solid var(--color-border, #e3ddd2);
  font-weight: 400;
  margin-top: 0;
}

/* Link, der wie ein Knopf aussieht (z. B. CSV-Download in bestellung.html) */
a.knopf {
  display: inline-block;
  margin-top: var(--space-md, 1rem);
  padding: 0.6em 1.4em;
  font-weight: 600;
  color: #fff;
  background: var(--color-fire, #c67a3c);
  border-radius: var(--radius-sm, 6px);
  text-decoration: none;
  min-height: 2.75rem;
}
a.knopf:hover { filter: brightness(0.95); }

form.inline { display: inline; margin: 0; }

.fehler {
  color: var(--color-accent-red, #8b2d1a);
  background: color-mix(in srgb, var(--color-accent-red, #8b2d1a) 8%, transparent);
  padding: var(--space-sm, 0.5rem);
  border-radius: var(--radius-sm, 6px);
}

.meldung {
  background: var(--color-fire-tint, rgba(198, 122, 60, 0.12));
  padding: var(--space-sm, 0.5rem) var(--space-md, 1rem);
  border-radius: var(--radius-sm, 6px);
  margin-bottom: var(--space-md, 1rem);
}

/* Fehler-Variante: Ziel der htmx-Fehler-Partials (_meldung.html) */
.meldung-fehler {
  color: var(--color-accent-red, #8b2d1a);
  background: color-mix(in srgb, var(--color-accent-red, #8b2d1a) 8%, transparent);
}

.hinweis { font-size: var(--step--1, 0.9rem); opacity: 0.8; }

.abstand-oben { margin-top: var(--space-md, 1rem); }

/* Status-Pills der Runden (Ampel-Optik lt. Architektur-Plan) */
.status-pill {
  display: inline-block;
  padding: 0.15em 0.7em;
  border-radius: 999px;
  font-size: var(--step--1, 0.9rem);
  font-weight: 600;
  background: var(--color-bg-elevated, #e8e3da);
}
.status-offen        { background: #d9e7d4; color: #2e5a27; }
.status-koordination { background: #f3e3c8; color: #7a5210; }
.status-bestellt     { background: #d8e4ec; color: #2e4a5a; }
.status-abgebrochen  { background: #eddad4; color: #8b2d1a; }

.statuswechsel { margin-top: var(--space-sm, 0.5rem); }
.statusform { margin-top: var(--space-sm, 0.5rem); }
.statusform button { margin-top: 0.25rem; }

select {
  padding: 0.5em 0.6em;
  font: inherit;
  border: 1px solid var(--color-border, #e3ddd2);
  border-radius: var(--radius-sm, 6px);
  background: #fff;
  margin-top: 0.25em;
}
.inline-label { display: inline-block; font-weight: 400; }
.inline-label input[type="checkbox"] { width: auto; margin-right: 0.3em; }
.aufnahme { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.aufnahme button { margin-top: 0; }

/* min/max-Ampel je Artikel (anforderungen.md:98-100) */
.ampel {
  display: inline-block;
  padding: 0.15em 0.6em;
  border-radius: var(--radius-sm, 6px);
  font-weight: 600;
  white-space: nowrap;
}
.ampel-gruen     { background: #d9e7d4; color: #2e5a27; }
.ampel-gelb      { background: #f3e3c8; color: #7a5210; }
.ampel-rot       { background: #eddad4; color: #8b2d1a; }
.ampel-unbekannt { background: var(--color-bg-elevated, #e8e3da); color: #555; }

.wunsch { display: flex; gap: 0.3rem; align-items: center; }
.wunsch input { width: 4.5rem; margin-top: 0; }
.wunsch button { margin-top: 0; }

table { width: 100%; border-collapse: collapse; margin-top: var(--space-md, 1rem); }
th, td {
  text-align: left;
  padding: 0.5em 0.6em;
  border-bottom: 1px solid var(--color-border, #e3ddd2);
}
th {
  font-size: var(--step--1, 0.9rem);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-accent-red, #8b2d1a);
}

/* Verteil-Formular der Koordination (S4b) */
.verteilzeile { display: flex; gap: 0.5rem; align-items: center; margin-top: 0.3rem; }
.verteilzeile input { width: 5rem; margin-top: 0; }

/* Trockenware: Angebots-Karten (S5b) — weiche Teilung, Kommentare statt Telefon */
.trocken-karte { margin-top: var(--space-md, 1rem); }
.trocken-karte h3 { margin-bottom: 0.2em; }
.trocken-angebot {
  margin-top: var(--space-sm, 0.5rem);
  padding: var(--space-sm, 0.5rem) var(--space-md, 1rem);
  background: var(--color-bg-elevated, #faf8f4);
  border-left: 3px solid var(--color-fire, #c67a3c);
  border-radius: var(--radius-sm, 6px);
}
.anteile { margin: 0.4em 0 0.4em 1.2em; }
.sprechblase { font-style: italic; opacity: 0.85; }
.trocken-entscheidung {
  display: inline-block;
  padding: 0.15em 0.6em;
  border-radius: var(--radius-sm, 6px);
  font-weight: 600;
}
.trocken-entscheidung.wird-bestellt { background: #d9e7d4; color: #2e5a27; }
.trocken-entscheidung.faellt-raus   { background: #f3e3c8; color: #7a5210; }
.anteil, .anbieten { display: flex; gap: 0.3rem; align-items: center; flex-wrap: wrap; }
.anteil input, .anbieten input, .anbieten select { margin-top: 0; }
.anteil input[name="menge"] { width: 5.5rem; }

/* Verteiltag (S7): Packlisten-Karten mit großen Touch-Zielen (Tablet am
   Anlieferungsort, anforderungen.md:58) — gebündeltes Speichern je Familie */
.verteiltag-zeile {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--color-border, #e3ddd2);
}
.verteiltag-artikel { flex: 1 1 12rem; }
.verteiltag-zeile .inline-label { margin-top: 0; }
.verteiltag-zeile input {
  width: 5.5rem;
  margin-top: 0;
  font-size: var(--step-1, 1.2rem);
  min-height: 2.75rem;   /* Touch-Ziel (Tablet) */
}
.verteiltag-karte button[type="submit"] {
  width: 100%;
  font-size: var(--step-1, 1.2rem);
  min-height: 3.25rem;   /* großer Speichern-Knopf, ein Tipper für alles */
}
.erfasst-haken { color: #2e5a27; font-weight: 700; font-size: var(--step-1, 1.2rem); }
.verteiltag-liste { margin: 0.4em 0 0 1.2em; }

/* ========================================================================
   Foodcoop Produkterlebnis v3
   Die folgenden Regeln bilden die gemeinsame, responsive Produktschicht.
   Bestehende Fachklassen bleiben erhalten; diese Schicht vereinheitlicht
   Navigation, Formulare, Karten, Einkauf, Onboarding und Lieferkasse.
   ======================================================================== */

html {
  min-height: 100%;
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 4%, rgb(145 173 131 / 14%), transparent 30rem),
    radial-gradient(circle at 94% 25%, rgb(217 130 75 / 9%), transparent 32rem),
    var(--color-cream);
  color: #25322b;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--color-brand);
  text-decoration-color: rgb(23 61 47 / 32%);
  text-underline-offset: .2em;
}

a:hover { text-decoration-color: currentColor; }

:focus-visible {
  outline: 3px solid rgb(217 130 75 / 58%);
  outline-offset: 3px;
}

.sprunglink {
  position: fixed;
  z-index: 1000;
  top: .5rem;
  left: .5rem;
  padding: .7rem 1rem;
  transform: translateY(-150%);
  border-radius: var(--radius-md);
  color: #fff;
  background: var(--color-brand);
}

.sprunglink:focus { transform: translateY(0); }

/* Kopf und Navigation ---------------------------------------------------- */

.kopf {
  position: sticky;
  z-index: 50;
  top: 0;
  display: block;
  padding: 0;
  border: 0;
  border-bottom: 1px solid rgb(23 61 47 / 10%);
  background: rgb(248 246 240 / 91%);
  box-shadow: 0 8px 30px rgb(23 61 47 / 5%);
  backdrop-filter: blur(18px);
}

.kopf-innen {
  width: min(calc(100% - 2rem), 92rem);
  min-height: 5.25rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
}

.marke {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: .75rem;
  color: var(--color-brand);
  text-decoration: none;
}

.marke-signet {
  display: grid;
  width: 2.8rem;
  height: 2.8rem;
  place-items: center;
  border-radius: 1rem 1rem .55rem .55rem;
  color: var(--color-cream);
  background: var(--color-brand);
  box-shadow: 0 8px 22px rgb(23 61 47 / 20%);
}

.marke-signet svg { width: 2rem; height: 2rem; }
.marke-signet svg path:first-child { fill: currentColor; stroke: none; }
.marke-signet svg path:last-child {
  fill: none;
  stroke: var(--color-terracotta);
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.marke-text { display: grid; line-height: 1; }
.marke-text strong {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.7vw, 1.55rem);
  letter-spacing: .01em;
}
.marke-text small {
  margin-top: .32rem;
  color: #68756e;
  font-size: .69rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.hauptnav {
  display: flex;
  align-items: center;
  gap: .3rem;
  margin-left: auto;
}

.hauptnav a,
.nav-tutorial {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  margin: 0;
  padding: .58rem .8rem;
  border: 0;
  border-radius: 999px;
  color: #435149;
  background: transparent;
  font-size: .92rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.hauptnav a:hover,
.nav-tutorial:hover,
.hauptnav .ist-aktiv {
  color: var(--color-brand);
  background: var(--color-brand-soft);
  filter: none;
}

.profilmenue { position: relative; flex: 0 0 auto; }
.profilmenue > summary {
  display: flex;
  align-items: center;
  gap: .5rem;
  min-height: 3rem;
  padding: .25rem .35rem .25rem .25rem;
  list-style: none;
  border: 1px solid rgb(23 61 47 / 12%);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
}
.profilmenue > summary::-webkit-details-marker { display: none; }
.profilbild {
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--color-brand);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
}
.profilname { max-width: 8.5rem; overflow: hidden; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.profilpfeil { padding: 0 .35rem 0 .15rem; color: #718078; }
.profilkarte {
  position: absolute;
  z-index: 80;
  top: calc(100% + .6rem);
  right: 0;
  display: grid;
  width: min(19rem, calc(100vw - 2rem));
  overflow: hidden;
  padding: .55rem;
  border: 1px solid rgb(23 61 47 / 12%);
  border-radius: 1.15rem;
  background: #fff;
  box-shadow: var(--shadow-md);
}
.profilkarte p { display: grid; gap: .1rem; margin: 0; padding: .8rem; }
.profilkarte p small { color: var(--color-text-muted); }
.profilkarte a,
.profil-abmelden {
  display: block;
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: .7rem .8rem;
  border: 0;
  border-radius: .7rem;
  color: #35423b;
  background: transparent;
  font: inherit;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
}
.profilkarte a:hover,
.profil-abmelden:hover { color: var(--color-brand); background: var(--color-brand-soft); filter: none; }
.profilkarte form { margin: .3rem 0 0; padding-top: .3rem; border-top: 1px solid var(--color-border); }

/* Grundlayout, Karten und Formulare ------------------------------------- */

.hauptinhalt {
  width: min(calc(100% - 2rem), 90rem);
  max-width: none;
  margin: 0 auto;
  padding: clamp(1.25rem, 3vw, 2.5rem) 0 4rem;
}

.meldungszone { position: relative; z-index: 5; }
.meldung {
  padding: .9rem 1rem;
  border: 1px solid rgb(217 130 75 / 25%);
  border-radius: .9rem;
  box-shadow: var(--shadow-sm);
}

h1, h2, h3 { color: var(--color-brand-deep); }
h1 { font-size: clamp(2.7rem, 6vw, 5.4rem); letter-spacing: -.035em; line-height: .92; }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.8rem); letter-spacing: -.02em; }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.8rem); }

.karte {
  border: 1px solid rgb(23 61 47 / 9%);
  border-radius: 1.35rem;
  padding: clamp(1.15rem, 2.6vw, 2rem);
  box-shadow: var(--shadow-sm);
}

.karte + .karte,
.karte.abstand-oben { margin-top: 1.25rem; }

label { margin-top: .8rem; color: #35423b; font-size: .93rem; }

input:not([type="hidden"]),
select,
textarea,
input[type="file"] {
  width: 100%;
  min-height: 3.15rem;
  padding: .72rem .85rem;
  border: 1px solid #cfd7d1;
  border-radius: .8rem;
  color: #26332c;
  background: #fff;
  box-shadow: inset 0 1px 2px rgb(23 61 47 / 4%);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

textarea { min-height: 6rem; resize: vertical; }
input:not([type="hidden"]):focus,
select:focus,
textarea:focus {
  border-color: var(--color-brand);
  outline: 0;
  box-shadow: 0 0 0 4px rgb(23 61 47 / 11%);
}

button,
a.knopf,
a.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 3rem;
  padding: .72rem 1.15rem;
  border: 1px solid transparent;
  border-radius: .8rem;
  color: #fff;
  background: var(--color-brand);
  box-shadow: 0 8px 20px rgb(23 61 47 / 14%);
  text-decoration: none;
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

button:hover,
a.knopf:hover,
a.button:hover {
  background: var(--color-brand-deep);
  box-shadow: 0 11px 26px rgb(23 61 47 / 20%);
  filter: none;
  transform: translateY(-1px);
}

button.leise {
  border: 1px solid #cad4cd;
  color: var(--color-brand);
  background: #fff;
  box-shadow: none;
}

.textlink { font-weight: 700; text-decoration: none; }
.textlink span { display: inline-block; transition: transform 140ms ease; }
.textlink:hover span { transform: translateX(.2rem); }

.seite-kopf {
  max-width: 62rem;
  margin: 1rem 0 2rem;
}
.seite-kopf h1 { margin: .2rem 0 .7rem; }

table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border: 1px solid rgb(23 61 47 / 8%);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 6px 20px rgb(23 61 47 / 5%);
}
thead, tbody { min-width: 100%; }
th { color: var(--color-brand); background: #f0f4ed; }
th, td { padding: .8rem .9rem; }
tbody tr:hover { background: rgb(223 233 220 / 30%); }

/* Login und Passwortstart ------------------------------------------------ */

.seite-auth-login .kopf-innen { justify-content: center; }
.seite-auth-login .hauptinhalt { width: min(calc(100% - 2rem), 78rem); padding-top: clamp(1rem, 3vw, 2rem); }

.login-buehne {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(23rem, .85fr);
  min-height: min(42rem, calc(100vh - 8.5rem));
  overflow: hidden;
  border: 1px solid rgb(23 61 47 / 10%);
  border-radius: clamp(1.35rem, 3vw, 2.2rem);
  background: #fff;
  box-shadow: var(--shadow-lg);
}

.login-bild {
  position: relative;
  display: flex;
  min-height: 36rem;
  align-items: end;
  padding: clamp(1.5rem, 4vw, 3.5rem);
  background:
    linear-gradient(180deg, rgb(12 37 28 / 5%) 30%, rgb(12 37 28 / 91%) 100%),
    url("foodcoop-hero-v1.webp") center / cover no-repeat;
}

.login-bildinhalt { position: relative; z-index: 1; max-width: 39rem; color: #fff; }
.login-bildinhalt h1 { margin: .25rem 0 1rem; color: #fff; font-size: clamp(3.2rem, 6vw, 5.8rem); }
.login-bildinhalt > p:not(.shop-kicker) { max-width: 39rem; font-size: 1.12rem; }
.login-bildinhalt .shop-kicker { color: #f1b287; }
.login-vorteile { display: flex; flex-wrap: wrap; gap: .6rem 1rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.login-vorteile li { display: flex; align-items: center; gap: .45rem; font-size: .93rem; }
.login-vorteile span { display: grid; width: 1.4rem; height: 1.4rem; place-items: center; border-radius: 50%; background: rgb(255 255 255 / 17%); }

.login-formular { display: flex; flex-direction: column; justify-content: center; padding: clamp(1.5rem, 5vw, 4rem); }
.login-formular-kopf h2 { margin: .15rem 0 .4rem; font-size: clamp(2.6rem, 5vw, 4rem); }
.login-formular-kopf > p:last-child { color: var(--color-text-muted); }
.formular-gross { margin-top: 1rem; }
.formular-gross input { min-height: 3.55rem; font-size: 1.05rem; }
.formular-gross button { width: 100%; min-height: 3.65rem; margin-top: 1.25rem; font-size: 1.05rem; }
.login-hilfe { margin: 1.5rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--color-border); color: #5f6b65; font-size: .9rem; }
.login-datenschutz { margin: auto 0 0; padding-top: 1.25rem; color: #7c8781; font-size: .8rem; }

.konto-buehne {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(22rem, 34rem);
  gap: clamp(2rem, 6vw, 6rem);
  max-width: 72rem;
  margin: clamp(1rem, 5vh, 4rem) auto;
  align-items: center;
}
.konto-einleitung h1 { margin: .3rem 0 1.2rem; }
.konto-einleitung > p:not(.shop-kicker) { max-width: 48ch; color: #57655d; font-size: 1.1rem; }
.passwort-hinweise { display: grid; gap: .8rem; margin: 2rem 0 0; padding: 0; list-style: none; }
.passwort-hinweise li { display: flex; align-items: center; gap: .8rem; font-weight: 700; }
.passwort-hinweise span { display: grid; width: 2rem; height: 2rem; place-items: center; border-radius: 50%; color: var(--color-brand); background: var(--color-brand-soft); }
.passwort-karte { box-shadow: var(--shadow-md); }
.passwort-karte h2 { margin: .2rem 0 1rem; }

/* Übersicht und klarer Workflow ----------------------------------------- */

.dashboard-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(20rem, .85fr);
  min-height: 29rem;
  overflow: hidden;
  border-radius: clamp(1.5rem, 3vw, 2.3rem);
  color: #fff;
  background: var(--color-brand-deep);
  box-shadow: var(--shadow-lg);
}

.dashboard-hero-inhalt {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 5vw, 5rem);
}
.dashboard-hero-inhalt::after {
  position: absolute;
  z-index: -1;
  inset: 0 -12rem 0 0;
  content: "";
  background: linear-gradient(90deg, var(--color-brand-deep) 65%, transparent);
}
.dashboard-hero h1 { margin: .3rem 0 1rem; color: #fff; }
.dashboard-hero p:not(.shop-kicker) { max-width: 38rem; font-size: 1.12rem; }
.dashboard-hero .shop-kicker { color: #f1b287; }
.dashboard-hero-bild { min-height: 24rem; background: url("foodcoop-hero-v1.webp") 64% center / cover no-repeat; }
.dashboard-aktionen { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.2rem; }
.dashboard-aktionen .knopf-hell { color: var(--color-brand-deep); background: #fff; }
.dashboard-aktionen .knopf-ghost { margin: 0; border-color: rgb(255 255 255 / 35%); color: #fff; background: rgb(255 255 255 / 8%); box-shadow: none; }

.prozessband {
  display: grid;
  grid-template-columns: repeat(7, auto);
  gap: clamp(.6rem, 2vw, 1.4rem);
  align-items: center;
  margin: clamp(1.25rem, 3vw, 2rem) 0 clamp(2rem, 5vw, 4rem);
  padding: 1rem clamp(1rem, 3vw, 1.7rem);
  border: 1px solid rgb(23 61 47 / 9%);
  border-radius: 1.2rem;
  background: rgb(255 255 255 / 78%);
  box-shadow: var(--shadow-sm);
}
.prozessband div { display: grid; grid-template-columns: auto 1fr; gap: 0 .65rem; align-items: center; min-width: 0; }
.prozessband span { grid-row: 1 / 3; display: grid; width: 2rem; height: 2rem; place-items: center; border-radius: 50%; color: #fff; background: var(--color-brand); font-weight: 700; }
.prozessband strong, .prozessband small { display: block; white-space: nowrap; }
.prozessband small { color: #718078; }
.prozessband i { color: #9ba79f; font-style: normal; }

.dashboard-raster { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(19rem, .72fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.abschnitt-kopf { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.abschnitt-kopf h2, .abschnitt-kopf p { margin: 0; }
.anzahlmarke { padding: .35rem .7rem; border-radius: 999px; color: var(--color-brand); background: var(--color-brand-soft); font-size: .85rem; font-weight: 700; }
.rundenkarten { display: grid; gap: 1rem; }
.rundenkarte {
  display: grid;
  grid-template-columns: minmax(12rem, 1fr) minmax(16rem, auto);
  gap: .8rem 1.5rem;
  align-items: center;
  padding: clamp(1.15rem, 3vw, 1.8rem);
  border: 1px solid rgb(23 61 47 / 9%);
  border-radius: 1.3rem;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 150ms ease, box-shadow 150ms ease;
}
.rundenkarte:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.rundenkarte-status { grid-column: 1 / -1; display: flex; align-items: center; gap: .55rem; }
.status-punkt { width: .65rem; height: .65rem; border-radius: 50%; background: #95a19a; }
.status-punkt.status-offen { background: #4b8058; box-shadow: 0 0 0 5px rgb(75 128 88 / 12%); }
.rundenkarte h3 { margin: 0; font-size: clamp(1.8rem, 3vw, 2.4rem); }
.rundenkarte dl { display: flex; justify-content: end; gap: 2rem; margin: 0; }
.rundenkarte dl div { display: grid; }
.rundenkarte dt { color: #748078; font-size: .76rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.rundenkarte dd { margin: .2rem 0 0; font-weight: 700; }
.rundenkarte-aktionen { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.2rem; padding-top: .4rem; border-top: 1px solid #edf0ed; }
.leerzustand-premium { display: flex; gap: 1rem; align-items: center; padding: 1.5rem; border: 1px dashed #b9c6bd; border-radius: 1.3rem; background: rgb(255 255 255 / 58%); }
.leerzustand-premium > span { font-size: 2.4rem; }
.leerzustand-premium h3, .leerzustand-premium p { margin: 0; }
.dashboard-seitenleiste { display: grid; gap: 1rem; }
.dashboard-seitenleiste .karte { margin: 0; }
.neue-runde h2, .schnellzugriff h2 { margin: .15rem 0 .45rem; }
.neue-runde > p:not(.shop-kicker) { color: var(--color-text-muted); }
.neue-runde button { width: 100%; }
.schnellzugriff { display: grid; }
.schnellzugriff > a { display: flex; align-items: center; gap: .8rem; margin: .2rem -.35rem; padding: .7rem .35rem; border-radius: .8rem; text-decoration: none; }
.schnellzugriff > a:hover { background: var(--color-brand-soft); }
.schnellzugriff > a > span { display: grid; width: 2.4rem; height: 2.4rem; place-items: center; border-radius: .75rem; color: var(--color-brand); background: var(--color-brand-soft); font-size: 1.2rem; }
.schnellzugriff strong, .schnellzugriff small { display: block; }
.schnellzugriff small { color: #748078; }

/* Erststart-Tutorial ------------------------------------------------------ */

.einfuehrung {
  width: min(66rem, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  overflow: auto;
  padding: clamp(1.25rem, 3.5vw, 2.5rem);
  border: 0;
  border-radius: 1.8rem;
  color: #26332c;
  background: var(--color-cream);
  box-shadow: 0 38px 110px rgb(9 30 22 / 42%);
}
.einfuehrung::backdrop { background: rgb(8 26 20 / 75%); backdrop-filter: blur(5px); }
.einfuehrung-kopf { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem; }
.einfuehrung-kopf h2 { max-width: 18ch; margin: .2rem 0 .6rem; font-size: clamp(2.5rem, 5vw, 4.4rem); line-height: .94; }
.einfuehrung-kopf p:last-child { max-width: 55ch; color: #5d6a63; }
.dialog-schliessen { flex: 0 0 auto; width: 2.7rem; min-height: 2.7rem; margin: 0; padding: 0; border-radius: 50%; color: var(--color-brand); background: #fff; box-shadow: var(--shadow-sm); font-size: 1.5rem; }
.einfuehrung-schritte { display: grid; grid-template-columns: repeat(5, 1fr); gap: .7rem; margin: 2rem 0 1.25rem; padding: 0; list-style: none; }
.einfuehrung-schritte li { min-width: 0; padding: 1rem; border: 1px solid rgb(23 61 47 / 9%); border-radius: 1rem; background: #fff; }
.einfuehrung-schritte li > span { display: grid; width: 2rem; height: 2rem; margin-bottom: .8rem; place-items: center; border-radius: 50%; color: #fff; background: var(--color-brand); font-weight: 700; }
.einfuehrung-schritte p { margin: .35rem 0 0; color: #69756e; font-size: .87rem; }
.einfuehrung-rolle { padding: 1rem 1.1rem; border-left: 4px solid var(--color-terracotta); border-radius: 0 .8rem .8rem 0; background: #fff6ed; }
.einfuehrung-fuss { display: flex; justify-content: space-between; gap: 1rem; align-items: center; margin-top: 1.25rem; }
.einfuehrung-fuss small { max-width: 44ch; color: #69756e; }
.einfuehrung-fuss button { flex: 0 0 auto; margin: 0; }

/* Einkaufswelt ----------------------------------------------------------- */

.shop-kopf {
  position: relative;
  overflow: hidden;
  min-height: 18rem;
  margin: 0 0 1.25rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: 1.8rem;
  color: #fff;
  background:
    linear-gradient(90deg, rgb(15 44 34 / 97%) 0%, rgb(15 44 34 / 88%) 52%, rgb(15 44 34 / 35%) 100%),
    url("foodcoop-hero-v1.webp") 72% 63% / cover no-repeat;
  box-shadow: var(--shadow-md);
}
.shop-kopf > * { position: relative; z-index: 1; }
.shop-kopf h1 { max-width: 13ch; color: #fff; font-size: clamp(3rem, 6vw, 5.5rem); }
.shop-kopf .shop-kicker { color: #f1b287; }
.shop-einleitung { color: rgb(255 255 255 / 84%); }
.katalogstand { border-color: rgb(255 255 255 / 22%); background: rgb(255 255 255 / 12%); backdrop-filter: blur(12px); }
.katalogstand small { color: rgb(255 255 255 / 78%); }
.katalogstand-warnung { border-color: #f0bd79; background: rgb(80 49 11 / 35%); }

.shop-filter {
  top: 5.75rem;
  grid-template-columns: minmax(15rem, 2fr) repeat(4, minmax(9.5rem, auto)) auto;
  padding: .75rem;
  border-radius: 1.1rem;
  background: rgb(248 246 240 / 92%);
  box-shadow: var(--shadow-md);
}
.shop-filter label { margin: 0; }
.shop-filter input,
.shop-filter select,
.shop-filter button { min-height: 3.35rem; margin: 0; }
.shop-filter button { box-shadow: none; }

.produktwand { gap: clamp(.9rem, 2vw, 1.35rem); }
.produktkarte { border: 0; border-radius: 1.25rem; box-shadow: var(--shadow-sm); }
.produktkarte:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.produktbild { aspect-ratio: 1 / .8; }
.produktinhalt { padding: 1.15rem; }
.produktinhalt h2 { min-height: 2.2em; color: var(--color-brand-deep); }
.produkt-preis { color: var(--color-brand); font-size: 1.8rem; }
.produkt-status { font-weight: 700; }
.favorit-knopf { margin: 0; color: var(--color-brand); background: rgb(255 255 255 / 91%); box-shadow: var(--shadow-sm); }
.produkt-auswahl { margin-top: 1rem; border-top: 1px solid var(--color-border); }
.produkt-auswahl > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 3.15rem;
  padding-top: .75rem;
  list-style: none;
  color: var(--color-brand);
  font-weight: 700;
  cursor: pointer;
}
.produkt-auswahl > summary::-webkit-details-marker { display: none; }
.produkt-auswahl[open] > summary span { transform: rotate(45deg); }
.produkt-bestellen { margin-top: 0; padding-top: .5rem; border: 0; }
.warenkorb-seite { top: 6rem; border: 0; border-radius: 1.35rem; box-shadow: var(--shadow-md); }
.warenkorb-kopf { color: #fff; background: var(--color-brand); }
.warenkorb-kopf h2, .warenkorb-kopf .shop-kicker { color: #fff; }
.warenkorb-summe { background: var(--color-brand-soft); }
.sortiment-hinweis { margin: .5rem 0 0; color: #6c7871; text-align: right; }

.workflow-leiste {
  display: grid;
  grid-template-columns: repeat(7, auto);
  gap: .65rem 1rem;
  align-items: center;
  margin: 1rem 0 1.5rem;
  padding: .8rem 1rem;
  overflow-x: auto;
  border: 1px solid rgb(23 61 47 / 8%);
  border-radius: 1rem;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.workflow-leiste div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 .55rem;
  align-items: center;
  min-width: 9rem;
  color: #78847d;
}
.workflow-leiste span {
  grid-row: 1 / 3;
  display: grid;
  width: 1.9rem;
  height: 1.9rem;
  place-items: center;
  border-radius: 50%;
  background: #e7ece8;
  font-weight: 700;
}
.workflow-leiste strong, .workflow-leiste small { white-space: nowrap; }
.workflow-leiste i { color: #a5b0a9; font-style: normal; }
.workflow-leiste .ist-aktiv { color: var(--color-brand); }
.workflow-leiste .ist-aktiv span { color: #fff; background: var(--color-brand); }

/* Verteilkasse ----------------------------------------------------------- */

.kasse-kopf { margin-top: 0; padding: clamp(1.4rem, 3vw, 2.2rem); border-radius: 1.5rem; color: #fff; background: var(--color-brand-deep); }
.kasse-kopf h1 { color: #fff; }
.kasse-kopf .shop-kicker { color: #f1b287; }
.kasse-kopf p { max-width: 58ch; color: rgb(255 255 255 / 78%); }
.sync-ampel { color: #244b2e; box-shadow: 0 7px 20px rgb(0 0 0 / 12%); }
.kasse-ablauf { display: flex; align-items: center; justify-content: center; gap: .65rem 1rem; margin: 1rem 0; padding: .8rem; border: 1px solid rgb(23 61 47 / 8%); border-radius: 1rem; background: #fff; box-shadow: var(--shadow-sm); }
.kasse-ablauf div { display: flex; align-items: center; gap: .45rem; color: #728078; }
.kasse-ablauf span { display: grid; width: 1.8rem; height: 1.8rem; place-items: center; border-radius: 50%; background: #e7ece8; font-weight: 700; }
.kasse-ablauf .ist-aktiv { color: var(--color-brand); }
.kasse-ablauf .ist-aktiv span { color: #fff; background: var(--color-brand); }
.kasse-ablauf i { color: #a5b0a9; font-style: normal; }
.offline-leiste { border: 0; border-radius: 1rem; background: #edf2eb; }
.kasse-filter button { margin: 0; border: 1px solid #cdd7d0; color: var(--color-brand); background: #fff; box-shadow: none; }
.kasse-filter button.ist-aktiv { border-color: var(--color-brand); color: #fff; background: var(--color-brand); }
.kassenwand { grid-template-columns: repeat(auto-fill, minmax(min(100%, 21rem), 1fr)); gap: clamp(1rem, 2.5vw, 1.6rem); }
.kassenkachel { border: 0; border-radius: 1.4rem; box-shadow: var(--shadow-md); }
.kassenkachel.typ-pfand { border: 2px solid #9aab8f; }
.kasseninhalt { padding: 1.25rem; }
.mengenstand { padding: .7rem .8rem; border-radius: .8rem; background: var(--color-brand-soft); }
.mengenstand strong { color: var(--color-brand); }
.kasse-buchen { background: var(--color-brand); }
.kasse-rest { color: var(--color-brand); border-color: var(--color-brand); background: #fff; }
.sprache-start { color: #fff; background: #4b655c; }

/* Verwaltungs- und Fachseiten ------------------------------------------ */

.supervisor-raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 1rem; margin-bottom: 1.25rem; }
.supervisor-familie { display: grid; gap: .8rem; align-content: start; }
.supervisor-familie h2 { margin: 0; }
.supervisor-aktionen { display: grid; gap: .7rem; }
.formular-raster, .liefer-raster { gap: 1rem; }
code { overflow-wrap: anywhere; padding: .15em .35em; border-radius: .35rem; background: #edf1ed; }

/* Responsive Verhalten -------------------------------------------------- */

@media (max-width: 72rem) {
  .kopf-innen { width: min(calc(100% - 1.25rem), 92rem); gap: .8rem; }
  .marke-text small { display: none; }
  .hauptnav a, .nav-tutorial { padding-inline: .62rem; font-size: .86rem; }
  .shop-filter { grid-template-columns: minmax(14rem, 1fr) repeat(2, minmax(9rem, auto)); }
  .shop-suche { grid-column: 1 / -1; }
  .einfuehrung-schritte { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 61rem) {
  .dashboard-raster { grid-template-columns: 1fr; }
  .dashboard-seitenleiste { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .einkaufs-layout { grid-template-columns: 1fr; }
  .warenkorb-seite { position: static; grid-row: 1; }
  .prozessband { grid-template-columns: repeat(4, 1fr); }
  .prozessband i { display: none; }
  .prozessband div { grid-template-columns: auto 1fr; }
  .prozessband small { white-space: normal; }
}

@media (max-width: 50rem) {
  body.ist-angemeldet { padding-bottom: 4.8rem; }
  .kopf { background: #fbfaf6; backdrop-filter: none; }
  .kopf-innen { display: grid; grid-template-columns: 1fr auto; min-height: 4.5rem; }
  .marke-text strong { font-size: 1.1rem; }
  .hauptnav {
    position: fixed;
    z-index: 60;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    justify-content: stretch;
    gap: 0;
    padding: .45rem max(.5rem, env(safe-area-inset-right)) calc(.45rem + env(safe-area-inset-bottom)) max(.5rem, env(safe-area-inset-left));
    border-top: 1px solid rgb(23 61 47 / 12%);
    background: rgb(255 255 255 / 96%);
    box-shadow: 0 -12px 34px rgb(23 61 47 / 10%);
    backdrop-filter: blur(16px);
  }
  .hauptnav a, .nav-tutorial { flex: 1 1 0; justify-content: center; min-width: 0; min-height: 3.5rem; padding: .35rem .2rem; border-radius: .75rem; font-size: .75rem; text-align: center; white-space: normal; }
  .profilname, .profilpfeil { display: none; }
  .profilmenue > summary { border: 0; background: transparent; }
  .profilkarte { position: fixed; top: 4.3rem; right: .7rem; }
  .hauptinhalt { width: min(calc(100% - 1.1rem), 90rem); padding-top: .8rem; }

  .login-buehne { grid-template-columns: 1fr; min-height: 0; }
  .login-bild { min-height: 20rem; }
  .login-bildinhalt h1 { font-size: clamp(2.8rem, 12vw, 4.6rem); }
  .login-vorteile { display: none; }
  .login-formular { min-height: 28rem; }

  .konto-buehne { grid-template-columns: 1fr; gap: 1rem; margin-top: 1rem; }
  .konto-einleitung h1 { font-size: clamp(2.8rem, 11vw, 4.8rem); }
  .passwort-hinweise { display: none; }

  .dashboard-hero { grid-template-columns: 1fr; }
  .dashboard-hero-inhalt { min-height: 24rem; }
  .dashboard-hero-inhalt::after { inset: 0; background: linear-gradient(180deg, var(--color-brand-deep) 60%, rgb(15 44 34 / 72%)); }
  .dashboard-hero-bild { position: absolute; inset: 0; opacity: .42; }
  .dashboard-hero h1 { font-size: clamp(3rem, 12vw, 5rem); }
  .rundenkarte { grid-template-columns: 1fr; }
  .rundenkarte dl { justify-content: start; }
  .dashboard-seitenleiste { grid-template-columns: 1fr; }

  .shop-kopf { min-height: 23rem; align-items: end; flex-direction: column; justify-content: end; background-position: 65% center; }
  .shop-kopf::before { position: absolute; inset: 0; content: ""; background: linear-gradient(180deg, rgb(15 44 34 / 30%), rgb(15 44 34 / 95%)); }
  .shop-kopf h1 { font-size: clamp(3rem, 13vw, 4.7rem); }
  .katalogstand { max-width: none; width: 100%; }
  .shop-filter { position: static; grid-template-columns: 1fr; }
  .shop-suche { grid-column: auto; }
  .produktwand, .produktwand.kompakt { grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); }

  .einfuehrung { width: calc(100vw - 1rem); max-height: calc(100vh - 1rem); padding: 1.1rem; border-radius: 1.2rem; }
  .einfuehrung-kopf h2 { font-size: 2.6rem; }
  .einfuehrung-schritte { grid-template-columns: 1fr; }
  .einfuehrung-schritte li { display: flex; gap: .8rem; }
  .einfuehrung-schritte li > span { flex: 0 0 auto; margin: 0; }
  .einfuehrung-fuss { align-items: stretch; flex-direction: column; }

  .workflow-leiste { grid-template-columns: repeat(7, auto); justify-content: start; }

  .kasse-kopf { align-items: stretch; flex-direction: column; }
  .kasse-ablauf { overflow-x: auto; justify-content: start; }
  .kasse-ablauf div { flex: 0 0 auto; }
  .offline-leiste { grid-template-columns: 1fr; }
  .kassenwand { grid-template-columns: 1fr; }
}

@media (max-width: 34rem) {
  .marke-signet { width: 2.45rem; height: 2.45rem; border-radius: .85rem .85rem .5rem .5rem; }
  .marke-signet svg { width: 1.75rem; height: 1.75rem; }
  .marke-text strong { max-width: 12rem; line-height: .92; }
  .login-bild { min-height: 17rem; padding: 1.25rem; }
  .login-bildinhalt > p:not(.shop-kicker) { display: none; }
  .login-formular { min-height: 0; padding: 1.25rem; }
  .login-datenschutz { margin-top: 1rem; }
  .prozessband { grid-template-columns: repeat(2, 1fr); }
  .prozessband div { padding: .25rem 0; }
  .dashboard-aktionen { align-items: stretch; flex-direction: column; }
  .dashboard-aktionen > * { width: 100%; }
  .rundenkarte dl { flex-direction: column; gap: .5rem; }
  .produktwand, .produktwand.kompakt { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
