/* E-eats – Grundlayout */
:root {
  --accent: #16a34a; --accent-2: #0d9488; --accent-ink: #fff;
  --bg: #f6f7f4; --card: #ffffff; --ink: #1c2321; --muted: #66706c; --line: #e3e7e2; --soft: #eef3ee;
  --warn: #d97706; --err: #dc2626; --ok: #16a34a; --info: #2563eb;
  --radius: 16px; --shadow: 0 1px 2px rgba(0,0,0,.05), 0 6px 24px rgba(20,40,30,.06);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #0f1412; --card: #171e1b; --ink: #e8eeea; --muted: #94a19b; --line: #26302c; --soft: #1d2723; --shadow: 0 1px 2px rgba(0,0,0,.3); }
}
:root[data-theme="dark"] { --bg: #0f1412; --card: #171e1b; --ink: #e8eeea; --muted: #94a19b; --line: #26302c; --soft: #1d2723; --shadow: 0 1px 2px rgba(0,0,0,.3); }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); background: var(--bg); color: var(--ink); line-height: 1.5; font-size: 16px; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
small, .muted { color: var(--muted); }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.5rem 0; }
code { background: var(--soft); padding: .1em .35em; border-radius: 6px; font-size: .9em; overflow-wrap: anywhere; }
p, li, td, small { overflow-wrap: break-word; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }
main { min-height: 60vh; padding: 24px 0 64px; }

/* Navigation */
.topbar { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--card) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; align-items: center; gap: 12px; height: 62px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.15rem; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand .logo { width: 34px; height: 34px; border-radius: 10px; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 1.1rem; }
.nav { display: flex; gap: 4px; margin-left: 12px; }
.nav a { color: var(--ink); padding: 8px 12px; border-radius: 10px; font-weight: 500; }
.nav a:hover, .nav a.on { background: var(--soft); text-decoration: none; }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.iconbtn { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: var(--ink); background: transparent; border: 0; cursor: pointer; font-size: 1.15rem; }
.iconbtn:hover { background: var(--soft); text-decoration: none; }
.iconbtn .dot { position: absolute; top: 4px; right: 4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--err); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.menu { position: relative; }
.menu > summary { list-style: none; cursor: pointer; }
.menu > summary::-webkit-details-marker { display: none; }
.menu .drop { position: absolute; right: 0; top: 48px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); min-width: 220px; padding: 6px; z-index: 60; }
.menu .drop a, .menu .drop button { display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: 9px; color: var(--ink); background: none; border: 0; font: inherit; cursor: pointer; }
.menu .drop a:hover, .menu .drop button:hover { background: var(--soft); text-decoration: none; }
.mobile-nav { display: none; }
@media (max-width: 820px) {
  .nav { display: none; }
  .mobile-nav { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 55; background: var(--card); border-top: 1px solid var(--line); justify-content: space-around; padding: 6px 0 calc(6px + env(safe-area-inset-bottom)); }
  .mobile-nav a { display: flex; flex-direction: column; align-items: center; font-size: 11px; color: var(--muted); padding: 4px 10px; }
  .mobile-nav a span { font-size: 1.3rem; }
  .mobile-nav a.on { color: var(--accent); }
  body { padding-bottom: 64px; }
}

