/* Mellow Shop – CI „Eco-Scientific“ (wie mellow-liquid.de) */
@font-face { font-family: 'Space Grotesk'; src: url('/static/fonts/space-grotesk-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Space Grotesk'; src: url('/static/fonts/space-grotesk-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Space Grotesk'; src: url('/static/fonts/space-grotesk-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('/static/fonts/ibm-plex-mono-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('/static/fonts/ibm-plex-mono-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }

:root {
  --forest: #1a2e1a;
  --forest-2: #243d24;
  --moss: #5a8a6e;
  --moss-soft: #e3ece5;
  --amber: #c17f3b;
  --amber-dark: #a5692c;
  --beige: #f4f1ea;
  --beige-2: #ebe6da;
  --paper: #fffdf8;
  --ink: #1a1f1a;
  --muted: #5d665e;
  --line: #d9d3c4;
  --danger: #a23b2a;
  --ok: #3f7a55;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(26, 46, 26, .06), 0 8px 24px rgba(26, 46, 26, .08);
  --font: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', monospace;
  --gutter: 16px;
  --max: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--beige); line-height: 1.55; font-size: 16px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--forest); text-underline-offset: 3px; }
a:hover { color: var(--amber-dark); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 5vw, 3.1rem); font-weight: 700; }
h2 { font-size: clamp(1.45rem, 3.4vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 500; }
p { margin: 0 0 1em; }
.mono, .eyebrow, .price-note, .badge, th { font-family: var(--mono); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; color: var(--moss); margin-bottom: .75rem; display: block; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.section { padding: 56px 0; }
.section-tight { padding: 32px 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--amber); color: #fff; padding: 8px 12px; z-index: 100; border-radius: 6px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

/* Testsystem-Hinweis */
.test-banner { background: var(--amber); color: #fff; text-align: center; font: 500 .8rem/1.4 var(--mono); padding: 6px var(--gutter); }

/* Header */
.site-header { background: var(--forest); color: #fff; position: sticky; top: 0; z-index: 40; }
.site-header .bar { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand img { height: 34px; width: auto; }
.brand .tag { font: 500 .7rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--amber); margin-left: 8px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a { color: #fff; text-decoration: none; padding: 10px 12px; border-radius: 8px; font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--forest-2); color: #fff; }
.nav .cart { display: inline-flex; align-items: center; gap: 6px; }
.cart-count { background: var(--amber); color: #fff; border-radius: 999px; min-width: 22px; height: 22px; display: inline-grid; place-items: center; font: 500 .75rem var(--mono); padding: 0 6px; }
.menu { display: none; }
@media (max-width: 760px) {
  .nav .hide-sm { display: none; }
  .menu { display: block; position: relative; }
  .menu summary { list-style: none; cursor: pointer; padding: 10px; border-radius: 8px; color: #fff; }
  .menu summary::-webkit-details-marker { display: none; }
  .menu[open] summary { background: var(--forest-2); }
  .menu .panel { position: absolute; right: 0; top: 48px; background: var(--forest); border: 1px solid var(--forest-2); border-radius: 12px; padding: 8px; min-width: 220px; display: grid; box-shadow: var(--shadow); }
  .menu .panel a { color: #fff; padding: 12px; text-decoration: none; border-radius: 8px; }
  .menu .panel a:hover { background: var(--forest-2); }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 13px 22px; font: 500 1rem var(--font); cursor: pointer; text-decoration: none; transition: background .15s, transform .05s; min-height: 48px; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--amber); color: #fff; }
.btn-primary:hover { background: var(--amber-dark); color: #fff; }
.btn-dark { background: var(--forest); color: #fff; }
.btn-dark:hover { background: var(--forest-2); color: #fff; }
.btn-ghost { background: transparent; color: var(--forest); border: 1.5px solid var(--forest); }
.btn-ghost:hover { background: var(--forest); color: #fff; }
.btn-light { background: #fff; color: var(--forest); }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 14px; min-height: 36px; font-size: .9rem; }
.linklike { background: none; border: 0; padding: 0; color: var(--forest); text-decoration: underline; cursor: pointer; font: inherit; }

/* Hero */
.hero { background: var(--forest); color: #fff; overflow: hidden; }
.hero .grid { display: grid; gap: 24px; align-items: center; padding-top: 40px; }
.hero h1 { color: #fff; }
.hero .lead { font-size: 1.15rem; color: #dfe7df; max-width: 34ch; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0; }
.hero .visual { position: relative; }
.hero .visual img { border-radius: var(--radius) var(--radius) 0 0; }
.hero .facts { display: flex; flex-wrap: wrap; gap: 8px 18px; font: .8rem var(--mono); color: #c7d4c9; padding-bottom: 32px; }
.hero .facts span::before { content: '◆ '; color: var(--amber); }
@media (min-width: 860px) {
  .hero .grid { grid-template-columns: 1.05fr .95fr; padding-top: 72px; }
  .hero .visual img { border-radius: var(--radius) var(--radius) 0 0; }
}

/* Karten / Raster */
.grid-2, .grid-3, .grid-4 { display: grid; gap: 16px; }
@media (min-width: 680px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card h3 { margin-bottom: .35em; }
.usp .icon { width: 40px; height: 40px; border-radius: 10px; background: var(--moss-soft); color: var(--forest); display: grid; place-items: center; font: 500 .9rem var(--mono); margin-bottom: 12px; }

/* Produkt */
.product-card { display: grid; gap: 16px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.product-card .img { background: #fff; display: grid; place-items: center; padding: 16px; }
.product-card .img img { max-height: 340px; width: auto; }
.product-card .body { padding: 0 20px 20px; }
@media (min-width: 760px) { .product-card { grid-template-columns: 1fr 1.1fr; align-items: center; } .product-card .body { padding: 28px; } }
.price { font: 500 1.9rem var(--mono); color: var(--forest); letter-spacing: -.02em; }
.price s { font-size: 1rem; color: var(--muted); margin-left: 8px; }
.price-note { font-size: .78rem; color: var(--muted); }
.buy { display: flex; gap: 10px; align-items: stretch; margin-top: 16px; flex-wrap: wrap; }
.qty { display: inline-flex; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; background: #fff; }
.qty button { width: 44px; border: 0; background: transparent; font-size: 1.2rem; cursor: pointer; color: var(--forest); }
.qty input { width: 56px; text-align: center; border: 0; font: 500 1rem var(--mono); -moz-appearance: textfield; background: transparent; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.buy .btn { flex: 1; min-width: 180px; }

.pdp { display: grid; gap: 24px; padding-top: 24px; padding-bottom: 40px; }
.pdp .gallery { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); padding: 16px; display: grid; gap: 12px; }
.pdp .gallery .main { display: grid; place-items: center; min-height: 320px; }
.pdp .gallery .main img { max-height: 520px; width: auto; }
.pdp .thumbs { display: flex; gap: 8px; }
.pdp .thumbs button { border: 1.5px solid var(--line); border-radius: 10px; padding: 4px; background: #fff; cursor: pointer; width: 72px; height: 72px; }
.pdp .thumbs button[aria-pressed="true"] { border-color: var(--amber); }
.pdp .thumbs img { width: 100%; height: 100%; object-fit: contain; }
@media (min-width: 900px) { .pdp { grid-template-columns: 1.05fr 1fr; align-items: start; } .pdp .buybox { position: sticky; top: 88px; } }
.checklist { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 8px; }
.checklist li { padding-left: 28px; position: relative; }
.checklist li::before { content: ''; position: absolute; left: 0; top: .35em; width: 16px; height: 16px; border-radius: 50%; background: var(--moss); box-shadow: inset 0 0 0 4px var(--moss-soft); }
.steps { counter-reset: s; list-style: none; padding: 0; display: grid; gap: 12px; }
.steps li { counter-increment: s; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px 14px 56px; position: relative; }
.steps li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 16px; top: 14px; font: 500 .9rem var(--mono); color: var(--amber); }

/* Sticky Kauf-Leiste (mobil) */
.buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--paper); border-top: 1px solid var(--line); padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 12px; transform: translateY(110%); transition: transform .2s; }
.buybar.show { transform: none; }
.buybar .price { font-size: 1.2rem; }
.buybar .btn { margin-left: auto; }
@media (min-width: 900px) { .buybar { display: none; } }

/* Badges, Hinweise */
.badge { display: inline-block; font-size: .72rem; padding: 3px 9px; border-radius: 999px; background: var(--moss-soft); color: var(--forest); text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.badge.amber { background: #f6e5d1; color: var(--amber-dark); }
.badge.red { background: #f3dcd7; color: var(--danger); }
.badge.dark { background: var(--forest); color: #fff; }
.alert { border-radius: var(--radius-sm); padding: 12px 16px; margin: 0 0 16px; border: 1px solid; }
.alert ul { margin: 0; padding-left: 18px; }
.alert.error { background: #f8e8e4; border-color: #e6c2b9; color: var(--danger); }
.alert.success { background: #e5f0e8; border-color: #c2dcc9; color: var(--ok); }
.alert.info { background: #f6efe2; border-color: #e7d7b9; color: #6b4a1f; }

/* FAQ */
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 8px; }
.faq summary { cursor: pointer; padding: 16px 48px 16px 16px; font-weight: 500; position: relative; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 18px; top: 12px; font: 400 1.4rem var(--mono); color: var(--amber); }
.faq details[open] summary::after { content: '–'; }
.faq details > div { padding: 0 16px 16px; color: var(--muted); }

/* Formulare */
form { margin: 0; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label, .label { font-weight: 500; font-size: .92rem; }
.field .hint { font-size: .8rem; color: var(--muted); }
input:not([type]), input[type=text], input[type=search], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=url], input[type=date], select, textarea {
  width: 100%; font: 400 16px var(--font); color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px; min-height: 48px;
}
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--moss); outline: none; box-shadow: 0 0 0 3px rgba(90, 138, 110, .2); }
.row { display: grid; gap: 12px; }
@media (min-width: 560px) { .row-2 { grid-template-columns: 1fr 1fr; } .row-3 { grid-template-columns: 1.2fr 1fr 1fr; } .row-plz { grid-template-columns: 140px 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0; font-size: .95rem; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--forest); flex: none; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 0 0 16px; background: var(--paper); }
legend { font-weight: 700; padding: 0 6px; }
.choice { display: flex; gap: 12px; align-items: center; border: 1.5px solid var(--line); border-radius: 12px; padding: 14px; margin-bottom: 8px; background: #fff; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--forest); box-shadow: 0 0 0 2px rgba(26, 46, 26, .08); }
.choice input { accent-color: var(--forest); width: 20px; height: 20px; }
.segmented { display: flex; gap: 6px; background: var(--beige-2); padding: 4px; border-radius: 999px; margin-bottom: 16px; }
.segmented a, .segmented label { flex: 1; text-align: center; padding: 10px; border-radius: 999px; text-decoration: none; color: var(--forest); font-weight: 500; cursor: pointer; }
.segmented .active, .segmented label:has(input:checked) { background: #fff; box-shadow: var(--shadow); }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
[hidden] { display: none !important; }

/* Checkout */
.checkout { display: grid; gap: 24px; padding-top: 24px; padding-bottom: 48px; }
@media (min-width: 960px) { .checkout { grid-template-columns: 1.4fr 1fr; align-items: start; } .checkout aside { position: sticky; top: 88px; } }
.summary { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.summary .line { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; }
.summary .line span:last-child { font-family: var(--mono); white-space: nowrap; }
.summary .total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; font-weight: 700; font-size: 1.15rem; }
.summary .item { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.summary .item img { width: 56px; height: 56px; object-fit: contain; background: #fff; border-radius: 8px; }
.saving { color: var(--ok); }

/* Warenkorb */
.cart-row { display: grid; grid-template-columns: 72px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-row img { width: 72px; height: 72px; object-fit: contain; background: #fff; border-radius: 10px; border: 1px solid var(--line); }
.cart-row .meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; align-items: center; }
.progress { height: 8px; background: var(--beige-2); border-radius: 999px; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--moss); }

/* Tabellen */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); background: var(--beige); font-weight: 500; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-family: var(--mono); white-space: nowrap; }
tr.hl td { background: var(--forest); color: #fff; }

/* Konto */
.account { display: grid; gap: 24px; padding-top: 24px; padding-bottom: 48px; }
.account nav { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
.account nav a { white-space: nowrap; padding: 10px 14px; border-radius: 999px; text-decoration: none; background: var(--paper); border: 1px solid var(--line); color: var(--forest); font-weight: 500; }
.account nav a[aria-current="page"] { background: var(--forest); color: #fff; border-color: var(--forest); }
@media (min-width: 900px) { .account { grid-template-columns: 220px 1fr; } .account nav { flex-direction: column; } .account nav a { border-radius: 10px; } }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; }
.kv dt { color: var(--muted); font-size: .9rem; }
.kv dd { margin: 0; }
.addr { white-space: pre-line; }
.stat { font: 500 1.6rem var(--mono); color: var(--forest); }

/* Footer */
.site-footer { background: var(--forest); color: #c7d4c9; padding: 40px 0 calc(32px + env(safe-area-inset-bottom)); margin-top: 40px; font-size: .92rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--amber); }
.site-footer .cols { display: grid; gap: 24px; }
@media (min-width: 760px) { .site-footer .cols { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer .legal { border-top: 1px solid var(--forest-2); margin-top: 28px; padding-top: 16px; font: .75rem var(--mono); display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; }

/* Altersabfrage */
.agegate { position: fixed; inset: 0; z-index: 100; background: rgba(15, 26, 15, .92); display: grid; place-items: center; padding: var(--gutter); }
.agegate .box { background: var(--paper); border-radius: var(--radius); padding: 28px; max-width: 420px; text-align: center; box-shadow: var(--shadow); }
.agegate .box img { height: 40px; width: auto; margin: 0 auto 16px; }
.agegate .actions { display: grid; gap: 10px; margin-top: 20px; }

/* Stripe Embedded Checkout */
#stripe-checkout { min-height: 480px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); padding: 8px; }

/* Admin */
.admin-bar { background: var(--amber); color: #fff; }
.admin-bar a { color: #fff; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.toolbar form { display: flex; gap: 8px; flex-wrap: wrap; }
.toolbar input, .toolbar select { min-height: 40px; padding: 8px 12px; width: auto; }
.inline-form { display: inline; }

/* Cookie-Einwilligung */
.consent { position: fixed; left: var(--gutter); right: var(--gutter); bottom: var(--gutter); z-index: 90; max-width: 680px; margin: 0 auto; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; font-size: .9rem; }
.consent[hidden] { display: none; }
.consent p { margin: 0 0 14px; }
.consent a { text-decoration: underline; }
.consent-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
@media (max-width: 480px) { .consent-actions .btn { flex: 1 1 100%; } }

/* Fortschritt bis versandkostenfrei */
.free-ship { margin: 10px 0 12px; }
.free-ship p { margin: 6px 0 0; }

/* Admin: Zugabe-Flaschen */
.bonus-box { border: 1px dashed var(--line); border-radius: var(--radius); padding: 10px 12px; margin: 0 0 12px; }
