/* Deko-Seiten Stil — abgestimmt auf geburtstag.html */
@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@400;500;600;700;800&family=Nunito:wght@400;600;700&display=swap');

:root {
  --primary: #ff3385;
  --secondary: #ffde00;
  --accent1: #00c2ff;
  --accent2: #5bd75b;
  --accent3: #ff6b21;
  --accent4: #8a49ff;
  --dark: #2d1a47;
  --light: #fff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Nunito', sans-serif; background: #fff7fb; color: var(--dark); line-height: 1.6; }
h1, h2, h3, h4 { font-family: 'Baloo 2', cursive; font-weight: 700; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--accent3); }

.deko-container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }

/* Hero */
.deko-hero {
  background: linear-gradient(135deg, var(--primary), var(--accent4));
  color: white;
  padding: 60px 20px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.deko-hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 20% 30%, rgba(255,222,0,0.3) 0, transparent 30%),
                    radial-gradient(circle at 80% 70%, rgba(0,194,255,0.25) 0, transparent 30%);
  pointer-events: none;
}
.deko-hero h1 { font-size: 2.8rem; margin-bottom: 12px; position: relative; }
.deko-hero p { font-size: 1.15rem; max-width: 700px; margin: 0 auto; position: relative; }
.deko-back {
  display: inline-block; margin-top: 18px; padding: 8px 18px;
  background: rgba(255,255,255,0.2); border-radius: 30px; color: white;
  font-weight: 600; transition: background 0.2s;
  position: relative;
}
.deko-back:hover { background: rgba(255,255,255,0.35); color: white; }

/* Order Notice */
.order-notice {
  background: var(--secondary);
  color: var(--dark);
  padding: 18px 24px;
  border-radius: 16px;
  margin: 30px auto;
  max-width: 900px;
  font-weight: 600;
  text-align: center;
  border: 3px solid var(--dark);
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
}
.order-notice strong { color: var(--primary); }
.order-notice .actions { display: flex; gap: 12px; justify-content: center; margin-top: 14px; flex-wrap: wrap; }
.order-notice a {
  background: var(--primary); color: white; padding: 10px 22px;
  border-radius: 50px; font-weight: 700; transition: transform 0.2s;
}
.order-notice a:hover { transform: translateY(-2px); color: white; }
.order-notice a.whatsapp { background: #25D366; }
.order-notice a.whatsapp:hover { background: #1da851; }

/* Section */
.deko-section { padding: 50px 0; }
.deko-section h2 {
  font-size: 2.2rem; text-align: center; margin-bottom: 8px;
  color: var(--dark);
}
.deko-section .subtitle {
  text-align: center; color: #666; font-size: 1.05rem; margin-bottom: 30px;
}

/* Themes Grid (Hub-Seite) — bis zu 3 pro Reihe, letzte Reihe zentriert */
.themes-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-top: 30px;
}
.themes-strip .theme-card {
  flex: 0 1 calc((100% - 48px) / 3);
  max-width: calc((100% - 48px) / 3);
}
.theme-card {
  background: white; border-radius: 22px; overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  transition: transform 0.25s, box-shadow 0.25s;
  text-decoration: none; color: var(--dark);
  display: flex; flex-direction: column;
}
.theme-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.18);
  color: var(--dark);
}
.theme-card img { width: 100%; aspect-ratio: 3/2; object-fit: cover; display: block; }
.theme-card .label {
  padding: 22px 16px; text-align: center;
  font-family: 'Baloo 2', cursive; font-weight: 700; font-size: 1.5rem; color: var(--dark);
}
.theme-card .label .emoji { font-size: 1.7rem; margin-right: 10px; }
@media (max-width: 768px) {
  .themes-strip { gap: 16px; }
  .themes-strip .theme-card { flex: 0 1 calc((100% - 16px) / 2); max-width: calc((100% - 16px) / 2); }
  .theme-card .label { font-size: 1.2rem; padding: 16px 12px; }
}
@media (max-width: 480px) {
  .themes-strip .theme-card { flex: 0 1 100%; max-width: 100%; }
}