/* Bausteine */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.card + .card { margin-top: 16px; }
.grid > .card + .card, .cards > .card + .card, .cards > a.card + a.card, .grid > a.card + a.card { margin-top: 0; }
.card h2:first-child, .card h3:first-child { margin-top: 0; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.side { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
@media (max-width: 960px) { .side { grid-template-columns: 1fr; } .sticky { position: static; } .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.stack > * + * { margin-top: 12px; }
.sticky { position: sticky; top: 80px; }
.center { text-align: center; }
.mt { margin-top: 16px; } .mt2 { margin-top: 32px; } .mb { margin-bottom: 16px; }
.hide { display: none !important; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 12px; border: 1px solid transparent; background: var(--accent); color: var(--accent-ink); font: inherit; font-weight: 600; cursor: pointer; text-decoration: none !important; transition: filter .15s, transform .05s; white-space: nowrap; }
.btn:hover { filter: brightness(1.07); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { background: var(--soft); }
.btn.soft { background: var(--soft); color: var(--ink); }
.btn.danger { background: var(--err); }
.btn.warn { background: var(--warn); }
.btn.sm { padding: 6px 12px; font-size: .9rem; border-radius: 10px; }
.btn.lg { padding: 14px 26px; font-size: 1.05rem; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.linkbtn { background: none; border: 0; color: var(--accent); font: inherit; cursor: pointer; padding: 0; }

label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 4px; }
.field { margin-bottom: 14px; }
.field small { display: block; font-weight: 400; margin-top: 3px; }
input:not([type]), input[type=text], input[type=email], input[type=password], input[type=number], input[type=tel], input[type=search], input[type=url], input[type=date], select, textarea {
  width: 100%; padding: 10px 12px; border-radius: 11px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit; }
input:focus, select:focus, textarea:focus { outline: 2px solid color-mix(in srgb, var(--accent) 45%, transparent); border-color: var(--accent); }
input[type=color] { width: 52px; height: 40px; border: 1px solid var(--line); border-radius: 10px; padding: 2px; background: var(--card); }
textarea { min-height: 90px; resize: vertical; }
.check { display: block; position: relative; padding-left: 28px; font-weight: 400; cursor: pointer; }
.check > input { position: absolute; left: 0; top: 3px; margin: 0; width: 18px; height: 18px; accent-color: var(--accent); }
.row > .check { display: inline-block; }

.flash { padding: 12px 16px; border-radius: 12px; margin-bottom: 16px; font-weight: 500; }
.flash.ok { background: color-mix(in srgb, var(--ok) 14%, var(--card)); color: var(--ok); border: 1px solid color-mix(in srgb, var(--ok) 30%, transparent); }
.flash.err { background: color-mix(in srgb, var(--err) 12%, var(--card)); color: var(--err); border: 1px solid color-mix(in srgb, var(--err) 30%, transparent); }
.flash.info { background: color-mix(in srgb, var(--info) 10%, var(--card)); color: var(--info); border: 1px solid color-mix(in srgb, var(--info) 25%, transparent); }
.announce { background: var(--accent); color: #fff; text-align: center; padding: 8px 16px; font-weight: 500; font-size: .95rem; }

.pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: .8rem; font-weight: 600; background: var(--soft); color: var(--ink); white-space: nowrap; }
.pill.ok { background: color-mix(in srgb, var(--ok) 15%, transparent); color: var(--ok); }
.pill.warn { background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--warn); }
.pill.err { background: color-mix(in srgb, var(--err) 14%, transparent); color: var(--err); }
.pill.info { background: color-mix(in srgb, var(--info) 14%, transparent); color: var(--info); }
.store-tag { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: .75rem; font-weight: 800; letter-spacing: .02em; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.online-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #9ca3af; }
.online-dot.on { background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.25); }

.avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--accent); color: #fff; display: inline-grid; place-items: center; font-weight: 700; flex: none; overflow: hidden; }
.avatar.lg { width: 96px; height: 96px; font-size: 2rem; border: 4px solid var(--card); }
.avatar.sm { width: 32px; height: 32px; font-size: .85rem; }
.stars { color: #f59e0b; letter-spacing: 1px; white-space: nowrap; }
.stars .off { color: color-mix(in srgb, var(--muted) 40%, transparent); }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.table-wrap { overflow-x: auto; }
.num { text-align: right; font-variant-numeric: tabular-nums; }

/* Startseite */
.hero { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; border-radius: 24px; padding: clamp(28px, 6vw, 64px); position: relative; overflow: hidden; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); max-width: 720px; }
.hero p { font-size: 1.15rem; max-width: 620px; opacity: .95; }
.hero .btn { background: #fff; color: var(--accent); }
.hero .btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.hero .deco { position: absolute; right: -20px; bottom: -30px; font-size: 180px; opacity: .18; transform: rotate(-12deg); pointer-events: none; }
.stat { text-align: center; }
.stat b { display: block; font-size: 1.8rem; }
.store-strip { display: flex; gap: 8px; flex-wrap: wrap; }
.store-strip a { padding: 8px 14px; border-radius: 12px; font-weight: 800; }
.store-strip a:hover { text-decoration: none; filter: brightness(1.1); }
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 40px 0 16px; }

/* Lieferantenkarte */
.courier-card { display: block; color: var(--ink); padding: 0; overflow: hidden; transition: transform .15s, box-shadow .15s; }
.courier-card:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,0,0,.08); }
.courier-card .cover { height: 74px; }
.courier-card .body { padding: 0 16px 16px; margin-top: -26px; }
.courier-card .avatar { border: 3px solid var(--card); width: 56px; height: 56px; }
.courier-card .meta { display: flex; gap: 10px; flex-wrap: wrap; font-size: .88rem; color: var(--muted); margin-top: 6px; }

/* Profilkopf */
.profile-head { border-radius: 22px; overflow: hidden; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.profile-head .cover { height: 170px; }
.profile-head .info { padding: 0 24px 20px; display: flex; gap: 18px; align-items: flex-end; margin-top: -48px; flex-wrap: wrap; }
.profile-head .info .grow { flex: 1; min-width: 220px; padding-top: 52px; }
.level-bar { height: 10px; border-radius: 6px; background: var(--soft); overflow: hidden; }
.level-bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--c, var(--accent)), color-mix(in srgb, var(--c, var(--accent)) 60%, #fff)); border-radius: 6px; }
.award { display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 12px; background: var(--soft); }
.award .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 1.4rem; flex: none; }

