@font-face {
  font-family: "Playfair";
  src: url("fonts/playfair.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: "Playfair";
  src: url("fonts/playfair-italic.woff2") format("woff2");
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ink: #1b2638;      /* Markenfarbe Navy */
  --copper: #c7783c;   /* Markenfarbe Kupfer */
  --paper: #fff;
  --sky: #fafaf8;      /* Hintergrund wie im Logo */
  --muted: #565f6e;
  --line: #1b2638;
  --coconut: #d9741c;
  --grape: #1a78a3;
  --pineapple: #4f8a1f;
  --strawberry: #b81f52;
  --radius: 22px;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3rem;
  --step-2: 1.75rem;
  --step-3: clamp(2.4rem, 7vw, 4.6rem);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  font-size: var(--step-0);
  line-height: 1.5;
  color: var(--ink);
  background: var(--sky);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--copper);
  outline-offset: 3px;
}
h1, h2, h3, .price-tag strong, .summary tfoot td {
  font-family: "Playfair", Georgia, serif;
  font-variant-numeric: lining-nums;
}
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* Header */
.top {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 18px;
}
.brand { display: block; }
.brand img { height: 64px; width: auto; }
.top nav a { font-weight: 600; }

/* Hero */
.hero {
  display: grid; gap: 28px; align-items: center;
  grid-template-columns: 1.1fr 0.9fr;
  padding-block: 24px 56px;
}
.hero h1 {
  font-size: var(--step-3);
  line-height: 1;
  letter-spacing: -0.015em;
  font-weight: 800;
  margin: 0 0 20px;
  max-width: 11ch;
}
.hero p { font-size: var(--step-1); margin: 0 0 12px; max-width: 34ch; }
.hero .small { font-size: var(--step--1); color: var(--copper); font-weight: 600; }
.price-tag {
  display: inline-flex; align-items: baseline; gap: 10px;
  margin: 8px 0 22px;
}
.price-tag strong { font-size: var(--step-2); font-weight: 800; }
.hero-photos { justify-self: end; width: min(100%, 420px); }
.hero-photos img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 40%;
  border: 3px solid var(--ink); border-radius: var(--radius);
}

