/* ============ KNALLFROSCH DESIGN SYSTEM ============ */

:root {
  --cream:        #FFF8EC;
  --cream-deep:   #F4ECDB;
  --ink:          #1A1A2E;
  --ink-soft:     #4A4A60;
  --tomato:       #FF5C39;
  --tomato-deep:  #E63946;
  --sun:          #FFD93D;
  --mint:         #2D9596;
  --sky:          #4A90E2;
  --pink:         #FFB4A2;
  --lilac:        #C8B6FF;

  --shadow-pop:   6px 6px 0 var(--ink);
  --shadow-card:  0 1px 0 rgba(26,26,46,0.04), 0 8px 24px -12px rgba(26,26,46,0.18);
  --radius:       16px;
  --radius-lg:    28px;
  --radius-pill:  999px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: 'Manrope', system-ui, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* Subtile Papier-Textur im Hintergrund */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.35;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.1 0 0 0 0 0.1 0 0 0 0 0.18 0 0 0 0.05 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { max-width: 100%; display: block; }

.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

/* ============ Display Typography ============ */

.display {
  font-family: 'Fraunces', Georgia, serif;
  font-variation-settings: "opsz" 144, "SOFT" 100;
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.script {
  font-family: 'Caveat', cursive;
  font-weight: 700;
}

/* ============ Header ============ */

.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--cream);
  border-bottom: 2px solid var(--ink);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Fraunces', serif;
  font-variation-settings: "opsz" 144, "SOFT" 100;
  font-weight: 800;
  font-size: 22px;
}

.logo-mark {
  width: auto;
  height: 44px;
  display: block;
  object-fit: contain;
}

.nav {
  display: none;
  gap: 28px;
  font-weight: 600;
  font-size: 15px;
}

.nav a {
  position: relative;
  padding: 4px 0;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -2px;
  height: 2px;
  background: var(--tomato);
  transition: right .3s ease;
}

.nav a:hover::after { right: 0; }

.header-cta {
  background: var(--ink);
  color: var(--cream);
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 14px;
  transition: transform .15s ease, background .15s ease;
}

.header-cta:hover {
  background: var(--tomato);
  transform: translateY(-1px);
}

@media (min-width: 880px) {
  .nav { display: flex; }
}

/* ============ Hero ============ */

.hero {
  padding: 56px 0 32px;
  position: relative;
  overflow: hidden;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: var(--cream);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero-eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
  animation: pulse 1.6s ease-out infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(45,149,150,0.6); }
  100% { box-shadow: 0 0 0 12px rgba(45,149,150,0); }
}

.hero-title {
  font-size: clamp(48px, 9vw, 124px);
  margin: 0 0 20px;
}

.hero-title .dot { color: var(--ink-soft); }
.hero-title em {
  color: var(--tomato);
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100;
}

.hero-sub {
  max-width: 620px;
  font-size: clamp(17px, 1.5vw, 20px);
  color: var(--ink-soft);
  margin: 0 0 32px;
}

.hero-sub strong { color: var(--ink); }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 15px;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  border: 2px solid var(--ink);
}

.btn-primary {
  background: var(--tomato);
  color: var(--cream);
  box-shadow: var(--shadow-pop);
}

.btn-primary:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 var(--ink);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
}

.btn-ghost:hover {
  background: var(--ink);
  color: var(--cream);
}

.hero-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 28px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
}

.hero-checks span::before {
  content: "✅ ";
  margin-right: 4px;
}

/* ============ Filter Bar ============ */

.filter-bar {
  position: sticky;
  top: 70px;
  z-index: 40;
  background: var(--cream);
  padding: 18px 0;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}

.filter-pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.filter-pills::-webkit-scrollbar { display: none; }

.pill {
  flex-shrink: 0;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  border: 2px solid var(--ink);
  background: var(--cream);
  font-weight: 700;
  font-size: 14px;
  transition: all .15s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--ink);
}

.pill:hover { background: var(--cream-deep); }

.pill.active {
  background: var(--ink);
  color: var(--cream);
}

.pill .count {
  background: var(--cream-deep);
  padding: 1px 8px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  color: var(--ink);
}

.pill.active .count {
  background: rgba(255,248,236,0.18);
  color: var(--cream);
}

/* ============ Section ============ */

.section {
  padding: 56px 0;
  position: relative;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.section-title {
  font-size: clamp(32px, 5vw, 56px);
  margin: 0;
}

.section-title em {
  color: var(--tomato);
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100;
}

.section-sub {
  color: var(--ink-soft);
  max-width: 480px;
  margin: 8px 0 0;
}

/* ============ Product Grid ============ */

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 600px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 980px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
  text-decoration: none;
  color: var(--ink);
}

.card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 6px 6px 0 var(--ink);
}

.card-media {
  position: relative;
  aspect-ratio: 4/3;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-bottom: 2px solid var(--ink);
}