/* Artikel */
.items { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.item { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.item .pic { width: 56px; height: 56px; border-radius: 12px; background: var(--soft); display: grid; place-items: center; font-size: 1.8rem; flex: none; overflow: hidden; }
.item .pic img { width: 100%; height: 100%; object-fit: contain; }
.item .grow { flex: 1; min-width: 0; }
.item .name { font-weight: 600; font-size: .95rem; line-height: 1.25; }
.item .price { font-weight: 700; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.qty button { width: 32px; height: 32px; border: 0; background: var(--soft); color: var(--ink); font-size: 1.1rem; cursor: pointer; }
.qty span { min-width: 28px; text-align: center; font-weight: 700; }
.add-btn { width: 36px; height: 36px; border-radius: 10px; border: 0; background: var(--accent); color: #fff; font-size: 1.3rem; cursor: pointer; flex: none; }
.cart-fab { position: fixed; right: 20px; bottom: 24px; z-index: 40; box-shadow: 0 10px 30px rgba(0,0,0,.2); }
@media (max-width: 820px) { .cart-fab { bottom: 84px; left: 16px; right: 16px; } }

/* Tracking */
.map { height: 340px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--soft); z-index: 1; }
.steps { list-style: none; padding: 0; margin: 0; }
.steps li { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; position: relative; }
.steps li .ck { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; flex: none; background: var(--card); font-size: .95rem; z-index: 1; }
.steps li:not(:last-child)::before { content: ""; position: absolute; left: 15px; top: 40px; bottom: -8px; width: 2px; background: var(--line); }
.steps li.done .ck { background: var(--accent); border-color: var(--accent); color: #fff; }
.steps li.done:not(:last-child)::before { background: var(--accent); }
.steps li.current .ck { box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 22%, transparent); animation: pulse 1.6s infinite; }
.steps li .lbl { padding-top: 4px; }
.steps li:not(.done) .lbl { color: var(--muted); }
.steps li.done .lbl b { text-decoration: none; }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px color-mix(in srgb, var(--accent) 8%, transparent); } }
.pin { font-size: 2rem; font-weight: 800; letter-spacing: .3em; font-variant-numeric: tabular-nums; }
.chat { display: flex; flex-direction: column; gap: 8px; max-height: 320px; overflow-y: auto; padding: 4px; }
.msg { max-width: 80%; padding: 8px 12px; border-radius: 14px; background: var(--soft); }
.msg.me { align-self: flex-end; background: var(--accent); color: #fff; }
.msg small { display: block; opacity: .7; font-size: .72rem; }
.checklist .it { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.checklist .it.got .nm { color: var(--muted); }
.checklist .it.missing .nm { text-decoration: line-through; color: var(--err); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.seg button { border: 0; background: var(--card); color: var(--ink); padding: 6px 10px; cursor: pointer; font: inherit; font-size: .85rem; }
.seg button.on { background: var(--accent); color: #fff; }
.bigaction { display: grid; gap: 10px; }
.bigaction .btn { padding: 16px; font-size: 1.05rem; }

/* Zahlungsauswahl */
.choice { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.choice label { display: flex; align-items: center; gap: 10px; padding: 14px; border: 2px solid var(--line); border-radius: 14px; cursor: pointer; font-weight: 600; margin: 0; }
.choice input { accent-color: var(--accent); width: 18px; height: 18px; }
.choice label:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--card)); }
.tips { display: flex; gap: 8px; flex-wrap: wrap; }
.tips button { padding: 8px 14px; border-radius: 999px; border: 2px solid var(--line); background: var(--card); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }
.tips button.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--card)); color: var(--accent); }
.sum td { border: 0; padding: 4px 0; }
.sum tr.total td { font-size: 1.15rem; font-weight: 800; border-top: 1px solid var(--line); padding-top: 10px; }

