/* ═══════════════════════════════════════════════════════════════════
   ISSEL PHARMA — Design-System „Apotheke trifft Natur"
   Shared Tokens + Komponenten (alle Seiten)
   ═══════════════════════════════════════════════════════════════════ */

:root {
  --ink: #1D2B20;
  --ink-soft: #2A3A2F;
  --body: #33413A;
  --muted: #5D6B61;
  --leaf: #61951C;
  --leaf-soft: #7CB32E;
  --action: #4C7A15;
  --action-hover: #3E6511;
  --gold: #AC924D;
  --gold-ink: #7D6832;
  --paper: #FBFBF7;
  --card: #FFFFFF;
  --sage: #EEF3E5;
  --sage-deep: #DFE9CE;
  --line: #E2E6DB;
  --line-dark: rgba(255,255,255,.16);

  --font-display: "Spectral", Georgia, serif;
  --font-body: "Manrope", -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Spline Sans Mono", "SF Mono", Menlo, monospace;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(29,43,32,.05), 0 8px 28px rgba(29,43,32,.08);
  --shadow-lift: 0 2px 4px rgba(29,43,32,.06), 0 18px 44px rgba(29,43,32,.14);
  --ease-spring: cubic-bezier(.22,1.1,.35,1);
  --wrap: 1200px;
}

/* ── Reset ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--action); text-decoration: none; }
a:hover { color: var(--action-hover); }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--leaf); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--sage-deep); color: var(--ink); }

h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; }
p { margin: 0 0 1em; }

/* ── Layout ─────────────────────────────────────────────────────── */
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
.section { padding-block: clamp(56px, 8vw, 104px); }
.section--tight { padding-block: clamp(36px, 5vw, 64px); }
.section--sage { background: var(--sage); }
.section--ink { background: var(--ink); color: #E8EDE4; }
.section--ink h2, .section--ink h3 { color: #fff; }

.section-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--split { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.section-head--split > div { max-width: 640px; }

/* ── Typografie ─────────────────────────────────────────────────── */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--action);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--leaf); flex: none; }
.eyebrow--bare::before { display: none; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--center .eyebrow::after { content: ""; width: 26px; height: 1px; background: var(--leaf); flex: none; }

.h-display {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -.01em;
  font-size: clamp(30px, 4vw, 44px);
}
.h-display em { font-style: italic; color: var(--action); }
.lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--muted); max-width: 62ch; }

/* ── Buttons ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 26px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.2;
  transition: background .2s, color .2s, border-color .2s, box-shadow .25s, transform .25s var(--ease-spring);
  cursor: pointer;
  text-align: center;
}
.btn svg { width: 19px; height: 19px; flex: none; }
.btn--primary { background: var(--action); color: #fff; box-shadow: 0 6px 18px rgba(76,122,21,.28); }
.btn--primary:hover { background: var(--action-hover); color: #fff; transform: translateY(-1px); box-shadow: 0 10px 24px rgba(76,122,21,.34); }
.btn--ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--action); color: var(--action); background: #fff; }
.section--ink .btn--ghost { border-color: var(--line-dark); color: #fff; }
.section--ink .btn--ghost:hover { border-color: var(--leaf-soft); color: var(--leaf-soft); background: transparent; }
.btn--gold { background: var(--gold); color: #fff; }
.btn--gold:hover { background: #97803F; color: #fff; }
.btn--lg { min-height: 56px; padding: 15px 34px; font-size: 17px; }
.btn--block { width: 100%; }

/* ── Etikett (Signatur: Arzneimittel-Datenband) ─────────────────── */
.etikett {
  font-family: var(--font-mono);
  font-size: 13.5px;
  letter-spacing: .06em;
  color: var(--muted);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 10px 2px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 0;
  align-items: center;
}
.etikett span { display: inline-flex; align-items: center; }
.etikett span + span::before { content: "·"; margin-inline: 12px; color: var(--leaf); }
.etikett strong { color: var(--ink); font-weight: 500; }
.etikett--card { font-size: 12px; padding: 8px 0 0; border-bottom: 0; letter-spacing: .04em; }
.etikett--card span + span::before { margin-inline: 8px; }

/* ── Apotheker-Bogen ────────────────────────────────────────────── */
.arch { border-radius: 999px 999px 20px 20px; overflow: hidden; }
.arch--soft { border-radius: 28px 28px 20px 20px; overflow: hidden; }
.arch img, .arch--soft img { width: 100%; height: 100%; object-fit: cover; }

