/* ---------- Ankündigungsleiste & Header ---------- */
.ankuendigung { background: var(--salbei-dunkel); color: #fff; text-align: center; font-size: .85rem; padding: 8px 16px; }
.kopf { position: sticky; top: 0; z-index: 40; background: rgba(251, 248, 244, .92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--linie); }
.kopf-innen { display: flex; align-items: center; gap: 16px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-titel); font-size: 1.35rem; font-weight: 600; white-space: nowrap; }
.logo img { width: 34px; height: 34px; }
.logo em { font-style: normal; color: var(--akzent); }
.navi { display: flex; gap: 4px; margin-left: 24px; }
.navi a { text-decoration: none; padding: 8px 12px; border-radius: 999px; font-size: .95rem; transition: background .2s var(--ease); }
.navi a:hover, .navi a[aria-current="page"] { background: var(--bg-alt); }
.kopf-aktionen { margin-left: auto; display: flex; gap: 4px; align-items: center; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; border: 0; background: transparent; text-decoration: none; transition: background .2s var(--ease); }
.icon-btn:hover { background: var(--bg-alt); }
.icon-btn svg { width: 22px; height: 22px; }
.zaehler { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--akzent); color: #fff; font-size: .7rem; font-weight: 600; display: grid; place-items: center; }
.zaehler:empty { display: none; }
.menue-btn { display: none; }
@media (max-width: 880px) {
  .navi { display: none; }
  .menue-btn { display: inline-grid; }
  .kopf-innen { gap: 4px; }
  .logo { font-size: 1.15rem; }
}

/* ---------- Mobile-Menü & Suche ---------- */
.mobil-menue { position: fixed; inset: 0; z-index: 60; background: var(--bg); padding: 20px var(--gutter); display: flex; flex-direction: column; gap: 6px; overflow-y: auto; }
.mobil-menue a { font-family: var(--font-titel); font-size: 1.6rem; text-decoration: none; padding: 10px 0; border-bottom: 1px solid var(--linie); }
.mobil-menue .icon-btn { align-self: flex-end; }
.suche { position: fixed; inset: 0; z-index: 60; background: rgba(46, 38, 32, .35); display: grid; align-items: start; padding-top: 10vh; }
.suche-box { background: var(--bg); width: min(640px, calc(100% - 32px)); margin: 0 auto; border-radius: var(--radius); padding: 18px; box-shadow: var(--schatten-gross); }
.suche-box form { display: flex; gap: 8px; }
.suche-treffer { margin-top: 12px; display: grid; gap: 4px; max-height: 50vh; overflow-y: auto; }
.suche-treffer a { display: flex; gap: 12px; align-items: center; padding: 8px; border-radius: var(--radius-s); text-decoration: none; }
.suche-treffer a:hover, .suche-treffer a:focus { background: var(--bg-alt); }
.suche-treffer img { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; }

