/* GummiFit – gemeinsame Styles für alle Seiten */

@font-face {
  font-family: "Unbounded";
  src: url("../fonts/unbounded.woff2") format("woff2-variations"), url("../fonts/unbounded.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
}
@font-face {
  font-family: "Assistant";
  src: url("../fonts/assistant.woff2") format("woff2-variations"), url("../fonts/assistant.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --ink: #000000;
  --raised: #1a1a1a;
  --line: #2e2e2e;
  --paper: #ffffff;
  --muted: #a8a8a8;
  --orange: #ff8a00;
  --orange-deep: #e07600;
  --peach: #ffb27d;
  --apple: #9fdb5a;
  --flavor: var(--peach);
  --ok: #9fdb5a;
  --bad: #ff6b5e;

  --display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --body: "Assistant", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius-pill: 999px;
  --radius-panel: 28px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.5;
  font-weight: 450;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Header ---------- */
.announce {
  background: var(--orange);
  color: var(--ink);
  font-weight: 700;
  font-size: 15px;
  text-align: center;
  padding: 7px var(--gutter);
}
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 800; font-size: 21px;
  letter-spacing: -0.02em; text-decoration: none;
}
.logo svg { width: 22px; height: 28px; color: var(--orange); }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 600; color: var(--muted); }
.nav a:hover { color: var(--paper); }
.cart-btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid var(--line); background: var(--raised);
  border-radius: var(--radius-pill);
  padding: 9px 16px 9px 14px; cursor: pointer; font-weight: 700; text-decoration: none;
}
.cart-btn:hover { border-color: var(--orange); }
.cart-btn svg { width: 20px; height: 20px; }
.cart-count {
  min-width: 24px; height: 24px; padding: 0 7px;
  display: inline-grid; place-items: center;
  background: var(--orange); color: var(--ink);
  border-radius: var(--radius-pill); font-size: 14px; font-weight: 800;
}
.cart-count[data-empty="true"] { background: #333; color: var(--muted); }
.cart-btn.bump .cart-count { animation: bump .45s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.45); } 100% { transform: scale(1); } }
@media (max-width: 820px) {
  .nav { display: none; }
  .cart-btn { margin-left: auto; }
}