.btn {
  font: inherit; font-weight: 700; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px;
  border: 3px solid var(--ink); background: var(--ink); color: var(--paper);
  text-decoration: none;
}
.btn:hover { background: #2c3a52; border-color: #2c3a52; }
.btn[disabled] { background: #9aa6aa; border-color: #9aa6aa; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--ink); }

/* Scent picker */
.picker { padding-block: 40px 56px; }
.picker h2, .checkout h2, .info h2 {
  font-size: var(--step-2); letter-spacing: -0.02em; line-height: 1.1; margin: 0 0 8px;
}
.picker > .wrap > p { margin: 0 0 28px; color: var(--muted); max-width: 60ch; }
.scents {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 18px; grid-template-columns: repeat(4, 1fr);
}
.scent {
  --c: var(--ink);
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  padding: 14px 14px 18px;
  display: flex; flex-direction: column; gap: 10px;
  position: relative;
}
.scent[data-scent="coconut"] { --c: var(--coconut); }
.scent[data-scent="grape"] { --c: var(--grape); }
.scent[data-scent="pineapple"] { --c: var(--pineapple); }
.scent[data-scent="strawberry"] { --c: var(--strawberry); }
.scent .photo { background: #f4f4f4; border-radius: 14px; overflow: hidden; }
.scent .photo img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 56%; }
.scent h3 { margin: 4px 0 0; font-size: var(--step-1); line-height: 1.15; }
.scent .desc { margin: 0; color: var(--muted); font-size: var(--step--1); min-height: 2.6em; }
.scent .stock { margin: 0; font-size: var(--step--1); color: var(--muted); }

/* the round count badge — echoes the round air freshener */
.count {
  position: absolute; top: -14px; right: -14px; z-index: 1;
  width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--c); color: #fff;
  border: 3px solid var(--ink);
  font-weight: 800; font-size: 1.5rem;
  transform: scale(0); transition: transform .18s ease-out;
}
.scent.has-items .count { transform: scale(1); }
.scent.has-items { box-shadow: 0 0 0 4px var(--c); }

.stepper {
  display: grid; grid-template-columns: 48px 1fr 48px; align-items: center;
  border: 3px solid var(--ink); border-radius: 999px; overflow: hidden; margin-top: auto;
}
.stepper button {
  font: inherit; font-size: 1.5rem; font-weight: 700; line-height: 1;
  height: 46px; border: 0; background: var(--paper); cursor: pointer; color: var(--ink);
}
.stepper button:hover { background: var(--c); color: #fff; }
.stepper button[disabled] { color: #b5bec1; cursor: not-allowed; background: var(--paper); }
.stepper output { text-align: center; font-weight: 700; }

/* Checkout */
.checkout { background: var(--paper); border-block: 3px solid var(--ink); padding-block: 48px; }
.checkout-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: start; }
.summary { width: 100%; border-collapse: collapse; margin: 14px 0 6px; }
.summary th, .summary td { text-align: left; padding: 10px 0; border-bottom: 1px solid #c9d3d6; }
.summary td.num, .summary th.num { text-align: right; white-space: nowrap; }
.summary tfoot td { border-bottom: 0; font-weight: 800; font-size: var(--step-1); padding-top: 14px; }
.empty { color: var(--muted); }
.legal-note { font-size: var(--step--1); color: var(--muted); margin: 10px 0 0; max-width: 60ch; }
.pay-box {
  border: 3px solid var(--ink); border-radius: var(--radius); padding: 22px;
  background: var(--sky);
}
.pay-box h3 { margin: 0 0 6px; font-size: var(--step-1); }
.pay-box p { margin: 0 0 16px; }
#paypal-buttons { min-height: 10px; }
.notice {
  border-radius: 14px; padding: 14px 16px; margin-top: 14px; font-size: var(--step--1);
  background: #fff4d6; border: 2px solid #c79a00;
}
.notice.ok { background: #e6f5e0; border-color: var(--pineapple); }
.notice.err { background: #fde8ee; border-color: var(--strawberry); }

/* Info */
.info { padding-block: 56px; }
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.info h3 { margin: 0 0 6px; font-size: var(--step-1); }
.info p { margin: 0; max-width: 40ch; }
.product-facts { margin-top: 48px; }
.product-facts dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 24px; margin: 12px 0 0; }
.product-facts dt { font-weight: 700; }
.product-facts dd { margin: 0; }

/* Sticky order bar */
.bar {
  position: sticky; bottom: 0; z-index: 10;
  background: var(--ink); color: var(--paper);
  transform: translateY(110%); transition: transform .2s ease-out;
}
.bar.show { transform: translateY(0); }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.bar .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); padding: 10px 22px; white-space: nowrap; }

.site-footer { background: var(--ink); color: #c9d0db; font-size: var(--step--1); }
.site-footer .wrap { padding-block: 36px 48px; display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; justify-content: space-between; }
.site-footer img { height: 56px; width: auto; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 8px; }
.site-footer nav a { color: #fff; font-weight: 600; }
.site-footer p { margin: 0; }

/* Legal pages */
.legal { background: var(--paper); border: 3px solid var(--ink); border-radius: var(--radius); padding: clamp(20px, 4vw, 48px); margin-block: 16px 48px; }
.legal h1 { font-size: var(--step-2); letter-spacing: -0.02em; margin: 0 0 4px; }
.legal h2 { font-size: var(--step-1); margin: 32px 0 6px; }
.legal p, .legal li { max-width: 72ch; }
.legal .stand { color: var(--muted); margin-top: 0; }

@media (max-width: 900px) {
  .scents { grid-template-columns: repeat(2, 1fr); }
  .checkout-grid, .info-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .brand img { height: 46px; }
  .hero { grid-template-columns: 1fr; padding-bottom: 32px; }
  .hero-photos { justify-self: stretch; width: 100%; }
  .hero-photos img { aspect-ratio: 4 / 3; object-position: 50% 45%; }
  .hero h1 { max-width: none; }
  .scents { gap: 12px; }
  .scent { padding: 10px 10px 14px; }
  .count { width: 50px; height: 50px; font-size: 1.2rem; }
  .stepper { grid-template-columns: 40px 1fr 40px; }
  .stepper button { height: 40px; }
  .product-facts dl { grid-template-columns: 1fr; }
  .product-facts dd { margin-bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .count, .bar { transition: none; }
}