/* ---------- Produktkarte ---------- */
.raster { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2.5vw, 28px); }
@media (max-width: 1000px) { .raster { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .raster { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
.karte { position: relative; display: flex; flex-direction: column; background: var(--karte); border-radius: var(--radius); overflow: hidden; box-shadow: var(--schatten); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
@media (hover: hover) { .karte:hover { transform: translateY(-3px); box-shadow: var(--schatten-gross); } .karte:hover .karte-bild img { transform: scale(1.04); } }
.karte-bild { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--bg-alt); }
.karte-bild img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.karte-inhalt { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.karte-titel { font-weight: 500; text-decoration: none; line-height: 1.35; }
.karte-titel::after { content: ''; position: absolute; inset: 0; }
.karte-kurz { font-size: .875rem; color: var(--text-leise); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.karte-fuss { margin-top: auto; padding-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.preis { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.preis-alt { color: var(--text-leise); text-decoration: line-through; font-weight: 400; margin-left: 6px; }
.badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; flex-wrap: wrap; z-index: 2; }
.badge { background: var(--creme); color: var(--text); font-size: .75rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.badge-akzent { background: var(--akzent); color: #fff; }
.badge-salbei { background: var(--salbei); color: #fff; }
.merken { position: absolute; top: 8px; right: 8px; z-index: 3; width: 40px; height: 40px; border-radius: 999px; border: 0; background: rgba(251, 248, 244, .9); display: grid; place-items: center; transition: transform .15s var(--ease); }
.merken:active { transform: scale(.9); }
.merken svg { width: 20px; height: 20px; }
.merken[aria-pressed="true"] svg { fill: var(--akzent); stroke: var(--akzent); }
.schnell { position: relative; z-index: 3; border: 0; background: var(--bg-alt); border-radius: 999px; width: 40px; height: 40px; display: grid; place-items: center; transition: background .2s var(--ease); }
.schnell:hover { background: var(--akzent); color: #fff; }
.schnell svg { width: 18px; height: 18px; }
@media (max-width: 520px) { .karte-inhalt { padding: 10px 12px 12px; } .karte-kurz { display: none; } .karte-titel { font-size: .9rem; } }

/* ---------- Drawer (Warenkorb) ---------- */
.overlay { position: fixed; inset: 0; z-index: 70; background: rgba(46, 38, 32, .4); opacity: 0; transition: opacity .3s var(--ease); }
.overlay.offen { opacity: 1; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 71; width: min(440px, 100%); background: var(--bg); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .35s var(--ease); box-shadow: var(--schatten-gross); }
.drawer.offen { transform: none; }
.drawer-kopf { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--linie); }
.drawer-kopf h2 { font-size: 1.4rem; margin: 0; }
.drawer-inhalt { flex: 1; overflow-y: auto; padding: 16px 20px; }
.drawer-fuss { border-top: 1px solid var(--linie); padding: 16px 20px calc(16px + env(safe-area-inset-bottom)); display: grid; gap: 12px; background: var(--bg); }
.versand-balken { background: var(--bg-alt); border-radius: var(--radius-s); padding: 12px 14px; font-size: .9rem; margin-bottom: 14px; }
.versand-balken .spur { height: 6px; background: #fff; border-radius: 999px; margin-top: 8px; overflow: hidden; }
.versand-balken .fuellung { height: 100%; background: var(--salbei); border-radius: 999px; transition: width .5s var(--ease); }
.position { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--linie); }
.position img { width: 72px; height: 72px; object-fit: cover; border-radius: var(--radius-s); }
.position-name { font-weight: 500; line-height: 1.3; text-decoration: none; }
.position-variante { font-size: .85rem; color: var(--text-leise); }
.menge { display: inline-flex; align-items: center; border: 1.5px solid var(--linie); border-radius: 999px; margin-top: 8px; }
.menge button { width: 34px; height: 34px; border: 0; background: none; font-size: 1.1rem; }
.menge span { min-width: 24px; text-align: center; font-variant-numeric: tabular-nums; }
.entfernen { border: 0; background: none; color: var(--text-leise); font-size: .8rem; text-decoration: underline; padding: 4px 0; }
.summen { display: grid; gap: 4px; font-size: .95rem; }
.summen div { display: flex; justify-content: space-between; gap: 12px; }
.summen .total { font-weight: 600; font-size: 1.1rem; padding-top: 6px; border-top: 1px solid var(--linie); margin-top: 4px; }
.summen .rabatt { color: var(--salbei-dunkel); }
.code-zeile { display: flex; gap: 8px; }
.code-zeile .eingabe { min-height: 44px; padding: 10px 12px; }
.code-zeile button { flex-shrink: 0; }
.leer-zustand { text-align: center; padding: 48px 12px; }
.leer-zustand svg { width: 56px; height: 56px; color: var(--salbei); margin: 0 auto 12px; }
.zahlarten { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.zahlart { font-size: .7rem; font-weight: 600; letter-spacing: .02em; padding: 4px 8px; border: 1px solid var(--linie); border-radius: 6px; background: #fff; color: var(--text); }
.cross-sell { margin-top: 20px; }
.cross-sell h3 { font-size: 1rem; font-family: var(--font-text); font-weight: 600; }
.mini-produkt { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.mini-produkt img { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; }
.mini-produkt div { flex: 1; font-size: .9rem; line-height: 1.3; }

/* ---------- Dialoge (Modal, Lightbox, Popup) ---------- */
dialog.modal { border: 0; padding: 0; border-radius: var(--radius); width: min(560px, calc(100% - 32px)); max-height: calc(100dvh - 48px); background: var(--bg); color: var(--text); box-shadow: var(--schatten-gross); }
dialog.modal::backdrop { background: rgba(46, 38, 32, .45); }
dialog.modal[open] { animation: modal-ein .3s var(--ease); }
@keyframes modal-ein { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.modal-inhalt { padding: 28px; position: relative; }
.modal-zu { position: absolute; top: 12px; right: 12px; }
dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100dvh; }
dialog.lightbox::backdrop { background: rgba(20, 16, 13, .92); }
dialog.lightbox img { max-width: 94vw; max-height: 90dvh; object-fit: contain; border-radius: 8px; }
dialog.lightbox .icon-btn { position: fixed; top: 12px; right: 12px; color: #fff; }
.tabelle-einfach { width: 100%; border-collapse: collapse; font-size: .95rem; }
.tabelle-einfach th, .tabelle-einfach td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--linie); }
.tabelle-einfach th { font-weight: 600; }

/* ---------- Newsletter-Popup & Cookie-Hinweis ---------- */
.nl-popup .modal-inhalt { text-align: center; }
.nl-popup .gross { font-family: var(--font-titel); font-size: 3rem; color: var(--akzent); line-height: 1; margin: 8px 0; }
.nl-popup form { display: grid; gap: 10px; margin-top: 16px; }
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50; max-width: 520px; background: var(--text); color: var(--creme); border-radius: var(--radius); padding: 16px 18px; display: flex; gap: 14px; align-items: center; box-shadow: var(--schatten-gross); font-size: .9rem; }
.cookie p { margin: 0; flex: 1; }
.cookie a { color: #fff; }
.cookie .btn { padding: 10px 18px; min-height: 40px; background: var(--creme); color: var(--text); }
@media (max-width: 520px) { .cookie { flex-direction: column; align-items: stretch; } }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 90; transform: translate(-50%, 20px); opacity: 0; background: var(--text); color: var(--creme); padding: 12px 20px; border-radius: 999px; font-size: .95rem; transition: opacity .25s var(--ease), transform .25s var(--ease); pointer-events: none; max-width: calc(100% - 32px); }
.toast.zeigen { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Vertrauensleiste ---------- */
.vertrauen { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.vertrauen div { display: flex; gap: 12px; align-items: flex-start; }
.vertrauen svg { width: 28px; height: 28px; flex-shrink: 0; color: var(--salbei-dunkel); }
.vertrauen strong { display: block; font-size: .95rem; }
.vertrauen span { font-size: .85rem; color: var(--text-leise); }
@media (max-width: 880px) { .vertrauen { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .vertrauen { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.fuss { background: var(--text); color: #D9D0C5; padding: 64px 0 28px; margin-top: 0; }
.fuss a { color: #D9D0C5; text-decoration: none; }
.fuss a:hover { color: #fff; }
.fuss-raster { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.fuss h3 { font-family: var(--font-text); font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: #fff; font-weight: 600; }
.fuss ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .95rem; }
.fuss .logo { color: #fff; margin-bottom: 12px; }
.fuss-unten { margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; }
.fuss .zahlart { background: transparent; color: #D9D0C5; border-color: rgba(255, 255, 255, .25); }
@media (max-width: 880px) { .fuss-raster { grid-template-columns: 1fr 1fr; } .fuss-raster > :first-child { grid-column: 1 / -1; } }
