@font-face { font-family: "Bricolage"; src: url("fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Atkinson"; src: url("fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson"; src: url("fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --butter: #ffdf8a;
  --butter-deep: #f0b93a;
  --coral: #c8343e;
  --coral-dark: #a32630;
  --ink: #26243a;
  --ink-soft: #5d5a72;
  --stone: #eeece8;
  --leaf: #23694a;
  --paper: #ffffff;
  --display: "Bricolage", "Trebuchet MS", sans-serif;
  --body: "Atkinson", Verdana, sans-serif;
  --wrap: 1180px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 400 1.0625rem/1.55 var(--body); color: var(--ink); background: var(--paper); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 0.18em; }
h1, h2 { font-family: var(--display); line-height: 1.08; letter-spacing: -0.015em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 650; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 0.6rem 1rem; z-index: 10; }
.skip:focus { left: 0.5rem; top: 0.5rem; }

/* Kopf */
.top { max-width: var(--wrap); margin: 0 auto; padding: 0.9rem 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; font: 700 1.2rem/1.1 var(--display); }
.brand img { border-radius: 50%; }
.brand small { display: block; font: 400 0.8rem/1.3 var(--body); color: var(--ink-soft); }
.top nav { display: flex; align-items: center; gap: 1.4rem; }
.top nav a { text-decoration: none; padding: 0.35rem 0; border-bottom: 3px solid transparent; }
.top nav a:hover, .top nav a[aria-current] { border-bottom-color: var(--butter-deep); }
.count { display: inline-grid; place-items: center; min-width: 1.6rem; height: 1.6rem; padding: 0 0.4rem; margin-left: 0.2rem; border-radius: 99px; background: var(--butter); font-weight: 700; font-size: 0.9rem; }

main { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem 4rem; }

/* Einstieg: die gelbe Scheibe aus dem Logo trägt das Paket-Angebot */
.hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 2.5rem; align-items: center; padding: 2.5rem 0 3rem; }
.hero-text p { font-size: 1.2rem; max-width: 34em; margin: 1.1rem 0 1.6rem; color: var(--ink-soft); }
.search label { display: block; font-weight: 700; margin-bottom: 0.35rem; }
.search input { width: min(100%, 30rem); font: inherit; padding: 0.8rem 1rem; border: 2px solid var(--ink); border-radius: 10px; background: #fff; color: var(--ink); }
.hero-offer { position: relative; display: grid; grid-template-columns: 46% 1fr; gap: 1.2rem; align-items: center; text-decoration: none; padding: 2.2rem 1.6rem 2.2rem 2rem; isolation: isolate; }
.hero-offer::before { content: ""; position: absolute; inset: -6% -4% -6% 4%; background: var(--butter); border-radius: 50%; z-index: -1; }
.hero-offer .cover { transform: rotate(-4deg); box-shadow: 0 14px 30px -12px rgba(38, 36, 58, 0.45); }
.hero-offer-text { display: grid; gap: 0.4rem; }
.hero-offer-text strong { font: 700 1.5rem/1.1 var(--display); }
.hero-offer:hover strong { text-decoration: underline; }

/* Themen-Sprungmarken */
.cats { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; padding: 1rem 0; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); font-weight: 700; }
.cats a { text-decoration: none; }
.cats a:hover { text-decoration: underline; text-decoration-color: var(--butter-deep); text-decoration-thickness: 3px; }

/* Regale: Cover stehen auf einem Brett */
.shelf { padding-top: 3rem; scroll-margin-top: 1rem; }
.shelf h2 { margin-bottom: 1.4rem; }
.row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 2.2rem 1.4rem; }
.item { position: relative; display: flex; flex-direction: column; }
.item > a { text-decoration: none; display: block; }
.cover { width: 100%; aspect-ratio: 566 / 800; object-fit: cover; background: var(--stone); border-radius: 3px; box-shadow: 0 10px 18px -12px rgba(38, 36, 58, 0.5); }
.item > a .cover { border-bottom: 6px solid var(--butter-deep); }
.item > a:hover .cover { transform: translateY(-4px); transition: transform 0.15s ease-out; }
.nocover { display: grid; place-items: center; padding: 1rem; text-align: center; background: var(--butter); font: 700 1.15rem/1.15 var(--display); }
.name { display: block; margin-top: 0.8rem; font-weight: 700; line-height: 1.25; }
.item > a:hover .name { text-decoration: underline; }
.buy { margin-top: auto; padding-top: 0.5rem; display: grid; gap: 0.45rem; }
.price { font: 700 1.15rem/1 var(--display); }
.price.muted { font: 400 0.95rem/1.2 var(--body); color: var(--ink-soft); }
.price.big { font-size: 2rem; margin: 1.2rem 0; }
.price small { font: 400 1rem var(--body); color: var(--ink-soft); margin-left: 0.6rem; text-decoration: line-through; }
.tag { position: absolute; top: 0.6rem; left: -0.4rem; background: var(--ink); color: #fff; font-size: 0.8rem; font-weight: 700; padding: 0.2rem 0.6rem; border-radius: 3px; }
.soon { color: var(--ink-soft); font-size: 0.95rem; }
.noresult { padding: 2rem 0; font-size: 1.15rem; }

/* Schaltflächen */
button, .button { font: 700 1rem/1.2 var(--body); cursor: pointer; border-radius: 10px; border: 2px solid var(--ink); background: #fff; color: var(--ink); padding: 0.6rem 0.9rem; text-decoration: none; display: inline-block; text-align: center; }
button:hover, .button:hover { background: var(--butter); }
.primary { background: var(--coral); border-color: var(--coral); color: #fff; padding: 0.9rem 1.4rem; font-size: 1.1rem; }
.primary:hover { background: var(--coral-dark); border-color: var(--coral-dark); }
.add.in { background: var(--leaf); border-color: var(--leaf); color: #fff; }

/* Produktseite */
.product { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr); gap: 3rem; padding-top: 2rem; align-items: start; }
.product-cover .cover { border-bottom: 8px solid var(--butter-deep); }
.crumb { color: var(--ink-soft); margin: 0 0 0.8rem; }
.lead { font-size: 1.2rem; max-width: 36em; }
.product-info h1 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
.tocart { margin-left: 1rem; font-weight: 700; }
.facts { margin: 2rem 0 0; padding: 1.2rem 0 0 1.2rem; border-top: 2px solid var(--ink); max-width: 34em; }
.facts li { margin-bottom: 0.4rem; }

/* Schwebender Warenkorb-Knopf */
.fab { position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 50; display: flex; align-items: center; gap: 0.6rem; padding: 0.85rem 1.2rem; border-radius: 999px; background: var(--coral); color: #fff; font-weight: 700; text-decoration: none; box-shadow: 0 10px 24px -8px rgba(38, 36, 58, 0.55); }
.fab:hover { background: var(--coral-dark); color: #fff; }
.fab .count { display: grid; place-items: center; min-width: 1.6rem; height: 1.6rem; padding: 0 0.35rem; border-radius: 999px; background: #fff; color: var(--ink); font-size: 0.95rem; }
@media (max-width: 560px) { .fab { right: 0.8rem; bottom: 0.8rem; } }

/* Vorschau-Galerie */
.gallery-stage { position: relative; }
.gallery-track { display: flex; margin: 0; padding: 0; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-bottom: 8px solid var(--butter-deep); border-radius: 3px; background: var(--stone); }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track > li { flex: 0 0 100%; scroll-snap-align: start; aspect-ratio: 566 / 800; display: grid; place-items: center; }
.gallery-track .cover { border: 0; border-radius: 0; box-shadow: none; height: 100%; }
.gallery-track .shot { max-width: 100%; max-height: 100%; width: auto; height: auto; display: block; }
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 2.8rem; height: 2.8rem; padding: 0; border-radius: 50%; font-size: 1.7rem; line-height: 1; background: #fff; }
.gallery-nav.prev { left: 0.6rem; }
.gallery-nav.next { right: 0.6rem; }
.gallery-nav:disabled { opacity: 0; pointer-events: none; }
.gallery-thumbs { display: flex; gap: 0.5rem; margin: 0.8rem 0 0; padding: 0; list-style: none; flex-wrap: wrap; }
.gallery-thumbs button { padding: 0; width: 3.4rem; height: 4.4rem; border: 2px solid transparent; border-radius: 3px; background: var(--stone); overflow: hidden; }
.gallery-thumbs button[aria-current="true"] { border-color: var(--ink); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-note { margin: 0.7rem 0 0; font-size: 0.92rem; color: var(--ink-soft); max-width: 34em; }
@media (prefers-reduced-motion: no-preference) { .gallery-track { scroll-behavior: smooth; } }

/* Ausführliche Beschreibung */
.about { margin-top: 3.5rem; padding-top: 2.2rem; border-top: 2px solid var(--ink); max-width: 62rem; }
.about-text p { font-size: 1.15rem; max-width: 40em; margin: 0 0 1rem; }
.about h2 { font-size: 1.35rem; margin: 2rem 0 0.7rem; }
.about p { max-width: 40em; }
.about ul { margin: 0; padding-left: 1.2rem; }
.about li { margin-bottom: 0.45rem; max-width: 34em; }
.about-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 3rem; }
.about-buy { margin-top: 2.2rem; display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
@media (max-width: 800px) { .about-grid { grid-template-columns: 1fr; } }

/* Warenkorb */
.cart, .prose, .downloads { max-width: 46rem; padding-top: 2rem; }
.cart h1, .prose h1, .downloads h1 { margin-bottom: 1.5rem; }
.cart-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.cart-list li { display: grid; grid-template-columns: 56px 1fr auto auto; gap: 1rem; align-items: center; padding: 0.9rem 0; border-bottom: 1px solid #cfccc6; }
.cart-list .cover { width: 56px; box-shadow: none; }
.cart-list .remove { padding: 0.35rem 0.6rem; font-weight: 400; font-size: 0.9rem; }
.total { text-align: right; font-size: 1.2rem; margin: 1.2rem 0 1.8rem; }
.total strong { font: 700 1.7rem var(--display); margin-left: 0.8rem; }
.check { display: grid; grid-template-columns: 1.6rem 1fr; gap: 0.6rem; margin: 0 0 1rem; align-items: start; }
.check input { width: 1.3rem; height: 1.3rem; margin-top: 0.15rem; accent-color: var(--coral); }
.check.optional { color: var(--ink-soft); margin-bottom: 1.8rem; }
.hint, .notice { background: var(--butter); padding: 0.8rem 1rem; border-radius: 8px; }
.small { font-size: 0.92rem; color: var(--ink-soft); }

/* Materialseite */
.dl { display: grid; grid-template-columns: 84px 1fr; gap: 1.2rem; padding: 1.3rem 0; border-top: 2px solid var(--ink); }
.dl h2 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.dl ul { margin: 0; padding-left: 1.1rem; }
.dl li { margin-bottom: 0.3rem; overflow-wrap: anywhere; }
.dl .cover { box-shadow: none; }
.size { color: var(--ink-soft); font-size: 0.9rem; white-space: nowrap; }

.prose p, .prose li { max-width: 40em; }
.prose h2 { margin: 2rem 0 0.8rem; }
.prose h3 { font: 700 1.2rem var(--display); margin: 1.5rem 0 0.4rem; }
.check-table { border-collapse: collapse; width: 100%; margin: 1rem 0; font-size: 0.95rem; }
.check-table td, .check-table th { text-align: left; padding: 0.45rem 0.6rem; border-bottom: 1px solid #cfccc6; vertical-align: top; }
pre { overflow: auto; background: var(--stone); padding: 1rem; font-size: 0.85rem; }

.foot { border-top: 2px solid var(--ink); max-width: var(--wrap); margin: 0 auto; padding: 1.5rem 1.25rem 6rem; display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; color: var(--ink-soft); font-size: 0.95rem; }
.foot p { margin: 0; max-width: 34em; }
.foot nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; }

@media (max-width: 800px) {
  .hero, .product { grid-template-columns: 1fr; gap: 2rem; }
  .hero-offer { max-width: 26rem; }
  .row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.8rem 1rem; }
  .cart-list li { grid-template-columns: 44px 1fr auto; }
  .cart-list .cover { width: 44px; }
  .cart-list .remove { grid-column: 2 / -1; justify-self: start; }
  .tocart { display: block; margin: 1rem 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .item > a:hover .cover { transform: none; }
}