/* Categories Grid */
.categories-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px; margin-top: 30px;
}
.category-card {
  background: white; border-radius: 22px; overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  transition: transform 0.25s, box-shadow 0.25s;
  text-decoration: none; color: var(--dark);
  display: block;
}
.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.18);
  color: var(--dark);
}
.category-card img { width: 100%; aspect-ratio: 3/2; object-fit: cover; display: block; }
.category-card .body { padding: 22px; text-align: center; }
.category-card .body h3 { font-size: 1.6rem; margin-bottom: 8px; }
.category-card .body p { color: #666; font-size: 1rem; }
.category-card .body .arrow { display: inline-block; margin-top: 12px; padding: 8px 22px; background: var(--primary); color: white; border-radius: 30px; font-weight: 700; }

/* Theme Filter */
.theme-filter {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
  margin-bottom: 28px;
}
.theme-filter button {
  background: white; border: 2px solid #e2d8ec; color: var(--dark);
  padding: 8px 16px; border-radius: 30px; font-weight: 600; cursor: pointer;
  font-family: inherit; font-size: 0.95rem; transition: all 0.2s;
}
.theme-filter button:hover { border-color: var(--primary); }
.theme-filter button.active {
  background: var(--primary); color: white; border-color: var(--primary);
}

/* Theme Banner (auf Listing-Seiten wenn Theme gefiltert) */
.theme-banner { margin: 0 auto 28px; max-width: 600px; }
.theme-banner-card {
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.theme-banner-card img {
  width: 100%;
  height: auto;
  max-height: 344px;
  object-fit: cover;
  display: block;
}
.theme-banner-label {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--dark);
}
.theme-banner-label .emoji { font-size: 1.8rem; }
.theme-banner-label h3 {
  font-family: 'Baloo 2', cursive; font-weight: 700;
  font-size: 1.5rem; color: var(--dark); margin: 0;
}
@media (max-width: 600px) {
  .theme-banner { max-width: 100%; }
  .theme-banner-card img { max-height: 260px; }
  .theme-banner-label h3 { font-size: 1.2rem; }
  .theme-banner-label .emoji { font-size: 1.4rem; }
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}
.product-card {
  background: white; border-radius: 14px; overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(0,0,0,0.12); }
.product-card .img-wrap {
  position: relative; aspect-ratio: 1/1; background: #f3eef7;
}
.product-card img {
  width: 100%; height: 100%; object-fit: contain; display: block;
}
.product-card .num-badge {
  position: absolute; top: 8px; left: 8px;
  background: var(--primary); color: white;
  padding: 4px 10px; border-radius: 20px;
  font-weight: 700; font-size: 0.85rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.product-card .body {
  padding: 10px 12px;
  display: flex; flex-direction: column; gap: 4px;
  flex: 1;
}
.product-card .body .name {
  font-size: 0.92rem; font-weight: 600; color: var(--dark);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-card .body .theme-pill {
  font-size: 0.72rem; color: #888; margin-top: auto;
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; background: rgba(20,10,40,0.92);
  display: none; align-items: center; justify-content: center;
  z-index: 9999; padding: 30px;
}
.lightbox.open { display: flex; }
.lightbox-inner {
  background: white; border-radius: 20px; max-width: 720px; width: 100%;
  max-height: 90vh; overflow: auto;
  display: flex; flex-direction: column;
}
.lightbox-img-wrap {
  background: #f3eef7; padding: 30px; display: flex; justify-content: center;
}
.lightbox-img-wrap img {
  max-width: 100%; max-height: 60vh; object-fit: contain;
}
.lightbox-info { padding: 22px 28px; }
.lightbox-info .num {
  display: inline-block; background: var(--primary); color: white;
  padding: 6px 16px; border-radius: 22px; font-weight: 700;
  margin-bottom: 10px;
}
.lightbox-info h3 { font-size: 1.6rem; margin-bottom: 6px; color: var(--dark); }
.lightbox-info .code { color: #888; font-size: 0.9rem; margin-bottom: 14px; }
.lightbox-info .order-text {
  background: #fff8e0; padding: 12px; border-radius: 10px; font-size: 0.95rem;
  margin-top: 10px;
}
.lightbox-close {
  position: absolute; top: 20px; right: 24px;
  background: white; border: none; width: 44px; height: 44px;
  border-radius: 50%; font-size: 1.6rem; cursor: pointer; font-weight: 700;
  color: var(--dark); box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* Footer */
.deko-footer {
  background: var(--dark); color: white; padding: 40px 20px; text-align: center;
  margin-top: 60px;
}
.deko-footer a { color: var(--secondary); }

/* Responsive */
@media (max-width: 768px) {
  .deko-hero h1 { font-size: 2rem; }
  .deko-hero p { font-size: 1rem; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
  .product-card .body .name { font-size: 0.85rem; }
  .deko-section h2 { font-size: 1.7rem; }
}
@media (max-width: 480px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .lightbox { padding: 10px; }
  .deko-hero { padding: 40px 16px 60px; }
}