/* ---------- Buttons & controls ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 28px;
  border: 0; border-radius: var(--radius-pill);
  background: var(--orange); color: var(--ink);
  font-weight: 800; font-size: 18px; text-decoration: none; cursor: pointer;
  transition: background .15s, transform .15s;
}
.btn:hover { background: #ffa033; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { background: #3a3a3a; color: #8a8a8a; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--paper); box-shadow: inset 0 0 0 2px var(--paper); }
.btn-ghost:hover { background: var(--paper); color: var(--ink); }

.stepper {
  display: inline-flex; align-items: center;
  border: 1px solid var(--line); border-radius: var(--radius-pill);
  background: var(--raised); height: 54px;
}
.stepper button {
  width: 46px; height: 100%; border: 0; background: none; cursor: pointer;
  font-size: 22px; font-weight: 700; border-radius: var(--radius-pill);
}
.stepper button:hover { color: var(--orange); }
.stepper output, .stepper span { min-width: 30px; text-align: center; font-weight: 800; }
.stepper.small { height: 40px; }
.stepper.small button { width: 36px; font-size: 18px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(24px, 4vw, 52px) 0 clamp(48px, 7vw, 96px); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: 32px; align-items: center; }
.hero h1 { margin: 0; font-weight: 400; }
.hero .h1-sub { display: block; font-family: var(--body); font-size: 22px; font-weight: 700; color: var(--flavor); transition: color .3s; }
.hero .h1-big {
  display: block; margin-top: 10px;
  font-family: var(--display); font-weight: 900;
  font-size: clamp(54px, 8vw, 108px); line-height: .92; letter-spacing: -0.035em;
}
.hero .lead { max-width: 30em; margin: 22px 0 0; font-size: 20px; color: #d9d9d9; }

.buy { margin-top: 24px; max-width: 520px; }
.flavors { display: flex; flex-wrap: wrap; gap: 10px; border: 0; padding: 0; margin: 0 0 22px; }
.flavors legend { font-weight: 700; margin-bottom: 10px; color: var(--muted); }
.flavor-opt { position: relative; }
.flavor-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.flavor-opt label {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px 10px 12px; border-radius: var(--radius-pill);
  border: 2px solid var(--line); background: var(--raised);
  font-weight: 700; cursor: pointer;
}
.flavor-opt label i { width: 18px; height: 18px; border-radius: 50%; background: var(--c); box-shadow: inset 0 -3px 0 rgba(0,0,0,.18); }
.flavor-opt label small { font-weight: 600; color: var(--muted); font-size: 14px; }
.flavor-opt input:checked + label { border-color: var(--c); background: color-mix(in srgb, var(--c) 16%, var(--raised)); }
.flavor-opt input:focus-visible + label { outline: 3px solid var(--orange); outline-offset: 3px; }

.price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 18px; }
.price { font-family: var(--display); font-weight: 800; font-size: 34px; letter-spacing: -0.02em; }
.price-meta { color: var(--muted); font-size: 15px; }
.buy-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.buy-actions .btn { flex: 1 1 220px; }
.buy-note { margin: 14px 0 0; color: var(--muted); font-size: 15px; }

.hero-visual { position: relative; display: grid; place-items: center; min-height: 420px; }
.hero-visual::before {
  content: ""; position: absolute; width: 88%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--flavor) 42%, transparent) 0%, transparent 66%);
  transition: background .4s;
}
.bear-big { position: relative; width: min(100%, 420px); height: auto; filter: drop-shadow(0 30px 40px rgba(0,0,0,.6)); }
.bear-big .bear-fill { transition: fill .35s; }
.bear-big.wobble { animation: wobble .7s cubic-bezier(.3, 1.5, .5, 1); transform-origin: 50% 90%; }
@keyframes wobble {
  0% { transform: scale(1, 1); } 30% { transform: scale(1.06, .93); }
  55% { transform: scale(.97, 1.04); } 100% { transform: scale(1, 1); }
}
.sticker {
  position: absolute; right: 4%; top: 10%;
  width: 124px; height: 124px; border-radius: 50%;
  display: grid; place-items: center; text-align: center;
  background: var(--orange); color: var(--ink);
  font-family: var(--display); font-weight: 800; font-size: 15px; line-height: 1.1;
  transform: rotate(12deg);
  box-shadow: 0 10px 24px rgba(0,0,0,.4);
}
.sticker b { display: block; font-size: 34px; letter-spacing: -0.03em; }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-visual { order: -1; min-height: 0; margin: -8px 0 -12px; }
  .bear-big { width: min(58vw, 260px); }
  .sticker { width: 96px; height: 96px; font-size: 12px; right: 6%; top: 4%; }
  .sticker b { font-size: 26px; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; border-top: 1px solid var(--line); }
.section h2 {
  margin: 0; max-width: 18em;
  font-family: var(--display); font-weight: 800;
  font-size: clamp(30px, 4.6vw, 52px); line-height: 1.05; letter-spacing: -0.03em;
}
.section .intro { margin: 18px 0 0; max-width: 34em; color: #cfcfcf; font-size: 20px; }

/* Warum */
.reasons { list-style: none; padding: 0; margin: 56px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 32px; }
.reasons li { border-top: 3px solid var(--paper); padding-top: 20px; }
.reasons h3 { margin: 0 0 10px; font-family: var(--display); font-weight: 700; font-size: 21px; line-height: 1.2; letter-spacing: -0.01em; }
.reasons p { margin: 0; color: #cfcfcf; }
@media (max-width: 960px) { .reasons { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 28px; } }
@media (max-width: 560px) { .reasons { grid-template-columns: 1fr; gap: 32px; } }

/* Sorten */
.products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 48px; }
.product {
  --c: var(--peach);
  display: grid; grid-template-rows: auto 1fr;
  border-radius: var(--radius-panel); overflow: hidden; background: var(--raised);
}
.product-media {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 100%, color-mix(in srgb, var(--c) 70%, #000) 0%, color-mix(in srgb, var(--c) 30%, #000) 100%);
  display: grid; place-items: center;
}
.product-media svg { width: 36%; color: var(--c); opacity: .9; }
.product-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.product-media .badge {
  position: absolute; left: 16px; top: 16px; z-index: 1;
  background: var(--paper); color: var(--ink); font-weight: 800; font-size: 14px;
  padding: 6px 12px; border-radius: var(--radius-pill);
}
.product-body { padding: 24px; display: flex; flex-direction: column; gap: 6px; }
.product-body h3 { margin: 0; font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -0.01em; }
.product-body p { margin: 0; color: #cfcfcf; }
.product-body .price-row { margin: 12px 0 16px; }
.product-body .price { font-size: 26px; }
.product-body .buy-actions { margin-top: auto; }
.product[data-soldout="true"] .product-media img { filter: grayscale(.8) brightness(.7); }
@media (max-width: 720px) { .products { grid-template-columns: 1fr; } }

/* Vergleich */
.compare-wrap { margin-top: 48px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare { width: 100%; min-width: 600px; border-collapse: collapse; }
.compare th, .compare td { padding: 18px 16px; text-align: center; border-bottom: 1px solid var(--line); }
.compare thead th { font-weight: 700; color: var(--muted); font-size: 16px; vertical-align: bottom; }
.compare tbody th { text-align: left; font-weight: 700; }
.compare .us { background: color-mix(in srgb, var(--orange) 14%, transparent); }
.compare thead .us { color: var(--orange); font-family: var(--display); font-weight: 800; font-size: 18px; border-radius: 18px 18px 0 0; }
.compare tbody tr:last-child .us { border-radius: 0 0 18px 18px; }
.mark { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; font-weight: 900; }
.mark.yes { background: var(--ok); color: var(--ink); }
.mark.no { background: #3a1d1b; color: var(--bad); }
.mark.part { background: #3a3220; color: #ffcf6b; }
.footnote { margin: 18px 0 0; color: var(--muted); font-size: 15px; }

/* Etikett: Zutaten & Nährwerte */
.label-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; margin-top: 48px; align-items: start; }
.food-label {
  background: var(--paper); color: var(--ink);
  border-radius: 6px; padding: 26px 28px 22px;
  border: 3px solid var(--paper);
  box-shadow: 0 0 0 1px #000 inset;
}
.food-label h3 { margin: 0; font-family: var(--display); font-weight: 900; font-size: 26px; letter-spacing: -0.02em; }
.food-label .per { margin: 2px 0 12px; font-weight: 700; }
.food-label table { width: 100%; border-collapse: collapse; border-top: 10px solid var(--ink); }
.food-label td { padding: 7px 0; border-bottom: 1px solid var(--ink); }
.food-label td:last-child { text-align: right; font-weight: 800; }
.food-label tr.sub td:first-child { padding-left: 18px; }
.food-label tr.key td { border-bottom-width: 4px; }
.food-facts dl { margin: 0; }
.food-facts dt { font-family: var(--display); font-weight: 700; font-size: 17px; margin-top: 22px; }
.food-facts dt:first-child { margin-top: 0; }
.food-facts dd { margin: 6px 0 0; color: #d6d6d6; }
.todo {
  display: inline-block; padding: 2px 10px; border-radius: 6px;
  border: 2px dashed var(--orange); color: var(--orange); font-weight: 800; font-size: 14px;
}
.food-label .todo { color: #b35f00; border-color: #b35f00; }
@media (max-width: 860px) { .label-grid { grid-template-columns: 1fr; } }

/* CTA */
.cta { text-align: left; }
.cta .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; }
.cta h2 { font-size: clamp(36px, 6vw, 76px); }
.cta p { margin: 18px 0 0; color: #cfcfcf; font-size: 20px; }
@media (max-width: 760px) { .cta .wrap { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 40px; color: var(--muted); font-size: 16px; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer h4 { margin: 0 0 12px; color: var(--paper); font-size: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--paper); text-decoration: underline; }
.pay-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pay-list span {
  border: 1px solid var(--line); border-radius: 8px; padding: 4px 10px;
  font-size: 14px; font-weight: 700; color: #dcdcdc; background: var(--raised);
}
.copy { margin-top: 40px; font-size: 14px; }
@media (max-width: 760px) { .site-footer .cols { grid-template-columns: 1fr; } }

/* ---------- Warenkorb (dialog) ---------- */
dialog.drawer {
  margin: 0 0 0 auto; padding: 0; border: 0;
  width: min(440px, 100vw); max-width: 100vw; height: 100dvh; max-height: 100dvh;
  background: var(--raised); color: var(--paper);
  border-left: 1px solid var(--line);
}
dialog.drawer[open] { display: flex; flex-direction: column; animation: slide-in .28s cubic-bezier(.2, .8, .2, 1); }
dialog.drawer::backdrop { background: rgba(0, 0, 0, .6); }
@keyframes slide-in { from { transform: translateX(100%); } to { transform: translateX(0); } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 22px; }
.icon-btn { width: 42px; height: 42px; border: 0; background: #262626; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.icon-btn:hover { background: #333; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 22px 22px; }
.drawer-foot { border-top: 1px solid var(--line); padding: 18px 22px 22px; }
.notice { margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; background: #2a2116; color: #ffcf8f; font-size: 15px; }
.notice.error { background: #3a1d1b; color: #ffb3ab; }
.line { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.line-thumb { width: 64px; height: 64px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 28%, #111); }
.line-thumb svg { width: 26px; color: var(--c); }
.line-name { font-weight: 700; line-height: 1.25; }
.line-meta { color: var(--muted); font-size: 14px; }
.line-ctrl { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.line-remove { border: 0; background: none; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: 14px; padding: 4px; }
.line-total { font-weight: 800; align-self: start; padding-top: 2px; }
.empty { text-align: center; padding: 48px 8px 16px; color: var(--muted); }
.empty svg { width: 54px; margin: 0 auto 16px; color: #3a3a3a; }
.empty p { margin: 0 0 20px; }
.ship-meter { margin: 18px 0 4px; }
.ship-meter p { margin: 0 0 8px; font-size: 15px; }
.ship-meter .bar { height: 8px; border-radius: var(--radius-pill); background: #333; overflow: hidden; }
.ship-meter .bar i { display: block; height: 100%; background: var(--orange); border-radius: inherit; transition: width .3s; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.sum-row.total { font-weight: 800; font-size: 20px; padding-top: 10px; }
.sum-row span:first-child { color: var(--muted); }
.sum-row.total span:first-child { color: var(--paper); }
.drawer-foot .btn { width: 100%; margin-top: 16px; }
.small-print { margin: 12px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.small-print a { color: #d0d0d0; }
.btn .spinner { width: 18px; height: 18px; border: 3px solid rgba(0,0,0,.25); border-top-color: var(--ink); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* fliegendes Gummibärchen beim Hinzufügen */
.flyer { position: fixed; z-index: 100; width: 30px; height: 38px; pointer-events: none; }

/* ---------- Rechtstexte ---------- */
.legal { padding: clamp(40px, 7vw, 88px) 0 clamp(64px, 9vw, 120px); }
.legal .wrap { max-width: 820px; }
.legal h1, .legal h2, .legal p, .legal li { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
.legal h1 { margin: 0 0 28px; font-family: var(--display); font-weight: 800; font-size: clamp(32px, 5vw, 48px); letter-spacing: -0.03em; line-height: 1.05; }
.legal h2 { margin: 40px 0 10px; font-family: var(--display); font-weight: 700; font-size: 21px; letter-spacing: -0.01em; }
.legal h3 { margin: 26px 0 8px; font-size: 18px; }
.legal p, .legal li { color: #d6d6d6; }
.legal a { color: var(--orange); }
.legal .box { border: 1px solid var(--line); background: var(--raised); border-radius: 16px; padding: 18px 22px; }
.legal .check { border: 2px dashed var(--orange); border-radius: 12px; padding: 12px 16px; color: #ffcf8f; font-size: 15px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
