/* Shop – Kundenseite + Verwaltung (07.11.2026). Handy zuerst, warm und ruhig (Bäckerei/Konditorei), am Computer mehr Platz. Klickbares mit Rahmen + Pfeil. */
:root { --akzent: #b45309; --akzent-hell: #fdf1e3; --gruen: #15803d; --gruen-hell: #e6f4ea; --gelb: #a16207; --gelb-hell: #fef9c3; --rot: #b91c1c; --rot-hell: #fee2e2; --blau: #1d4ed8; --blau-hell: #e8f0fe;
  --text: #1f2937; --leise: #6b7280; --rand: #e5e0d6; --flaeche: #fff; --hinter: #faf7f2; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--hinter); color: var(--text); font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.45; }
#kopf { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top)); background: var(--flaeche); border-bottom: 1px solid var(--rand); }
.kopf-links { display: flex; align-items: center; gap: 8px; min-width: 0; }
.marke { font-weight: 800; color: var(--text); text-decoration: none; font-size: 1.1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kopf-knopf { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 6px 10px; white-space: nowrap; flex: none; border-radius: 12px; border: 2px solid var(--rand); background: var(--hinter); color: var(--text); text-decoration: none; font-weight: 700; }
.kopf-knopf.korb { border-color: var(--akzent); background: var(--akzent-hell); }
#kopf [hidden] { display: none; }
main { max-width: 760px; margin: 0 auto; padding: 16px; padding-bottom: 24px; }
#fuss { max-width: 760px; margin: 0 auto; padding: 16px; text-align: center; } #fuss a { color: var(--leise); }
h1 { font-size: 1.4rem; margin: 4px 0 10px; } h2 { font-size: 1.05rem; margin: 18px 0 8px; }
.leise { color: var(--leise); font-size: .92rem; } .fehler { color: var(--rot); font-weight: 600; } .ok { color: var(--gruen); font-weight: 600; }
.karte { background: var(--flaeche); border: 1px solid var(--rand); border-radius: 16px; padding: 16px; margin-bottom: 12px; }
.karte.hallo h1 { font-size: 1.6rem; margin: 0; }
.band { padding: 10px 14px; border-radius: 12px; font-weight: 600; margin-bottom: 12px; } .band.rot { background: var(--rot-hell); color: var(--rot); } .band.gelb { background: var(--gelb-hell); color: var(--gelb); }
button, .knopf { font: inherit; font-weight: 700; min-height: 48px; padding: 12px 16px; border-radius: 12px; border: 0; background: var(--akzent); color: #fff; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
button.zweit, .knopf.zweit { background: var(--flaeche); color: var(--text); border: 2px solid var(--rand); } button.klein, .knopf.klein { min-height: 36px; padding: 6px 10px; font-size: .9rem; }
.haupt, button.haupt { display: flex; width: 100%; margin: 14px 0 8px; min-height: 56px; font-size: 1.1rem; } .haupt.aus { opacity: .5; pointer-events: none; }
.knopf.zweit { width: 100%; margin-top: 8px; }
label { display: block; margin: 10px 0 4px; font-weight: 600; font-size: .95rem; } label.haken { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; margin: 12px 0; } label.haken span { flex: 1; } label.haken input { width: 22px; height: 22px; flex: none; margin-top: 2px; }
input, select, textarea { width: 100%; font: inherit; padding: 12px; border: 1px solid var(--rand); border-radius: 10px; background: var(--flaeche); color: var(--text); } textarea { min-height: 72px; }
.spalten { display: grid; grid-template-columns: 1fr; gap: 0 12px; } @media (min-width: 560px) { .spalten { grid-template-columns: 1fr 1fr; } }
.zeile { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 8px 0; }
.suche input { margin: 6px 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; } .chips.kat { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
.chip { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 14px; border-radius: 999px; border: 2px solid var(--rand); background: var(--flaeche); color: var(--text); font-weight: 600; font-size: .95rem; text-decoration: none; white-space: nowrap; cursor: pointer; }
.chip.an { border-color: var(--akzent); background: var(--akzent-hell); color: var(--akzent); }
.produkte { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 12px; } @media (min-width: 640px) { .produkte { grid-template-columns: repeat(3, 1fr); } }
.produkt { display: flex; flex-direction: column; background: var(--flaeche); border: 2px solid var(--rand); border-radius: 16px; overflow: hidden; color: var(--text); text-decoration: none; }
.produkt img, .bild-leer { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--akzent-hell); display: flex; align-items: center; justify-content: center; font-size: 3rem; }
.p-text { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; } .p-text b { line-height: 1.25; }
.preis { font-weight: 800; color: var(--akzent); } .preis small { font-weight: 600; color: var(--leise); } .preis.gross { font-size: 1.4rem; margin: 10px 0; }
.status { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: .78rem; font-weight: 700; background: var(--hinter); color: var(--leise); } .status.rot { background: var(--rot-hell); color: var(--rot); } .status.gelb { background: var(--gelb-hell); color: var(--gelb); }
.produkt-detail img.gross { width: 100%; max-height: 360px; object-fit: cover; border-radius: 12px; }
.gruppe { border: 1px solid var(--rand); border-radius: 12px; padding: 10px 12px; margin: 10px 0; } .gruppe .opt { display: flex; align-items: center; gap: 10px; min-height: 44px; margin: 4px 0; font-weight: 500; } .gruppe .opt input { width: 22px; height: 22px; flex: none; } .gruppe .opt span { flex: 1; } .gruppe .opt b { color: var(--akzent); }
.menge { display: flex; align-items: center; gap: 8px; margin: 12px 0; } .menge input { width: 64px; text-align: center; font-weight: 700; } .menge button { min-width: 48px; } .menge.klein button { min-height: 36px; min-width: 36px; padding: 4px 8px; } .menge .preis { margin-left: auto; font-size: 1.2rem; }
.korb-zeile { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--rand); align-items: flex-start; } .korb-zeile .haupt { flex: 1; margin: 0; display: block; min-height: 0; font-size: 1rem; }
.summe { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; } .summe.gross { font-size: 1.2rem; font-weight: 800; border-top: 2px solid var(--text); margin-top: 6px; padding-top: 8px; } .summe.gruen { color: var(--gruen); }
.code { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 10px; margin: 4px 0; } .code.ok { background: var(--gruen-hell); color: var(--gruen); } .code.rot { background: var(--rot-hell); color: var(--rot); }
.angebote ul { margin: 6px 0 0; padding-left: 18px; } .anlass p { margin: 6px 0; }
.partner { display: flex; gap: 12px; align-items: center; padding: 8px 0; border-top: 1px solid var(--rand); } .partner img { width: 56px; height: 56px; object-fit: contain; border-radius: 8px; background: #fff; }
.stand { font-size: 1.2rem; font-weight: 800; padding: 12px; border-radius: 12px; background: var(--gelb-hell); color: var(--gelb); margin: 8px 0; } .stand.bestaetigt, .stand.fertig { background: var(--gruen-hell); color: var(--gruen); } .stand.storniert { background: var(--rot-hell); color: var(--rot); }
details { margin-top: 10px; } summary { cursor: pointer; font-weight: 700; padding: 10px 12px; color: var(--akzent); border: 2px solid var(--akzent); border-radius: 12px; background: var(--akzent-hell); list-style: none; display: flex; justify-content: space-between; } summary::after { content: "›"; font-size: 1.2rem; } details[open] summary::after { transform: rotate(90deg); }
#toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--text); color: #fff; padding: 12px 18px; border-radius: 12px; z-index: 9; font-weight: 600; max-width: 90vw; }
/* Verwaltung */
.kacheln { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; } @media (min-width: 640px) { .kacheln { grid-template-columns: repeat(3, 1fr); } }
.kachel { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-height: 96px; padding: 14px; border-radius: 16px; border: 2px solid var(--rand); background: var(--flaeche); color: var(--text); text-decoration: none; font-weight: 700; } .kachel .emoji { font-size: 1.8rem; } .kachel small { font-weight: 400; color: var(--leise); }
.kachel.blau { border-color: var(--blau); background: var(--blau-hell); } .kachel.gruen { border-color: var(--gruen); background: var(--gruen-hell); } .kachel.orange { border-color: var(--akzent); background: var(--akzent-hell); } .kachel.rot { border-color: var(--rot); background: var(--rot-hell); } .kachel.gelb { border-color: var(--gelb); background: var(--gelb-hell); } .kachel.grau { border-color: #9ca3af; background: #f3f4f6; }
.liste { list-style: none; margin: 0; padding: 0; } .liste li { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--rand); cursor: pointer; } .liste li:last-child { border-bottom: 0; }
.liste .haupt { flex: 1; min-width: 0; margin: 0; display: block; min-height: 0; font-size: 1rem; } .liste .titel { font-weight: 700; } .liste .unter { color: var(--leise); font-size: .88rem; } .liste .rechts { text-align: right; font-weight: 700; white-space: nowrap; }
.status.neu { background: var(--gelb-hell); color: var(--gelb); } .status.bestaetigt, .status.fertig { background: var(--gruen-hell); color: var(--gruen); } .status.storniert { background: var(--rot-hell); color: var(--rot); }
.tabelle { border-collapse: collapse; width: 100%; font-size: .92rem; } .tabelle th, .tabelle td { padding: 6px 4px; border-bottom: 1px solid var(--rand); text-align: left; vertical-align: top; }
#menu[hidden] { display: none; } #menu { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 16px; background: var(--flaeche); border-bottom: 1px solid var(--rand); } #menu a { padding: 8px 12px; border-radius: 999px; background: var(--hinter); color: var(--text); text-decoration: none; font-weight: 600; }
#menu-knopf { font-size: 1.5rem; line-height: 1; background: var(--hinter); color: var(--text); border: 1px solid var(--rand); border-radius: 10px; padding: 6px 10px; cursor: pointer; min-height: 44px; }

/* 08.11.2026 Produktbilder: Galerie */
.galerie img.gross { width: 100%; height: auto; border-radius: 12px; display: block; }
.galerie-leiste { display: flex; gap: 8px; overflow-x: auto; margin: 8px 0; padding-bottom: 4px; }
.galerie-mini { flex: none; width: 64px; height: 64px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: none; cursor: pointer; }
.galerie-mini.an { border-color: var(--akzent, #0f766e); }
.galerie-mini img { width: 100%; height: 100%; object-fit: cover; }
.aktion-bild { width: 100%; height: auto; border-radius: 12px; display: block; margin: 8px 0; } /* Paket-Bild A */