.review { padding: 16px 0; border-bottom: 1px solid var(--line); }
.review:last-child { border-bottom: 0; }
.review .reply { margin-top: 8px; padding: 10px 12px; background: var(--soft); border-radius: 12px; font-size: .93rem; }
.review-card { display: flex; flex-direction: column; gap: 8px; }
.review-card blockquote { margin: 0; font-size: 1rem; flex: 1; }
.rating-input { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.rating-input input { display: none; }
.rating-input label { font-size: 2rem; color: var(--line); cursor: pointer; margin: 0; }
.rating-input input:checked ~ label, .rating-input label:hover, .rating-input label:hover ~ label { color: #f59e0b; }
.rating-input.sm label { font-size: 1.3rem; }
.bars .b { display: grid; grid-template-columns: 26px 1fr 30px; gap: 8px; align-items: center; font-size: .85rem; }
.bars .b i { height: 8px; border-radius: 4px; background: var(--soft); overflow: hidden; display: block; }
.bars .b i > s { display: block; height: 100%; background: #f59e0b; }

.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.tabs a { padding: 8px 14px; border-radius: 10px; color: var(--ink); background: var(--soft); font-weight: 500; }
.tabs a.on { background: var(--accent); color: #fff; }
.tabs a:hover { text-decoration: none; }
.empty { text-align: center; padding: 40px 16px; color: var(--muted); }
.empty .big { font-size: 3rem; }

footer.site { border-top: 1px solid var(--line); padding: 32px 0; color: var(--muted); font-size: .92rem; background: var(--card); }
footer.site a { color: var(--muted); }
footer.site .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; }
footer.site h4 { color: var(--ink); margin: 0 0 8px; font-size: .95rem; }
footer.site ul { list-style: none; padding: 0; margin: 0; }
footer.site li { margin: 4px 0; }
@media (max-width: 700px) { footer.site .cols { grid-template-columns: 1fr 1fr; } }

.admin-nav { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; }
.admin-nav a { padding: 8px 12px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); color: var(--ink); font-weight: 500; font-size: .93rem; }
.admin-nav a.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.chart { display: flex; align-items: flex-end; gap: 4px; height: 120px; }
.chart > div { flex: 1; background: var(--accent); border-radius: 4px 4px 0 0; min-height: 2px; position: relative; }
.chart > div span { position: absolute; bottom: -18px; left: 50%; transform: translateX(-50%); font-size: .65rem; color: var(--muted); white-space: nowrap; }
.legal h2 { margin-top: 1.8em; }
.legal h3 { margin-top: 1.4em; }
.install-step { display: flex; gap: 14px; align-items: flex-start; }
.install-step .n { width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; }
.toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 12px; z-index: 100; box-shadow: var(--shadow); max-width: 90vw; }
.courier-marker { font-size: 28px; line-height: 1; filter: drop-shadow(0 2px 3px rgba(0,0,0,.35)); }

/* ---------- Mobile-Optimierung ---------- */
@media (max-width: 820px) {
  .topbar .wrap { gap: 6px; }
  .nav-right { gap: 2px; }
  main { padding-top: 16px; }
  .card { padding: 16px; }
  .hero { border-radius: 18px; }
  .hero .btn.lg { padding: 12px 18px; font-size: 1rem; }
  .section-title { margin-top: 28px; }
  .profile-head .cover { height: 120px; }
  .profile-head .info { padding: 0 16px 16px; gap: 12px; }
  .profile-head .info .grow { padding-top: 8px; min-width: 0; flex-basis: 100%; }
  .profile-head > div[style] { padding-left: 16px !important; padding-right: 16px !important; }
  .row.between > h1, .row.between > div > h1 { font-size: 1.5rem; }
  .bigaction .btn { white-space: normal; }
  .btn { white-space: normal; text-align: center; }
  .chat { max-height: 50vh; }
  .map { height: 300px; }
  .item { flex-wrap: wrap; }
  .item .grow { min-width: 140px; }
  .tips button { flex: 1 1 auto; }
  .tips input { flex: 1 1 100%; width: 100% !important; }
  .choice { grid-template-columns: 1fr; }
  .stat b { font-size: 1.4rem; }
  .admin-nav { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
  .admin-nav a { white-space: nowrap; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; }
  .tabs a { white-space: nowrap; }
  .toast { bottom: 84px; }
  input, select, textarea { font-size: 16px; } /* verhindert Auto-Zoom in iOS */
}
@media (max-width: 520px) {
  .brand { font-size: 1.05rem; }
  .brand .logo { width: 32px; height: 32px; }
  [data-theme-toggle] { display: none; }
  .nav-right .btn.sm:not(.ghost) { display: none; }
  .grid.g4 { grid-template-columns: 1fr 1fr; }
  .row > input[type=search], .row > select { min-width: 0 !important; flex: 1 1 100% !important; }
  .cart-fab { left: 12px; right: 12px; }
  .pin { font-size: 1.6rem; }
  h1 { font-size: 1.45rem; }
}
/* Tabellen mit Formularfeldern horizontal scrollbar statt Seitenüberlauf */
.table-wrap { -webkit-overflow-scrolling: touch; }
.table-wrap table input:not([type=checkbox]):not([type=color]), .table-wrap table select { min-width: 90px; }
.grid > *, .side > *, .cards > * { min-width: 0; }
input[type=file] { max-width: 100%; }
select { max-width: 100%; }
@media (max-width: 700px) { footer.site .cols > div:first-child { grid-column: 1 / -1; } footer.site { padding-bottom: 90px; } }

/* ---------- Icons & Feinschliff ---------- */
.ic { width: 22px; height: 22px; display: block; }
.brand .logo .ic { width: 22px; height: 22px; color: #fff; }
.iconbtn .ic { width: 22px; height: 22px; }
.hero .deco { width: 240px; height: 240px; right: -30px; bottom: -40px; font-size: 0; color: #fff; opacity: .16; }
.statbar { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.statbar .stat { padding: 16px 8px; }
.statbar .stat + .stat { border-left: 1px solid var(--line); }
.statbar .stat b { font-size: 1.5rem; display: flex; align-items: center; justify-content: center; gap: 6px; }
.usp .card { display: flex; flex-direction: column; gap: 2px; }
.usp .usp-ic { font-size: 1.6rem; line-height: 1; margin-bottom: 6px; }
.usp small { color: var(--muted); }

@media (max-width: 820px) {
  .mobile-nav { box-shadow: 0 -4px 20px rgba(0,0,0,.06); padding-top: 8px; }
  .mobile-nav a { gap: 3px; font-size: 11px; font-weight: 500; flex: 1; }
  .mobile-nav a span { font-size: 0; line-height: 0; }
  .mobile-nav a .ic { width: 24px; height: 24px; }
  .mobile-nav a.on { color: var(--accent); }
  .mobile-nav a.on .ic { stroke-width: 2.4; }
  .topbar .wrap { height: 56px; }
  .hero { padding: 26px 20px 24px; }
  .hero h1 { font-size: 1.75rem; margin-bottom: .4em; }
  .hero p { font-size: 1rem; margin-bottom: .2em; }
  .hero .row { gap: 8px; }
  .hero .btn.lg { flex: 1 1 auto; }
  .hero .deco { width: 150px; height: 150px; right: -24px; bottom: -28px; }
  .statbar { grid-template-columns: repeat(2, 1fr); }
  .statbar .stat:nth-child(3) { border-left: 0; }
  .statbar .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .statbar .stat b { font-size: 1.3rem; }
  .usp { grid-template-columns: 1fr !important; gap: 10px; }
  .usp .card { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 12px; padding: 14px 16px; }
  .usp .usp-ic { margin: 0; }
  .usp small { flex-basis: 100%; padding-left: 38px; margin-top: -2px; }
  .store-strip { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px 6px; }
  .store-strip::-webkit-scrollbar { display: none; }
  .store-strip a { flex: none; padding: 8px 14px; font-size: .95rem; }
  .section-title h2 { font-size: 1.2rem; }
  .cards { grid-template-columns: 1fr; gap: 12px; }
}

/* ---------- App-Modus (Android-App / installierte Web-App): schlanker Footer ---------- */
body.in-app footer.site .cols, body.in-app footer.site .mt2 small { display: none; }
body.in-app footer.site { padding: 16px 0 90px; text-align: center; font-size: .82rem; }
body.in-app footer.site .app-legal { display: flex !important; }
@media (display-mode: standalone) {
  footer.site .cols { display: none; }
  footer.site { padding: 16px 0 90px; text-align: center; font-size: .82rem; }
  footer.site .app-legal { display: flex !important; }
}
.app-legal { display: none; flex-wrap: wrap; gap: 6px 14px; justify-content: center; }

/* ---------- Chat ---------- */
.chat-card { display: flex; flex-direction: column; gap: 10px; }
.chat-head { display: flex; align-items: center; gap: 8px; }
.chat-close { display: none; font-size: 1.4rem; }
.chat-card .chat { max-height: 380px; min-height: 160px; background: var(--soft); border-radius: 14px; padding: 10px; gap: 6px; }
.chat .msg { background: var(--card); box-shadow: 0 1px 1px rgba(0,0,0,.05); border-radius: 16px 16px 16px 4px; padding: 7px 12px 6px; max-width: 85%; overflow-wrap: anywhere; }
.chat .msg.me { background: var(--accent); color: #fff; border-radius: 16px 16px 4px 16px; }
.chat .msg .who { display: block; font-size: .75rem; color: var(--accent); margin-bottom: 1px; }
.chat .msg .txt { white-space: pre-wrap; }
.chat .msg small { display: block; text-align: right; font-size: .7rem; opacity: .75; margin-top: 2px; color: inherit; }
.chat-empty { text-align: center; font-size: .9rem; padding: 24px 8px; }
.chat-quick { display: flex; gap: 6px; flex-wrap: wrap; }
.chat-quick .btn { font-weight: 500; }
.chat-form { display: flex; gap: 8px; }
.chat-form input { flex: 1; border-radius: 999px; padding-left: 16px; }
.chat-form .btn { border-radius: 999px; width: 46px; padding: 0; font-size: 1.1rem; }
.chat-fab { display: none; position: fixed; right: 16px; bottom: 84px; z-index: 45; border-radius: 999px; box-shadow: 0 8px 24px rgba(0,0,0,.2); padding: 12px 18px; }
.chat-fab .dot { position: static; display: inline-grid; min-width: 20px; height: 20px; border-radius: 10px; background: var(--err); color: #fff; font-size: 12px; place-items: center; padding: 0 6px; }
.chat-fab .dot.hide { display: none; }
@media (max-width: 960px) {
  .chat-fab { display: inline-flex; }
  .chat-card { display: none; position: fixed; inset: 0; z-index: 80; margin: 0 !important; border-radius: 0; border: 0; padding: 12px 12px calc(12px + env(safe-area-inset-bottom)); }
  .chat-card.open { display: flex; }
  .chat-card .chat { flex: 1; max-height: none; }
  .chat-close { display: inline-grid; }
  .chat-quick { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .chat-quick .btn { flex: none; white-space: nowrap; }
  body.chat-open { overflow: hidden; }
  body.chat-open .mobile-nav, body.chat-open .chat-fab { display: none; }
}
@media (min-width: 821px) and (max-width: 960px) { .chat-fab { bottom: 24px; } }
@media (max-width: 960px) { .sticky { position: static !important; } }
/* Online-Status im Admin abgeschaltet */
body.no-online .online-dot:not([data-track-dot]), body.no-online .online-ui { display: none !important; }
.stat-tiles { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.stat-tiles .card + .card { margin-top: 0; }
.stat.highlight { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; border: 0; }
.stat.highlight small { color: rgba(255,255,255,.9); }
@media (max-width: 520px) { .stat-tiles { grid-template-columns: 1fr 1fr; gap: 10px; } .stat-tiles .highlight { grid-column: 1 / -1; } }
.wish-row { display: flex; gap: 8px; flex-wrap: wrap; }
.wish-row input[name=text] { flex: 1 1 260px; }
.wish-row .wish-qty { width: 80px; }
.wish-row .wish-est { width: 150px; }
@media (max-width: 520px) { .wish-row .wish-qty, .wish-row .wish-est { flex: 1 1 40%; width: auto; } .wish-row .btn { flex: 1 1 100%; } }
.transfer-box { border: 2px solid var(--info); }
.transfer-grid { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; }
.transfer-box .qr { text-align: center; }
.transfer-box .qr svg { width: 180px; height: 180px; background: #fff; border-radius: 10px; display: block; margin: 0 auto 4px; }
.transfer-box code { font-size: .95rem; }
@media (max-width: 600px) { .transfer-grid { grid-template-columns: 1fr; } }
.receipt-list { display: flex; flex-direction: column; }
.receipt-row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--line); color: inherit; }
.receipt-row:hover { background: var(--soft); text-decoration: none; }
.receipt-row:last-child { border-bottom: 0; }
/* Beliebte Artikel */
.popular { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.pop-item { position: relative; display: flex; gap: 12px; align-items: center; padding: 12px; }
.pop-rank { position: absolute; top: 8px; left: 8px; background: #f59e0b; color: #fff; font-weight: 800; font-size: .75rem; padding: 1px 7px; border-radius: 999px; z-index: 1; }
.pop-pic { width: 64px; height: 64px; border-radius: 14px; background: var(--soft); display: grid; place-items: center; font-size: 2rem; flex: none; overflow: hidden; text-decoration: none !important; }
.pop-pic img { width: 100%; height: 100%; object-fit: contain; }
.pop-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pop-name { color: var(--ink); font-weight: 600; line-height: 1.25; }
.pop-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; }
.pop-foot .add-btn { width: 32px; height: 32px; font-size: 1.15rem; }
@media (max-width: 820px) {
  .popular { grid-auto-flow: column; grid-auto-columns: 78%; grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 2px 16px 8px; scrollbar-width: none; }
  .popular::-webkit-scrollbar { display: none; }
  .pop-item { scroll-snap-align: start; }
}
.popular > .card + .card, .stat-tiles > .card + .card, .usp > .card + .card { margin-top: 0; }
.review-actions { gap: 16px; font-size: .85rem; margin-top: 6px; align-items: flex-start; }
.report summary { list-style: none; color: var(--muted); }
.report summary::-webkit-details-marker { display: none; }
.report[open] summary { color: var(--err); }
.report-form { margin-top: 8px; display: flex; flex-direction: column; gap: 8px; max-width: 420px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.report-form textarea { min-height: 70px; }
.review.reported { border-left: 4px solid var(--warn); padding-left: 12px; }
.report-list { margin-top: 8px; padding: 10px 12px; background: color-mix(in srgb, var(--warn) 8%, var(--card)); border-radius: 10px; display: flex; flex-direction: column; gap: 6px; font-size: .9rem; }
/* Installationshinweis */
.install-hint { position: fixed; left: 12px; right: 12px; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 60; background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 12px 40px rgba(0,0,0,.18); padding: 14px 16px; max-width: 460px; margin: 0 auto; animation: slideup .3s ease; }
.install-hint.hide { display: none; }
.install-row { display: flex; gap: 12px; align-items: center; padding-right: 24px; }
.install-row img { border-radius: 12px; flex: none; }
.install-x { position: absolute; top: 8px; right: 10px; border: 0; background: none; font-size: 1.1rem; color: var(--muted); cursor: pointer; padding: 6px; }
.install-steps { margin: 12px 0 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; font-size: .95rem; }
.ios-share { display: inline-flex; align-items: center; gap: 3px; color: #0a84ff; font-weight: 600; vertical-align: middle; }
.ios-add { display: inline-grid; place-items: center; width: 20px; height: 20px; border: 1.5px solid currentColor; border-radius: 5px; font-size: .8rem; vertical-align: middle; }
@keyframes slideup { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (min-width: 821px) { .install-hint { bottom: 20px; } }
body.chat-open .install-hint { display: none; }

/* ---------- Profilbanner ---------- */
.cover { position: relative; overflow: hidden; background-color: var(--c); }
.cover video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bn-gradient { background: linear-gradient(120deg, var(--c), color-mix(in srgb, var(--c) 50%, #001)); }
.bn-solid { background: var(--c); }
.bn-pattern { background-image: radial-gradient(circle at 20% 30%, rgba(255,255,255,.18) 0 18px, transparent 19px), radial-gradient(circle at 70% 60%, rgba(255,255,255,.12) 0 30px, transparent 31px), linear-gradient(120deg, var(--c), color-mix(in srgb, var(--c) 50%, #001)); background-size: 120px 120px, 200px 200px, auto; }
.bn-image { background-size: cover; background-position: center; }
.bn-waves { background:
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 200' preserveAspectRatio='none'%3E%3Cpath d='M0 120 Q150 60 300 120 T600 120 T900 120 T1200 120 V200 H0Z' fill='%23fff' fill-opacity='.16'/%3E%3Cpath d='M0 150 Q150 100 300 150 T600 150 T900 150 T1200 150 V200 H0Z' fill='%23fff' fill-opacity='.14'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat,
  linear-gradient(160deg, color-mix(in srgb, var(--c) 80%, #fff), var(--c) 60%, color-mix(in srgb, var(--c) 60%, #000)); }
.bn-dots { background: radial-gradient(rgba(255,255,255,.28) 2px, transparent 2.5px) 0 0 / 18px 18px, linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 55%, #000)); }
.bn-confetti { background:
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='120'%3E%3Cg fill-opacity='.85'%3E%3Crect x='12' y='18' width='10' height='4' rx='2' fill='%23fde047' transform='rotate(30 17 20)'/%3E%3Crect x='70' y='40' width='10' height='4' rx='2' fill='%23f472b6' transform='rotate(-25 75 42)'/%3E%3Crect x='120' y='12' width='10' height='4' rx='2' fill='%23fff' transform='rotate(60 125 14)'/%3E%3Ccircle cx='40' cy='80' r='3' fill='%2360a5fa'/%3E%3Ccircle cx='140' cy='90' r='3' fill='%23fde047'/%3E%3Crect x='95' y='95' width='10' height='4' rx='2' fill='%2334d399' transform='rotate(15 100 97)'/%3E%3Ccircle cx='100' cy='60' r='2.5' fill='%23fff'/%3E%3C/g%3E%3C/svg%3E"),
  linear-gradient(120deg, var(--c), color-mix(in srgb, var(--c) 50%, #001)); }
.bn-skyline { background:
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 120' preserveAspectRatio='xMidYMax slice'%3E%3Cpath fill='%23000' fill-opacity='.28' d='M0 120V80h30V50h20v30h15V30h25v90h10V60h30v60h15V40l12-10 12 10v80h18V70h40v50h10V20h30v100h15V55h25v65h20V75h35v45h12V35h28v85h18V65h22v55h25V45h30v75h20V85h30v35z'/%3E%3C/svg%3E") bottom / auto 85% repeat-x,
  linear-gradient(180deg, color-mix(in srgb, var(--c) 70%, #fff), var(--c)); }
.bn-mountains { background:
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 200' preserveAspectRatio='none'%3E%3Cpath d='M0 200 L180 70 L320 150 L520 40 L720 160 L900 60 L1200 170 V200Z' fill='%23fff' fill-opacity='.18'/%3E%3Cpath d='M0 200 L240 120 L420 180 L640 100 L860 190 L1050 120 L1200 160 V200Z' fill='%23000' fill-opacity='.18'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat,
  linear-gradient(180deg, color-mix(in srgb, var(--c) 55%, #fff), var(--c)); }
.bn-groceries { background: linear-gradient(120deg, var(--c), color-mix(in srgb, var(--c) 55%, #001)); }
.bn-emoji { position: absolute; inset: -10px; font-size: 34px; line-height: 1.6; letter-spacing: 14px; opacity: .3; word-break: break-all; transform: rotate(-8deg); white-space: normal; pointer-events: none; }
.bn-sunset { background: linear-gradient(180deg, #fb923c, #f43f5e 55%, #7c3aed); }
.bn-ocean { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 200' preserveAspectRatio='none'%3E%3Cpath d='M0 140 Q100 110 200 140 T400 140 T600 140 T800 140 T1000 140 T1200 140 V200 H0Z' fill='%23fff' fill-opacity='.18'/%3E%3C/svg%3E") bottom / 100% 70% no-repeat, linear-gradient(180deg, #38bdf8, #0369a1); }
.bn-forest { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='80'%3E%3Cpath d='M30 10 L50 70 H10Z' fill='%23052e16' fill-opacity='.35'/%3E%3C/svg%3E") bottom / 60px 70% repeat-x, linear-gradient(180deg, #86efac, #15803d); }
.bn-night { background: radial-gradient(circle at 80% 30%, #fef9c3 0 14px, transparent 15px), radial-gradient(rgba(255,255,255,.7) 1px, transparent 1.5px) 0 0 / 40px 40px, linear-gradient(180deg, #0f172a, #312e81); }

/* animiert */
.bn-a-aurora { background: linear-gradient(120deg, var(--c), #22d3ee, #a855f7, var(--c)); background-size: 300% 300%; animation: bnShift 12s ease infinite; }
@keyframes bnShift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.bn-a-bubbles { background: linear-gradient(160deg, var(--c), color-mix(in srgb, var(--c) 50%, #001)); }
.bn-a-bubbles i { position: absolute; bottom: -40px; width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.22); animation: bnRise 9s linear infinite; }
.bn-a-bubbles i:nth-child(1) { left: 8%; animation-delay: 0s; }
.bn-a-bubbles i:nth-child(2) { left: 24%; width: 16px; height: 16px; animation-delay: 2s; animation-duration: 7s; }
.bn-a-bubbles i:nth-child(3) { left: 45%; width: 40px; height: 40px; animation-delay: 4s; animation-duration: 11s; }
.bn-a-bubbles i:nth-child(4) { left: 63%; animation-delay: 1s; }
.bn-a-bubbles i:nth-child(5) { left: 80%; width: 20px; height: 20px; animation-delay: 3s; animation-duration: 8s; }
.bn-a-bubbles i:nth-child(6) { left: 92%; width: 34px; height: 34px; animation-delay: 5s; animation-duration: 10s; }
@keyframes bnRise { to { transform: translateY(-260px) scale(1.2); opacity: 0; } }
.bn-a-neon { background: #0b0b12; }
.bn-a-neon::before, .bn-a-neon::after { content: ""; position: absolute; inset: 22% -10%; border-radius: 50%; border: 3px solid var(--c); filter: drop-shadow(0 0 8px var(--c)) drop-shadow(0 0 18px var(--c)); animation: bnPulse 3s ease-in-out infinite; }
.bn-a-neon::after { inset: 38% 10%; border-color: #22d3ee; filter: drop-shadow(0 0 8px #22d3ee); animation-delay: 1.5s; }
@keyframes bnPulse { 50% { opacity: .35; transform: scaleX(1.05); } }
.bn-a-stars { background: radial-gradient(rgba(255,255,255,.9) 1px, transparent 1.6px) 0 0 / 46px 46px, radial-gradient(rgba(255,255,255,.6) 1px, transparent 1.6px) 23px 23px / 46px 46px, linear-gradient(180deg, #020617, color-mix(in srgb, var(--c) 45%, #020617)); animation: bnTwinkle 4s ease-in-out infinite alternate; }
@keyframes bnTwinkle { to { background-position: 0 6px, 23px 17px, 0 0; filter: brightness(1.25); } }
.bn-a-stripes { background: repeating-linear-gradient(45deg, rgba(255,255,255,.14) 0 18px, transparent 18px 36px), linear-gradient(120deg, var(--c), color-mix(in srgb, var(--c) 50%, #001)); background-size: 51px 51px, auto; animation: bnSlide 2.5s linear infinite; }
@keyframes bnSlide { to { background-position: 51px 0, 0 0; } }
@media (prefers-reduced-motion: reduce) { .cover, .cover *, .cover::before, .cover::after { animation: none !important; } }

/* Auswahl im Konto */
.banner-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.banner-picker label { margin: 0; cursor: pointer; border: 2px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--card); font-weight: 500; font-size: .85rem; }
.banner-picker label:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.banner-picker input { position: absolute; opacity: 0; pointer-events: none; }
.banner-picker .cover { height: 58px; }
.banner-picker span.lbl { display: block; padding: 6px 8px; }
.banner-picker .grp { grid-column: 1 / -1; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-top: 6px; }
/* Bildvorschläge */
.img-suggest { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; margin: 6px 0; }
.img-suggest.big { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); max-height: 55vh; overflow-y: auto; }
.img-opt { border: 2px solid var(--line); border-radius: 12px; background: #fff; padding: 4px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.img-opt img { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 8px; }
.img-opt small { font-size: .68rem; color: #66706c; }
.img-opt.on { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent); }
.img-cell { position: relative; width: 44px; height: 44px; border: 1px dashed var(--line); border-radius: 10px; background: var(--soft); cursor: pointer; display: grid; place-items: center; font-size: 1.4rem; padding: 0; }
.img-cell img { width: 100%; height: 100%; object-fit: contain; border-radius: 9px; }
.img-cell i { position: absolute; right: -6px; bottom: -6px; font-size: .7rem; font-style: normal; background: var(--card); border-radius: 50%; padding: 1px; }
.img-dialog { border: 0; border-radius: 18px; padding: 0; width: min(640px, 94vw); background: var(--card); color: var(--ink); box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.img-dialog::backdrop { background: rgba(0,0,0,.45); }
.img-dialog-inner { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
/* Seite bringt eigenes Hell/Dunkel mit – verhindert automatisches Umfärben durch Browser/WebView */
:root { color-scheme: light dark; }
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }
.card.courier-card { padding: 0; }
.courier-card .body, .profile-head .info { position: relative; z-index: 1; }