/* ── Topbar ─────────────────────────────────────────────────────── */
.topbar { background: var(--ink); color: #D9E2D3; font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .05em; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.topbar__usps { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.topbar__usps li { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.topbar__usps svg { width: 14px; height: 14px; color: var(--leaf-soft); flex: none; }
.topbar a { color: #fff; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.topbar a svg { width: 14px; height: 14px; color: var(--leaf-soft); }
.topbar a:hover { color: var(--leaf-soft); }
@media (max-width: 860px) { .topbar__usps li:nth-child(n+2) { display: none; } }
@media (max-width: 620px) {
  .topbar__usps { display: none; }
  .topbar .wrap { justify-content: center; }
}

/* ── Header ─────────────────────────────────────────────────────── */
.site-header { background: #fff; position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); transition: box-shadow .25s; }
.site-header.is-stuck { box-shadow: 0 6px 24px rgba(29,43,32,.09); }
.site-header__main { display: flex; align-items: center; gap: clamp(16px, 3vw, 40px); padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand img { height: 46px; width: auto; }
.brand__claim { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); border-left: 1px solid var(--line); padding-left: 12px; line-height: 1.5; }
@media (max-width: 640px) { .brand__claim { display: none; } .brand img { height: 40px; } }

.search { flex: 1; display: flex; align-items: center; gap: 10px; background: var(--paper); border: 1.5px solid var(--line); border-radius: 999px; padding: 0 8px 0 18px; min-height: 48px; transition: border-color .2s; }
.search:focus-within { border-color: var(--leaf); }
.search svg { width: 19px; height: 19px; color: var(--muted); flex: none; }
.search input { flex: 1; border: 0; background: transparent; font: inherit; font-size: 16px; color: var(--ink); outline: none; min-width: 0; }
.search input::placeholder { color: var(--muted); }
.search .btn { min-height: 38px; padding: 8px 20px; font-size: 14.5px; box-shadow: none; }
@media (max-width: 860px) { .search { display: none; } }

.header-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.header-action { display: inline-flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 12px; border-radius: 12px; color: var(--ink); font-size: 12px; font-weight: 600; min-width: 58px; position: relative; transition: background .2s; }
.header-action:hover { background: var(--sage); color: var(--ink); }
.header-action svg { width: 22px; height: 22px; }
.header-action .count { position: absolute; top: 3px; right: 9px; background: var(--action); color: #fff; font-size: 11px; font-weight: 800; min-width: 18px; height: 18px; border-radius: 999px; display: grid; place-items: center; padding-inline: 4px; }

/* ── Hauptnavigation ────────────────────────────────────────────── */
.mainnav { border-top: 1px solid var(--line); }
.mainnav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; }
.mainnav ul::-webkit-scrollbar { display: none; }
.mainnav a { display: inline-flex; align-items: center; gap: 8px; padding: 13px 16px; font-weight: 700; font-size: 15.5px; color: var(--ink); border-bottom: 3px solid transparent; white-space: nowrap; transition: color .2s, border-color .2s; }
.mainnav a:hover { color: var(--action); }
.mainnav a[aria-current="page"] { color: var(--action); border-bottom-color: var(--leaf); }
.mainnav a svg { width: 16px; height: 16px; color: var(--leaf); }

/* ── Breadcrumb ─────────────────────────────────────────────────── */
.crumbs { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .05em; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; padding-block: 18px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--action); }
.crumbs svg { width: 13px; height: 13px; color: var(--leaf); }
.crumbs [aria-current] { color: var(--ink); }

/* ── Produktkarte ───────────────────────────────────────────────── */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 22px; }
.pcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 20px; display: flex; flex-direction: column; position: relative; transition: box-shadow .3s, transform .3s var(--ease-spring), border-color .3s; }
.pcard:hover { box-shadow: var(--shadow-lift); transform: translateY(-4px); border-color: var(--sage-deep); }
.pcard__badge { position: absolute; top: 14px; left: 14px; z-index: 2; font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; background: var(--ink); color: #fff; border-radius: 999px; padding: 5px 12px; }
.pcard__badge--gold { background: var(--gold); }
.pcard__media { border-radius: var(--radius-sm); overflow: hidden; background: #fff; aspect-ratio: 1; display: grid; place-items: center; margin-bottom: 14px; }
.pcard__media img { width: 82%; height: 82%; object-fit: contain; transition: transform .45s var(--ease-spring); }
.pcard:hover .pcard__media img { transform: scale(1.06); }
.pcard__cat { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--action); margin-bottom: 4px; }
.pcard__name { font-family: var(--font-display); font-size: 20px; font-weight: 600; margin: 0 0 2px; }
.pcard__name a { color: var(--ink); }
.pcard__name a:hover { color: var(--action); }
.pcard__form { font-size: 14px; color: var(--muted); margin: 0 0 10px; }
.pcard__rating { display: flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 700; color: var(--gold-ink); margin-bottom: 10px; }
.pcard__rating svg { width: 15px; height: 15px; color: var(--gold); }
.pcard__price { display: flex; align-items: baseline; gap: 8px; margin-top: auto; }
.pcard__price strong { font-size: 22px; font-weight: 800; color: var(--ink); }
.pcard__price small { font-size: 12.5px; color: var(--muted); }
.pcard .etikett--card { margin-top: 12px; }
.pcard__cta { margin-top: 14px; }
.pcard__cta .btn { width: 100%; min-height: 46px; padding-block: 10px; font-size: 15px; }

/* ── Trust / USP ────────────────────────────────────────────────── */
.trust-row { display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: center; }
.trust-row span { display: inline-flex; align-items: center; gap: 9px; font-size: 14.5px; font-weight: 600; color: var(--ink-soft); }
.trust-row svg { width: 18px; height: 18px; color: var(--leaf); flex: none; }
.trust-row .stars, .trust-row .stars svg { color: var(--gold); }

.usp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.usp-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; }
.usp-list svg { width: 20px; height: 20px; color: var(--leaf); flex: none; margin-top: 3px; }
.usp-list strong { color: var(--ink); }

