/* ============================================================
   ELVA — Design System (Pharma Edition)
   ============================================================ */
:root {
  --navy-900: #0d1f3c;
  --navy-800: #16335e;
  --navy-600: #2b5da9;
  --accent:   #4f7fbe;
  --steel:    #7d8da3;
  --blue-100: #e1eaf6;
  --blue-50:  #f2f6fb;
  --gold-500: #c79a4b;
  --gold-100: #f3ead8;
  --ink-900:  #1c2430;
  --ink-600:  #54606f;
  --ink-400:  #8b97a6;
  --bg:       #f7f9fc;
  --white:    #ffffff;
  --line:     #e2e8f0;
  --radius:    18px;
  --radius-sm: 12px;
  --shadow:    0 10px 35px rgba(13, 31, 60, .08);
  --shadow-lg: 0 25px 60px rgba(13, 31, 60, .16);
  --font-head: "Inter", sans-serif;
  --font-body: "Inter", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* [hidden] zuverlässig durchsetzen (sonst überschreiben display-Regeln es) */
[hidden] { display: none !important; }

body {
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.12; font-weight: 700; color: var(--navy-900); }
h1 { font-size: clamp(2.5rem, 5.2vw, 4rem); letter-spacing: -.025em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); letter-spacing: -.015em; }
h3 { font-size: 1.15rem; }
p  { color: var(--ink-600); }
a  { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container { width: min(1180px, 92%); margin-inline: auto; }
.container--narrow { width: min(820px, 92%); }

/* ---------- Icons ---------- */
.icon {
  width: 1.1em; height: 1.1em; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
  vertical-align: -.16em;
}
.icon--gold { color: var(--gold-500); }
.icon--accent { color: var(--accent); }

/* ---------- Buttons & Badges ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .95rem 1.8rem; border-radius: 999px;
  font-weight: 600; font-size: .96rem; transition: all .25s ease;
}
.btn--primary { background: var(--navy-800); color: #fff; box-shadow: 0 8px 22px rgba(22, 51, 94, .3); }
.btn--primary:hover { background: var(--navy-600); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(22, 51, 94, .38); }
.btn--ghost { border: 1.5px solid var(--line); background: var(--white); color: var(--ink-900); }
.btn--ghost:hover { border-color: var(--navy-600); color: var(--navy-600); }
.btn--dark { background: var(--ink-900); color: #fff; }
.btn--dark:hover { background: var(--navy-800); }
.btn--full { width: 100%; justify-content: center; }

.badge {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .4rem 1.05rem; border-radius: 999px;
  background: var(--blue-100); color: var(--navy-800);
  font-size: .8rem; font-weight: 600; letter-spacing: .02em; margin-bottom: 1rem;
}
.badge--light { background: rgba(255,255,255,.93); box-shadow: var(--shadow); }
.badge--gold { background: var(--gold-100); color: #8a5d1c; }

/* ---------- Ankündigung & Header ---------- */
.announce {
  background: var(--navy-900); color: #c9d7ea;
  font-size: .82rem; padding: .55rem 0;
  overflow: hidden;
}
.announce__track { display: flex; }
/* Jede Gruppe ist mind. bildschirmbreit → lückenlos auf jeder Breite.
   Beide Gruppen laufen synchron von -100% auf 0 = von links nach rechts. */
.announce__set {
  flex-shrink: 0; min-width: 100%;
  color: inherit; margin: 0; white-space: nowrap;
  display: flex; align-items: center; justify-content: space-around; gap: 1.8rem;
  padding: 0 .9rem;
  animation: announce-marquee 22s linear infinite;
}
.announce:hover .announce__set { animation-play-state: paused; }
.announce span { display: inline-flex; align-items: center; gap: .45rem; }
@keyframes announce-marquee {
  from { transform: translateX(-100%); }
  to   { transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
  .announce__set { animation: none; transform: none; }
}

.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 249, 252, .85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.header.is-scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(13,31,60,.06); }
/* Bei offenem Mobil-Menü den Header über das Overlay heben, damit das Menü sichtbar ist */
.header.nav-open { z-index: 200; }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 1rem; }

.logo { display: flex; align-items: center; }
.logo__img { height: 44px; width: auto; }
.logo--light .logo__img { filter: brightness(0) invert(1); opacity: .95; }

