:root {
  --pink: #f91a82;
  --pink-soft: #ff77aa;
  --pink-pale: #ffbacb;
  /* WCAG-AA-sichere Varianten (≥4.5:1 auf Weiß) für Text und Buttons — die helleren
     Töne oben bleiben für Verläufe/Deko auf dunklem Grund, dort ist der Kontrast schon hoch. */
  --pink-text: #c00e64;
  --pink-btn-start: #c00e64;
  --pink-btn-end: #e0157a;
  --deep: #241019;
  --deep-2: #33121f;
  --ink: #1a0a10;
  --paper: #fff8fa;
  --muted: #7a5a63;
  --line: rgba(36, 16, 25, 0.12);
  --radius: 18px;
  --shadow: 0 20px 50px -20px rgba(36, 16, 25, 0.35);
  --maxw: 1280px;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button { font-family: inherit; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.top-bar {
  background: var(--deep);
  color: #fff2f6;
  font-size: 13px;
  text-align: center;
  padding: 8px 12px;
  letter-spacing: 0.02em;
}

header.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 248, 250, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--maxw);
  margin: 0 auto;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 19px;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.brand .mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  object-fit: contain;
  background: #fff;
  box-shadow: 0 6px 18px -6px rgba(249, 26, 130, 0.6);
}

nav.main-nav {
  display: flex;
  gap: 28px;
  font-weight: 600;
  font-size: 14.5px;
}