/* ── Wirkstoff-Ticker ───────────────────────────────────────────── */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: #fff; padding-block: 13px; }
.marquee__track { display: flex; gap: 0; width: max-content; animation: marquee 36s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track > span { font-family: var(--font-mono); font-size: 13.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); display: inline-flex; align-items: center; white-space: nowrap; }
.marquee__track > span::after { content: "✦"; color: var(--leaf); margin-inline: 26px; font-size: 11px; }
.marquee__track strong { color: var(--ink); font-weight: 500; margin-right: 6px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── Formulare ──────────────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-weight: 700; font-size: 14.5px; color: var(--ink); }
.field input, .field select {
  min-height: 50px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: 10px 16px; font: inherit; font-size: 16px; color: var(--ink); background: #fff;
  transition: border-color .2s;
}
.field input:focus, .field select:focus { border-color: var(--leaf); outline: none; }

.qty { display: inline-flex; align-items: stretch; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; background: #fff; }
.qty button { width: 46px; border: 0; background: transparent; color: var(--ink); font-size: 20px; font-weight: 700; display: grid; place-items: center; transition: background .2s; }
.qty button:hover { background: var(--sage); }
.qty input { width: 52px; border: 0; text-align: center; font: inherit; font-weight: 800; font-size: 17px; color: var(--ink); -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }

.chip-group { display: flex; flex-wrap: wrap; gap: 10px; }
.chip-group label { position: relative; cursor: pointer; }
.chip-group input { position: absolute; opacity: 0; pointer-events: none; }
.chip-group .chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 10px 20px;
  border: 1.5px solid var(--line); border-radius: 999px; font-weight: 700; font-size: 15px;
  color: var(--ink); background: #fff; transition: border-color .2s, background .2s, color .2s;
}
.chip-group label:hover .chip { border-color: var(--leaf); }
.chip-group input:checked + .chip { border-color: var(--action); background: var(--sage); color: var(--action); }
.chip-group input:focus-visible + .chip { outline: 3px solid var(--leaf); outline-offset: 2px; }
.chip small { font-weight: 600; color: var(--muted); }

/* ── Reveal-Animationen ─────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .8s var(--ease-spring); }
.reveal.in { opacity: 1; transform: none; }
.stagger > * { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .8s var(--ease-spring); }
.stagger.in > * { opacity: 1; transform: none; }
.stagger.in > *:nth-child(1) { transition-delay: 0s; }
.stagger.in > *:nth-child(2) { transition-delay: .09s; }
.stagger.in > *:nth-child(3) { transition-delay: .18s; }
.stagger.in > *:nth-child(4) { transition-delay: .27s; }
.stagger.in > *:nth-child(5) { transition-delay: .36s; }
.stagger.in > *:nth-child(6) { transition-delay: .45s; }
.stagger.in > *:nth-child(7) { transition-delay: .54s; }
.stagger.in > *:nth-child(8) { transition-delay: .63s; }

/* ── Footer ─────────────────────────────────────────────────────── */
.site-footer { background: var(--ink); color: #C7D2C3; font-size: 15px; }
.site-footer a { color: #E8EDE4; }
.site-footer a:hover { color: var(--leaf-soft); }
.footer-main { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: clamp(28px, 4vw, 56px); padding-block: clamp(44px, 6vw, 72px); }
.footer-brand__logo { background: #fff; border-radius: 12px; padding: 10px 14px; display: inline-block; margin-bottom: 18px; }
.footer-brand__logo img { height: 40px; }
.footer-col h3 { color: #fff; font-family: var(--font-mono); font-size: 12.5px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 18px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-phone { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-phone svg { width: 20px; height: 20px; color: var(--leaf-soft); flex: none; }
.footer-phone strong { display: block; color: #fff; font-size: 17px; }
.footer-phone small { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: #97A697; }
.footer-note { font-size: 13.5px; color: #97A697; line-height: 1.6; }
.pay-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.pay-chips span { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .06em; border: 1px solid var(--line-dark); border-radius: 8px; padding: 5px 10px; color: #C7D2C3; }
.footer-legal { border-top: 1px solid var(--line-dark); padding-block: 22px; display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between; font-size: 13.5px; color: #97A697; }
.footer-legal ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0; padding: 0; }
.footer-legal a { color: #C7D2C3; }
@media (max-width: 960px) { .footer-main { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-main { grid-template-columns: 1fr; } }

/* ── Utilities ──────────────────────────────────────────────────── */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 0 0 12px 0; z-index: 100; }
.skip-link:focus { left: 0; }

/* ── Reduced Motion ─────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal, .stagger > * { opacity: 1; transform: none; }
  .marquee__track { animation: none; }
}