.nav { display: flex; gap: 2rem; }
.nav__link { font-weight: 500; font-size: .94rem; color: var(--ink-600); transition: color .2s; }
.nav__link:hover { color: var(--navy-800); }

.header__actions { display: flex; align-items: center; gap: .8rem; }
.cart-btn { position: relative; color: var(--ink-900); padding: .45rem; border-radius: 50%; transition: background .2s; }
.cart-btn:hover { background: var(--blue-100); }
.cart-btn__count {
  position: absolute; top: -2px; right: -4px;
  min-width: 19px; height: 19px; padding: 0 5px;
  background: var(--accent); color: #fff;
  border-radius: 999px; font-size: .7rem; font-weight: 700;
  display: grid; place-items: center;
}
.burger { display: none; flex-direction: column; gap: 5px; padding: .5rem; }
.burger span { width: 22px; height: 2px; background: var(--ink-900); border-radius: 2px; transition: .3s; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(900px 500px at 85% -10%, var(--blue-100), transparent 60%),
    radial-gradient(700px 420px at -10% 110%, #e7edf5, transparent 55%);
  padding: clamp(3rem, 8vw, 6.5rem) 0;
  overflow: hidden;
}
.hero__inner { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center; }
.hero__sub { font-size: 1.12rem; margin: 1.3rem 0 1.9rem; max-width: 34rem; }
.hero__cta { display: flex; gap: .9rem; flex-wrap: wrap; }
.hero__trust { list-style: none; display: flex; gap: 1.4rem; flex-wrap: wrap; margin-top: 1.8rem; font-size: .88rem; color: var(--ink-600); font-weight: 500; }
.hero__trust li { display: inline-flex; align-items: center; gap: .45rem; }
.accent { font-style: italic; color: var(--navy-600); }

.hero__visual { position: relative; display: grid; place-items: center; min-height: 400px; }
.hero__card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.hero__card--main { padding: 1rem; transform: rotate(2deg); }
.hero__photo { width: clamp(200px, 26vw, 260px); aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius-sm); display: block; }
.hero__card--float1, .hero__card--float2 {
  position: absolute; padding: .8rem 1.2rem;
  font-size: .85rem; font-weight: 600;
  display: inline-flex; align-items: center; gap: .5rem;
  animation: float 5s ease-in-out infinite;
}
.hero__card--float1 { top: 8%; left: 0; }
.hero__card--float2 { bottom: 8%; right: 0; animation-delay: -2.5s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ---------- Produkt-Artwork (stilisierte Flakons) ---------- */
.product-art {
  width: 150px; aspect-ratio: 3/4; border-radius: 14px 14px 18px 18px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .25rem;
  font-family: var(--font-body); color: #fff; position: relative; overflow: hidden;
  text-align: center; padding-inline: .5rem;
}
.product-art::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(255,255,255,.3), transparent 45%);
}
.product-art::after {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 38%; height: 11%;
  background: rgba(8, 16, 32, .35); border-radius: 0 0 6px 6px;
}
.product-art span { font-weight: 700; font-size: .95rem; letter-spacing: .08em; z-index: 1; }
.product-art small { font-size: .56rem; letter-spacing: .2em; opacity: .9; z-index: 1; }
.product-art--lg { width: 220px; }
.product-art--lg span { font-size: 1.35rem; }
.product-art--xl { width: 240px; }
.product-art--xl span { font-size: 1.5rem; }
/* Platzhalter-Farbverläufe (nur für Produkte ohne Foto) – markenkonform in Blau/Stahl */
.product-art--navy  { background: linear-gradient(160deg, #3f6db0, #122b52); }
.product-art--rose  { background: linear-gradient(160deg, #5b86c4, #1b3a68); }
.product-art--gold  { background: linear-gradient(160deg, #e0b063, #8a5d1c); }
.product-art--peach { background: linear-gradient(160deg, #6f97cf, #244a86); }
.product-art--lilac { background: linear-gradient(160deg, #6c7fb8, #28335f); }
.product-art--sage  { background: linear-gradient(160deg, #5fa3b5, #1f5563); }
.product-art--sand  { background: linear-gradient(160deg, #8aa0bd, #3a4f74); }
.product-art--blush { background: linear-gradient(160deg, #7d93c4, #303f6e); }

/* ---------- USPs ---------- */
.usps { background: var(--white); border-block: 1px solid var(--line); padding: 2.2rem 0; }
.usps__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; }
.usp { display: flex; gap: .9rem; align-items: flex-start; }
.usp__icon {
  width: 46px; height: 46px; flex-shrink: 0;
  border-radius: 50%; background: var(--blue-100); color: var(--navy-600);
  display: grid; place-items: center;
}
.usp__icon .icon { width: 21px; height: 21px; }
.usp h3 { font-size: 1rem; margin-bottom: .15rem; }
.usp p { font-size: .85rem; }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.section--alt { background: var(--white); border-block: 1px solid var(--line); }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 2.8rem; }
.section__head p { margin-top: .8rem; }

/* ---------- Filter ---------- */
.filters { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2.4rem; }
.filter {
  padding: .55rem 1.35rem; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--white);
  font-weight: 500; font-size: .9rem; color: var(--ink-600);
  transition: all .2s;
}
.filter:hover { border-color: var(--navy-600); color: var(--navy-600); }
.filter.is-active { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }

/* ---------- Produktkarten ---------- */
.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.product {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.3rem; display: flex; flex-direction: column;
  transition: transform .25s, box-shadow .25s;
}
.product:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.product__media {
  background: var(--blue-50); border-radius: var(--radius-sm);
  display: grid; place-items: center; padding: 1.4rem 0; margin-bottom: 1rem;
  position: relative;
}
.product__media--photo { padding: 0; aspect-ratio: 1 / 1; overflow: hidden; }
.product__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product__img--broken { background: var(--blue-100); }
.product__tag {
  position: absolute; top: .7rem; left: .7rem;
  font-size: .68rem; font-weight: 700; letter-spacing: .04em;
  padding: .25rem .6rem; border-radius: 999px;
  background: var(--accent); color: #fff; text-transform: uppercase;
}
.product__tag--sale { background: #cf5151; }
.product__tag--new { background: var(--gold-500); }
.product__cat { font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-400); }
.product__name { font-size: 1.12rem; margin: .25rem 0 .3rem; }
.product__desc { font-size: .85rem; flex: 1; }
.product__rating { font-size: .8rem; color: var(--gold-500); margin-top: .5rem; font-weight: 600; }
.product__rating small { color: var(--ink-400); font-weight: 400; }
.product__rating--new { color: var(--navy-600); }
.product__row { display: flex; align-items: center; justify-content: space-between; margin-top: .9rem; }
.product__price { font-family: var(--font-head); font-weight: 600; font-size: 1.25rem; }
.product__price s { font-size: .85rem; color: var(--ink-400); font-weight: 400; margin-right: .35rem; }
.product__add {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--navy-800); color: #fff; font-size: 1.3rem;
  display: grid; place-items: center; transition: background .2s, transform .2s;
}
.product__add:hover { background: var(--navy-600); transform: scale(1.08); }

/* ---------- Bestseller ---------- */
.bestseller { background: var(--navy-900); color: #fff; padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.bestseller__inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: 3.5rem; align-items: center; }
.bestseller__visual { display: grid; place-items: center; }
.bestseller__visual .product-art { box-shadow: 0 30px 70px rgba(0,0,0,.45); transform: rotate(-3deg); }
.bestseller__photo {
  width: clamp(220px, 32vw, 300px); aspect-ratio: 4/5; object-fit: cover;
  border-radius: var(--radius); box-shadow: 0 30px 70px rgba(0,0,0,.45);
  transform: rotate(-3deg); display: block;
}
.bestseller__content h2 { color: #fff; margin-bottom: 1rem; }
.bestseller__content p { color: #b6c6de; margin-bottom: 1.4rem; }
.checklist { list-style: none; margin-bottom: 1.8rem; }
.checklist li { padding-left: 1.7rem; position: relative; margin-bottom: .55rem; color: #dbe5f2; font-size: .95rem; }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

/* ---------- Wirkstoffe / Qualität ---------- */
.quality__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.quality__card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem;
}
.quality__num { font-family: var(--font-head); font-weight: 700; font-size: 1rem; color: var(--accent); margin-bottom: .6rem; }
.quality__card h3 { margin-bottom: .45rem; }
.quality__card p { font-size: .92rem; }

/* ---------- Bewertungen ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.review {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.7rem; display: flex; flex-direction: column; gap: 1rem;
}
.review__stars { color: var(--gold-500); letter-spacing: .15em; }
.review blockquote { font-size: .95rem; color: var(--ink-600); flex: 1; }
.review figcaption { display: flex; align-items: center; gap: .8rem; }
.review__avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--blue-100); color: var(--navy-800);
  display: grid; place-items: center; font-weight: 700; font-size: .85rem;
}
.review figcaption strong { display: block; font-size: .92rem; }
.review figcaption small { color: var(--ink-400); font-size: .78rem; }

/* ---------- FAQ ---------- */
.faq__item { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: .8rem; }
.faq__item summary {
  list-style: none; cursor: pointer; padding: 1.1rem 1.4rem;
  font-weight: 600; font-size: .98rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__icon { font-size: 1.3rem; color: var(--navy-600); transition: transform .25s; flex-shrink: 0; }
.faq__item[open] .faq__icon { transform: rotate(45deg); }
.faq__item p { padding: 0 1.4rem 1.2rem; font-size: .92rem; }

/* ---------- Newsletter ---------- */
.newsletter { background: linear-gradient(135deg, var(--blue-100), var(--blue-50)); padding: 3.5rem 0; }
.newsletter__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.newsletter h2 { margin-bottom: .4rem; }
.newsletter__form { display: flex; gap: .6rem; flex-wrap: wrap; }
.newsletter__form input {
  padding: .9rem 1.3rem; border-radius: 999px; border: 1.5px solid var(--line);
  font-family: inherit; font-size: .95rem; min-width: 270px; outline: none;
  background: var(--white);
}
.newsletter__form input:focus { border-color: var(--navy-600); }

/* ---------- Footer ---------- */
.footer { background: var(--navy-900); color: #a7b8d0; padding: 3.5rem 0 2rem; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer__brand p { color: #a7b8d0; font-size: .9rem; margin-top: 1rem; max-width: 18rem; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.footer__grid a { display: block; font-size: .9rem; margin-bottom: .55rem; transition: color .2s; }
.footer__grid a:hover { color: #fff; }
.footer__bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1.6rem; font-size: .8rem; }
.footer__bottom p { color: #8da0bc; }
.footer__note { font-style: italic; }
.footer__credit { width: 100%; text-align: center; padding-top: 1rem; margin-top: .6rem; border-top: 1px solid rgba(255,255,255,.08); }
.footer__credit a { color: #c7d4e6; font-weight: 600; transition: color .2s; }
.footer__credit a:hover { color: #fff; }

/* ---------- Warenkorb-Drawer ---------- */
.overlay {
  position: fixed; inset: 0; background: rgba(8, 18, 36, .55);
  opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 90;
}
.overlay.is-open { opacity: 1; pointer-events: auto; }

.cart {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%);
  background: var(--white); z-index: 100;
  transform: translateX(105%); transition: transform .35s cubic-bezier(.22,1,.36,1);
  display: flex; flex-direction: column; box-shadow: -20px 0 60px rgba(0,0,0,.15);
}
.cart.is-open { transform: translateX(0); }
.cart__head { display: flex; justify-content: space-between; align-items: center; padding: 1.3rem 1.5rem; border-bottom: 1px solid var(--line); }
.cart__close { font-size: 1.1rem; color: var(--ink-600); padding: .4rem; }
.cart__shipping { padding: 1rem 1.5rem; background: var(--blue-50); font-size: .85rem; }
.cart__progress { height: 6px; background: var(--line); border-radius: 99px; margin-top: .55rem; overflow: hidden; }
.cart__progress-fill { height: 100%; width: 0%; background: var(--accent); border-radius: 99px; transition: width .4s; }
.cart__items { flex: 1; overflow-y: auto; padding: 1rem 1.5rem; }
.cart__empty { text-align: center; color: var(--ink-400); padding: 3rem 1rem; font-size: .95rem; }
.cart__empty .icon { width: 30px; height: 30px; margin-bottom: .4rem; }
.cart-item { display: flex; gap: .9rem; padding: .9rem 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-item__art { flex-shrink: 0; }
.cart-item__art .product-art { width: 54px; border-radius: 6px 6px 8px 8px; }
.cart-item__art .product-art span { font-size: .4rem; letter-spacing: .04em; }
.cart-item__art .product-art small { display: none; }
.cart-item__art .product__img { width: 54px; height: 54px; border-radius: 8px; }
.cart-item__info { flex: 1; min-width: 0; }
.cart-item__name { font-weight: 600; font-size: .9rem; }
.cart-item__price { font-size: .85rem; color: var(--ink-600); }
.cart-item__qty { display: flex; align-items: center; gap: .55rem; }
.cart-item__qty button {
  width: 26px; height: 26px; border-radius: 50%;
  border: 1.5px solid var(--line); font-size: .95rem;
  display: grid; place-items: center; transition: all .2s;
}
.cart-item__qty button:hover { border-color: var(--navy-600); color: var(--navy-600); }
.cart-item__remove { color: var(--ink-400); font-size: .8rem; margin-left: .4rem; }
.cart-item__remove:hover { color: #cf5151; }
.cart__foot { padding: 1.3rem 1.5rem; border-top: 1px solid var(--line); }
.cart__total { display: flex; justify-content: space-between; font-size: 1.05rem; margin-bottom: 1rem; }
.cart__hint { text-align: center; font-size: .75rem; color: var(--ink-400); margin-top: .7rem; }

/* Warenkorb-/Checkout-Ansichten */
.cart__main { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.checkout { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.checkout__scroll { flex: 1; overflow-y: auto; padding: 1.2rem 1.5rem; }
.checkout__back { color: var(--navy-600); font-weight: 600; font-size: .85rem; margin-bottom: 1rem; }
.checkout__back:hover { text-decoration: underline; }
.checkout h4 { font-size: 1.05rem; margin-bottom: 1rem; }
.field2 { display: flex; flex-direction: column; gap: .3rem; margin-bottom: .9rem; }
.field2 label { font-size: .82rem; font-weight: 600; color: var(--ink-600); }
.field2 label span { color: #cf5151; }
.field2 input, .field2 textarea {
  padding: .7rem .9rem; border-radius: var(--radius-sm); border: 1.5px solid var(--line);
  font-family: inherit; font-size: .92rem; outline: none; background: var(--white); width: 100%;
}
.field2 input:focus, .field2 textarea:focus { border-color: var(--navy-600); }
.field2 textarea { resize: vertical; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 1.6rem; left: 50%;
  transform: translate(-50%, 200%);
  opacity: 0; visibility: hidden;
  background: var(--ink-900); color: #fff;
  padding: .85rem 1.5rem; border-radius: 999px;
  font-size: .9rem; font-weight: 500;
  transition: transform .35s cubic-bezier(.22,1,.36,1), opacity .3s ease, visibility .35s;
  z-index: 110; box-shadow: var(--shadow-lg);
  max-width: 90%; text-align: center;
}
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; visibility: visible; }

/* ---------- Produkt-Detail-Popup ---------- */
.product { cursor: pointer; }

.pmodal-overlay {
  position: fixed; inset: 0; background: rgba(8, 18, 36, .55);
  opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 115;
}
.pmodal-overlay.is-open { opacity: 1; pointer-events: auto; }

.pmodal {
  position: fixed; top: 50%; left: 50%;
  width: min(900px, 94vw); max-height: 90vh;
  transform: translate(-50%, -48%) scale(.98); opacity: 0; pointer-events: none;
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); z-index: 120; overflow: hidden;
  transition: opacity .25s ease, transform .25s ease;
}
.pmodal.is-open { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%) scale(1); }

.pmodal__close {
  position: absolute; top: .8rem; right: .8rem; z-index: 3;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255, 255, 255, .92); color: var(--ink-900);
  display: grid; place-items: center; font-size: 1rem; box-shadow: var(--shadow);
  transition: background .2s, color .2s;
}
.pmodal__close:hover { background: #fff; color: var(--navy-600); }

.pmodal__inner { display: grid; grid-template-columns: 1fr 1fr; max-height: 90vh; }

.pmodal__media { position: relative; background: var(--blue-50); display: grid; place-items: center; padding: clamp(1rem, 3vw, 1.8rem); }
.pmodal__media .product__tag { position: absolute; top: 1rem; left: 1rem; z-index: 2; }
/* Quadratisch & vollständig sichtbar – kein Strecken/Abschneiden mehr */
.pmodal__img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius-sm); display: block; }

.pmodal__body { padding: 1.8rem; overflow-y: auto; max-height: 90vh; }
.pmodal__body h2 { margin: .2rem 0 .5rem; }
.pmodal__rating { color: var(--gold-500); font-weight: 600; font-size: .9rem; }
.pmodal__rating span { color: var(--ink-400); font-weight: 400; }
.pmodal__rating--new { color: var(--navy-600); }
.pmodal__price { font-family: var(--font-head); font-weight: 700; font-size: 1.6rem; margin: .6rem 0 .9rem; }
.pmodal__price s { font-size: 1rem; color: var(--ink-400); font-weight: 400; margin-right: .4rem; }
.pmodal__desc { font-size: .95rem; margin-bottom: 1.2rem; }
.pmodal__sec { margin-bottom: 1.1rem; }
.pmodal__sec h3 { font-size: .95rem; margin-bottom: .45rem; }
.pmodal__sec p { font-size: .9rem; }
.pmodal__list { list-style: none; display: flex; flex-direction: column; gap: .38rem; }
.pmodal__list li { position: relative; padding-left: 1.4rem; font-size: .9rem; color: var(--ink-600); }
.pmodal__list li::before { content: "✓"; position: absolute; left: 0; color: var(--navy-600); font-weight: 700; }
.pmodal__features {
  list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.1rem;
  margin: 1rem 0 1.3rem; padding: 1rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.pmodal__features li { display: inline-flex; align-items: center; gap: .4rem; font-size: .82rem; color: var(--ink-600); font-weight: 500; }
.pmodal__buy { display: flex; gap: .8rem; align-items: stretch; }
.pmodal__qty { display: flex; align-items: center; gap: .15rem; border: 1.5px solid var(--line); border-radius: 999px; padding: .2rem; flex-shrink: 0; }
.pmodal__qty button { width: 36px; height: 36px; border-radius: 50%; font-size: 1.15rem; color: var(--ink-900); display: grid; place-items: center; transition: background .2s; }
.pmodal__qty button:hover { background: var(--blue-100); color: var(--navy-600); }
.pmodal__qty span { min-width: 26px; text-align: center; font-weight: 600; }
.pmodal__buy .btn { flex: 1; white-space: nowrap; }
.pmodal__ship { font-size: .8rem; color: var(--ink-400); margin-top: .9rem; display: flex; align-items: center; gap: .4rem; }

@media (max-width: 760px) {
  .pmodal { width: 96vw; max-height: 92vh; overflow-y: auto; }
  .pmodal__inner { grid-template-columns: 1fr; max-height: none; }
  .pmodal__img { max-width: 340px; margin-inline: auto; }
  .pmodal__body { max-height: none; overflow: visible; padding: 1.4rem; }
}

/* ---------- PWA: Installieren-Button ---------- */
.install-btn {
  position: fixed; left: 1rem; bottom: calc(1.1rem + env(safe-area-inset-bottom, 0px));
  z-index: 80; display: inline-flex; align-items: center; gap: .45rem;
  background: var(--navy-800); color: #fff; font-weight: 600; font-size: .88rem;
  padding: .7rem 1.1rem; border-radius: 999px; box-shadow: var(--shadow-lg);
  animation: install-in .4s ease;
}
.install-btn:hover { background: var(--navy-600); }
@keyframes install-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- App-Modus: Safe-Area (Notch / Home-Indicator) ---------- */
.announce { padding-top: calc(.55rem + env(safe-area-inset-top, 0px)); }
.toast { bottom: calc(1.6rem + env(safe-area-inset-bottom, 0px)); }
/* angenehmeres Tap-Verhalten auf Touch-Geräten */
a, button, .filter, .product, summary { -webkit-tap-highlight-color: transparent; }

/* ---------- Scroll-Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .products { grid-template-columns: repeat(3, 1fr); }
  .usps__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  /* Weichzeichner entfernen: sonst wird das fix-positionierte Menü am Header
     ausgerichtet und abgeschnitten (durchsichtige Menü-Fläche). */
  .header { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }

  .nav {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(300px, 80%);
    background: var(--white); flex-direction: column; gap: 0;
    padding: 5.5rem 2rem 2rem; box-shadow: -20px 0 60px rgba(0,0,0,.12);
    transform: translateX(105%); transition: transform .35s cubic-bezier(.22,1,.36,1);
    z-index: 95;
  }
  .nav.is-open { transform: translateX(0); }
  .nav__link { padding: .9rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .burger { display: flex; z-index: 96; }
  .burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger.is-open span:nth-child(2) { opacity: 0; }
  .burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { min-height: 320px; }
  .bestseller__inner { grid-template-columns: 1fr; gap: 2.5rem; text-align: center; }
  .checklist { text-align: left; display: inline-block; }
  .products { grid-template-columns: repeat(2, 1fr); }
  .reviews { grid-template-columns: 1fr; }
  .quality__grid { grid-template-columns: 1fr; }
  .newsletter__inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .products { grid-template-columns: 1fr; }
  .usps__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__cta .btn { width: 100%; justify-content: center; }
  .newsletter__form input { min-width: 0; width: 100%; }
  .newsletter__form { width: 100%; }
  .newsletter__form .btn { width: 100%; justify-content: center; }
}

/* ============================================================
   Altersverifikation (18+) — Eingangs-Popup
   ============================================================ */
.agegate {
  position: fixed; inset: 0; z-index: 2000;
  display: grid; place-items: center; padding: 1.2rem;
  background: linear-gradient(160deg, rgba(13,31,60,.92), rgba(22,51,94,.96));
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility .35s ease;
}
.agegate.is-open { opacity: 1; visibility: visible; }
.agegate[hidden] { display: none !important; }

.agegate__card {
  width: min(440px, 100%);
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); text-align: center;
  padding: clamp(1.8rem, 5vw, 2.6rem) clamp(1.4rem, 5vw, 2.4rem);
  transform: translateY(14px) scale(.98); transition: transform .35s ease;
}
.agegate.is-open .agegate__card { transform: translateY(0) scale(1); }

.agegate__logo { height: 38px; width: auto; margin: 0 auto 1.4rem; display: block; }
.agegate__badge {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--navy-600); background: var(--blue-50);
  padding: .4rem .85rem; border-radius: 999px; margin-bottom: 1.1rem;
}
.agegate__ring {
  width: 78px; height: 78px; margin: 0 auto 1.2rem;
  border-radius: 50%; display: grid; place-items: center;
  background: var(--navy-800); color: #fff;
  font-family: var(--font-head); font-weight: 800; font-size: 1.45rem; letter-spacing: -.02em;
  box-shadow: 0 10px 26px rgba(22,51,94,.35);
}
.agegate__card h2 { font-size: 1.5rem; margin-bottom: .55rem; }
.agegate__card p  { font-size: .95rem; color: var(--ink-600); margin-bottom: 1.6rem; }

.agegate__actions { display: grid; gap: .7rem; }
.agegate__btn {
  width: 100%; padding: .95rem 1.2rem; border-radius: 999px;
  font-family: var(--font-head); font-weight: 700; font-size: 1rem;
  cursor: pointer; transition: transform .15s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}
.agegate__btn:active { transform: scale(.98); }
.agegate__btn--yes {
  background: var(--navy-800); color: #fff; border: 1.5px solid var(--navy-800);
  box-shadow: 0 8px 22px rgba(22,51,94,.28);
}
.agegate__btn--yes:hover { background: var(--navy-900); }
.agegate__btn--no {
  background: transparent; color: var(--ink-600); border: 1.5px solid var(--line);
}
.agegate__btn--no:hover { border-color: var(--steel); color: var(--ink-900); }

.agegate__note {
  margin: 1.3rem 0 0; font-size: .78rem; color: var(--ink-400); line-height: 1.5;
}

/* Abgelehnt-Zustand (unter 18) */
.agegate__denied { display: none; }
.agegate.is-denied .agegate__main   { display: none; }
.agegate.is-denied .agegate__denied { display: block; }
.agegate__denied .agegate__ring { background: var(--steel); box-shadow: none; }