/* Card-Hintergrund-Varianten (zyklisch nach Index) */
.bg-1  { background: radial-gradient(circle at 30% 20%, #FFE0B5 0%, #FF8A65 100%); }
.bg-2  { background: radial-gradient(circle at 70% 30%, #B5E48C 0%, #2D9596 100%); }
.bg-3  { background: radial-gradient(circle at 50% 70%, #FFC8DD 0%, #C8B6FF 100%); }
.bg-4  { background: radial-gradient(circle at 20% 80%, #FFE066 0%, #FF6B6B 100%); }
.bg-5  { background: radial-gradient(circle at 60% 30%, #A2D2FF 0%, #4A90E2 100%); }
.bg-6  { background: radial-gradient(circle at 30% 60%, #FCD5CE 0%, #FF5C39 100%); }
.bg-7  { background: radial-gradient(circle at 70% 70%, #CDB4DB 0%, #6A4C93 100%); }
.bg-8  { background: radial-gradient(circle at 40% 40%, #FFFAA0 0%, #FFD93D 100%); }
.bg-9  { background: radial-gradient(circle at 50% 50%, #B8E0D2 0%, #2D9596 100%); }

.card-illu {
  font-size: clamp(72px, 14vw, 120px);
  filter: drop-shadow(4px 4px 0 rgba(26,26,46,0.18));
  transition: transform .4s ease;
}

.card:hover .card-illu {
  transform: scale(1.06) rotate(-4deg);
}

.card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--cream);
  border: 2px solid var(--ink);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
}

.card-badge-popular {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--sun);
  border: 2px solid var(--ink);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  transform: rotate(4deg);
}

.card-badge-soon {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--pink);
  border: 2px solid var(--ink);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
}

.card-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.card-title {
  font-family: 'Fraunces', serif;
  font-variation-settings: "opsz" 144, "SOFT" 100;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.1;
  margin: 0;
}

.card-desc {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 4px;
}

.price {
  display: flex;
  flex-direction: column;
}

.price-num {
  font-family: 'Fraunces', serif;
  font-weight: 800;
  font-size: 26px;
  line-height: 1;
}

.price-lbl {
  font-size: 12px;
  color: var(--ink-soft);
}

.card-btn {
  background: var(--ink);
  color: var(--cream);
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background .15s ease;
}

.card-btn:hover { background: var(--tomato); }

/* ============ Product Detail ============ */

.product-detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin: 32px 0;
}

@media (min-width: 760px) {
  .product-detail { grid-template-columns: 1fr 1fr; }
}

.product-hero {
  aspect-ratio: 4/3;
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  display: grid;
  place-items: center;
  font-size: 200px;
  filter: drop-shadow(6px 6px 0 rgba(26,26,46,0.18));
}

.product-info h1 {
  font-family: 'Fraunces', serif;
  font-variation-settings: "opsz" 144, "SOFT" 100;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.05;
  margin: 12px 0 16px;
}

.product-info .price-num {
  font-size: 36px;
  color: var(--tomato);
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.meta-tag {
  font-size: 13px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--cream-deep);
  border: 1.5px solid var(--ink);
  font-weight: 600;
}

.spec-list {
  list-style: none;
  padding: 16px 20px;
  margin: 20px 0;
  background: var(--cream-deep);
  border-radius: var(--radius);
  border: 1.5px dashed rgba(26,26,46,0.18);
}

.spec-list li {
  padding: 6px 0;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed rgba(26,26,46,0.1);
}

.spec-list li:last-child { border-bottom: none; }
.spec-list strong { font-weight: 700; }

/* ============ CTA Strip ============ */

.cta-strip {
  background: var(--ink);
  color: var(--cream);
  padding: 56px 0;
  margin: 56px 0 0;
}

.cta-strip h2 {
  font-family: 'Fraunces', serif;
  font-variation-settings: "opsz" 144, "SOFT" 100;
  font-size: clamp(36px, 5.5vw, 64px);
  line-height: 1;
  margin: 0 0 12px;
}

.cta-strip h2 em {
  color: var(--sun);
  font-style: italic;
}

.cta-strip p {
  color: rgba(255,248,236,0.78);
  margin: 0 0 24px;
}

.cta-strip .btn-primary {
  background: var(--tomato);
  color: var(--cream);
  border-color: var(--cream);
  box-shadow: 6px 6px 0 var(--cream);
}

.cta-strip .btn-primary:hover {
  box-shadow: 8px 8px 0 var(--cream);
}

.cta-strip .btn-ghost {
  border-color: var(--cream);
  color: var(--cream);
}

.cta-strip .btn-ghost:hover {
  background: var(--cream);
  color: var(--ink);
}

/* ============ Footer ============ */

.footer {
  padding: 48px 0 32px;
  background: var(--cream-deep);
  border-top: 2px solid var(--ink);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 760px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

.footer h4 {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  margin: 0 0 12px;
  font-size: 16px;
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer li {
  font-size: 14px;
  padding: 4px 0;
  color: var(--ink-soft);
}

.footer a:hover { color: var(--tomato); }

.footer-bottom {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(26,26,46,0.15);
  font-size: 13px;
  color: var(--ink-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
}

/* ============ A11y ============ */

:focus-visible {
  outline: 3px solid var(--tomato);
  outline-offset: 3px;
  border-radius: 4px;
}