nav.main-nav a {
  text-decoration: none;
  color: var(--ink);
  opacity: 0.75;
  transition: opacity 0.15s;
  cursor: pointer;
}
nav.main-nav a:hover { opacity: 1; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.icon-btn {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: background 0.15s;
}
.icon-btn:hover { background: rgba(249, 26, 130, 0.08); }

.cart-count {
  position: absolute;
  top: 3px;
  right: 3px;
  background: var(--pink);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  min-width: 17px;
  height: 17px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}

/* ---------- Hero ---------- */
.hero {
  background: radial-gradient(circle at 15% 20%, var(--deep-2), var(--deep) 60%);
  color: #fff;
  padding: 88px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: -40% -10% auto auto;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, rgba(249, 26, 130, 0.55), transparent 65%);
  filter: blur(10px);
}
.hero-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 119, 170, 0.16);
  border: 1px solid rgba(255, 119, 170, 0.4);
  color: var(--pink-pale);
  font-size: 13px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.06;
  margin: 0 0 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--pink) 10%, var(--pink-soft) 60%, var(--pink-pale) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead {
  font-size: 17.5px;
  color: rgba(255, 245, 248, 0.78);
  max-width: 46ch;
  line-height: 1.6;
  margin: 0 0 32px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.btn-primary {
  background: linear-gradient(120deg, var(--pink-btn-start), var(--pink-btn-end));
  color: #fff;
  box-shadow: 0 14px 30px -10px rgba(249, 26, 130, 0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -8px rgba(249, 26, 130, 0.65); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.16); }
.btn-dark {
  background: var(--deep);
  color: #fff;
}
.btn-dark:hover { background: var(--deep-2); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

.hero-stats {
  display: flex;
  gap: 26px;
  margin-top: 40px;
}
.hero-stats div strong { display: block; font-size: 26px; font-weight: 800; }
.hero-stats div span { font-size: 12.5px; color: rgba(255, 245, 248, 0.6); }

.hero-visual {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: 26px;
  overflow: hidden;
  background: linear-gradient(160deg, var(--pink) 0%, var(--deep-2) 100%);
  box-shadow: var(--shadow);
}
.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 30px;
  filter: drop-shadow(0 20px 30px rgba(0,0,0,0.35));
}
.hero-visual .badge {
  position: absolute;
  bottom: 18px;
  left: 18px;
  background: rgba(36, 16, 25, 0.75);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 34px;
  flex-wrap: wrap;
}
.section-head h2 {
  font-size: clamp(24px, 3vw, 32px);
  margin: 0 0 6px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.section-head p { margin: 0; color: var(--muted); font-size: 15px; }

.trust-strip {
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 26px 0;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  text-align: center;
}
.trust-grid div { font-size: 13.5px; font-weight: 600; color: var(--muted); }
.trust-grid strong { display: block; color: var(--ink); font-size: 15px; margin-bottom: 2px; }

/* ---------- Filters ---------- */
.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.chip {
  border: 1.5px solid var(--line);
  background: #fff;
  padding: 9px 19px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s, box-shadow 0.15s, transform 0.15s;
  color: var(--ink);
}
.chip:hover { border-color: var(--pink-text); transform: translateY(-1px); }
.chip.active {
  background: var(--deep);
  border-color: var(--deep);
  color: #fff;
  box-shadow: 0 6px 16px -6px rgba(36,16,25,0.45);
}

.filter-bar-2 { margin-top: 4px; align-items: center; }

.select-box {
  border: 1.5px solid var(--line);
  background: #fff;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
  appearance: none;
  -webkit-appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="6" fill="none" stroke="%237a5a63" stroke-width="1.6"><path d="M1 1l4 4 4-4"/></svg>');
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 30px;
}
.select-box:hover { border-color: var(--pink-text); }
.select-box:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 3px rgba(249,26,130,0.15); }

.swatch-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.swatch {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid rgba(36, 16, 25, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
  cursor: pointer;
  padding: 0;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
  position: relative;
}
.swatch:hover { transform: scale(1.12); }
.swatch.selected { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(249,26,130,0.18); }
.swatch.selected::after {
  content: "✓";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 0 2px rgba(0,0,0,0.6);
}
.swatch-all {
  border-radius: 999px;
  width: auto;
  padding: 0 14px;
  height: 26px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
  background: #fff;
  display: flex;
  align-items: center;
}
.swatch-all.selected { color: var(--pink-text); border-color: var(--pink-text); }

.color-dot {
  display: inline-block;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 1.5px solid rgba(36,16,25,0.18);
  margin-right: 7px;
  vertical-align: -2px;
  flex-shrink: 0;
}

.hero-visual.fading img { opacity: 0; }
.hero-visual img { transition: opacity 0.35s ease; }

.design-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(36,16,25,0.85);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 999px;
}
.card .info .arten { font-size: 11px; color: var(--muted); margin: 2px 0 8px; }

.search-box {
  margin-left: auto;
  position: relative;
}
.search-box input {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 16px 9px 36px;
  font-size: 13.5px;
  width: 220px;
  background: #fff url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" fill="none" stroke="%237a5a63" stroke-width="2"><circle cx="6" cy="6" r="5"/><line x1="10" y1="10" x2="13.5" y2="13.5"/></svg>') no-repeat 13px center;
}
.search-box input:focus { outline: 2px solid var(--pink-soft); }

/* ---------- Product grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 20px;
}

.card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .thumb {
  aspect-ratio: 1/1;
  background: linear-gradient(160deg, #fdeef4, #fff);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  position: relative;
}
.card .thumb img { width: 100%; height: 100%; object-fit: contain; }
.card .tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(36,16,25,0.85);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 9px;
  border-radius: 999px;
}
.card .info { padding: 14px 16px 18px; flex: 1; display: flex; flex-direction: column; }
.card .info .art {
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card .info h3 {
  font-size: 14.5px;
  margin: 0 0 10px;
  font-weight: 700;
  line-height: 1.35;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
}
.card .info .price-row { display: flex; align-items: center; justify-content: space-between; }
.card .info .price { font-weight: 800; font-size: 16.5px; color: var(--deep); }
.card .info .buy {
  background: var(--pink-pale);
  color: var(--deep);
  border: none;
  border-radius: 10px;
  width: 44px; height: 44px;
  font-size: 17px;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, transform 0.18s, box-shadow 0.18s;
  box-shadow: 0 2px 8px -3px rgba(249,26,130,0.3);
}
.card .info .buy:hover { background: var(--pink); color: #fff; transform: scale(1.08) rotate(90deg); box-shadow: 0 6px 14px -4px rgba(249,26,130,0.55); }

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}

.load-more { text-align: center; margin-top: 34px; }

/* ---------- Bereich cards (home) ---------- */
.bereich-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.bereich-card {
  border-radius: 22px;
  padding: 34px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
}
.bereich-card.medizinisch { background: linear-gradient(135deg, #241019, #6e1338 70%, var(--pink)); }
.bereich-card.solidarisch { background: linear-gradient(135deg, #241019, #3a1e46 70%, #7d3ff9); }
.bereich-card h3 { font-size: 24px; margin: 0 0 8px; font-weight: 800; }
.bereich-card p { margin: 0; opacity: 0.8; font-size: 14px; max-width: 34ch; }
.bereich-card .arrow { position: absolute; top: 28px; right: 28px; font-size: 22px; opacity: 0.7; }

/* ---------- Cart drawer ---------- */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 10, 16, 0.5);
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.overlay.open { opacity: 1; pointer-events: all; }

.drawer {
  position: fixed;
  top: 0; right: 0;
  height: 100%;
  width: min(420px, 100%);
  background: #fff;
  z-index: 61;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(.2,.8,.2,1);
  display: flex;
  flex-direction: column;
  box-shadow: -20px 0 50px rgba(0,0,0,0.2);
}
.drawer.open { transform: translateX(0); }
.drawer-head {
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.drawer-head h3 { margin: 0; font-size: 18px; }
.drawer-close { background: none; border: none; font-size: 20px; cursor: pointer; color: var(--muted); }
.drawer-body { flex: 1; overflow-y: auto; padding: 18px 22px; }
.drawer-footer { padding: 20px 22px; border-top: 1px solid var(--line); }

.cart-line {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.cart-line img { width: 64px; height: 64px; object-fit: contain; background: #fdeef4; border-radius: 10px; padding: 6px; }
.cart-line .meta { flex: 1; }
.cart-line .meta h4 { margin: 0 0 4px; font-size: 13.5px; font-weight: 700; }
.cart-line .meta small { color: var(--muted); font-size: 12px; }
.cart-line .qty-row { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.qty-btn { width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 15px; }
.cart-line .remove { background: none; border: none; color: var(--pink-text); font-size: 12px; font-weight: 700; cursor: pointer; margin-left: auto; padding: 10px 4px; }
.cart-line .line-price { font-weight: 800; font-size: 14px; align-self: flex-start; }

.summary-row { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 8px; color: var(--muted); }
.summary-row.total { color: var(--ink); font-weight: 800; font-size: 17px; margin-top: 10px; }

/* ---------- Product modal ---------- */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(26,10,16,0.55);
  z-index: 70;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: #fff;
  border-radius: 22px;
  max-width: 880px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
}
.modal-close {
  position: absolute; top: 14px; right: 14px;
  background: #fff; border: 1px solid var(--line);
  width: 34px; height: 34px; border-radius: 999px;
  cursor: pointer; font-size: 16px; z-index: 2;
}
.modal-image {
  background: linear-gradient(160deg, #fdeef4, #fff);
  display: flex; align-items: center; justify-content: center;
  padding: 30px;
}
.modal-image img { max-height: 420px; }
.modal-body { padding: 34px 34px 34px 10px; }
.modal-body .art { font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--muted); letter-spacing: 0.05em; }
.modal-body h2 { margin: 8px 0 12px; font-size: 24px; }
.modal-body .price { font-size: 22px; font-weight: 800; color: var(--deep); margin-bottom: 20px; }
.option-group { margin-bottom: 20px; }
.option-group label { display: block; font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); margin-bottom: 8px; }
.option-list { display: flex; flex-wrap: wrap; gap: 8px; }
.option-pill {
  border: 1.5px solid var(--line);
  padding: 7px 15px;
  min-height: 44px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  background: #fff;
  display: inline-flex;
  align-items: center;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}
.option-pill:hover { border-color: var(--pink-text); transform: translateY(-1px); }
.option-pill.selected { border-color: var(--pink); background: var(--pink-pale); color: var(--deep); }
.modal-add { width: 100%; justify-content: center; margin-top: 6px; }

/* ---------- Footer ---------- */
footer {
  background: var(--deep);
  color: rgba(255,245,248,0.75);
  padding: 56px 0 30px;
  margin-top: 60px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 40px;
}
.footer-grid h4 { color: #fff; font-size: 14px; margin: 0 0 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; font-size: 13.5px; }
.footer-grid a { text-decoration: none; color: inherit; }
.footer-grid a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  flex-wrap: wrap;
  gap: 10px;
}

.checkout-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  animation: checkout-spin 0.7s linear infinite;
}
.btn-primary.is-loading .checkout-spinner { display: inline-block; }
.btn-primary.is-loading #checkout-btn-label { opacity: 0.85; }
@keyframes checkout-spin { to { transform: rotate(360deg); } }

.checkout-error {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fdeef4;
  border: 1px solid var(--pink-pale);
  color: var(--deep);
  font-size: 13px;
  line-height: 1.5;
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--deep);
  color: #fff;
  padding: 14px 22px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  z-index: 80;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s;
  box-shadow: var(--shadow);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.menu-toggle { display: none; font-size: 20px; }

.mobile-nav {
  display: none;
  flex-direction: column;
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 14px 24px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:active { background: rgba(249, 26, 130, 0.08); }

@media (max-width: 880px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 420px; margin: 0 auto; }
  nav.main-nav { display: none; }
  .menu-toggle { display: flex; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .bereich-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .modal { grid-template-columns: 1fr; }
  .filter-bar-2 { flex-direction: column; align-items: stretch; }
  .filter-bar-2 .select-box { width: 100%; }
  .search-box { margin-left: 0; width: 100%; }
  .search-box input { width: 100%; box-sizing: border-box; }
}
