/* ==========================================================================
   Blumenkonzept – eigenständiger Nachbau
   Farbpalette aus dem Original übernommen:
   Primär (dunkelgrün/schwarzgrün): #102100
   Akzent (grün): #599322
   Helle Akzente: #e6f7d7 / #dff0cf / #f6feef
   ========================================================================== */

:root {
  --color-primary: #102100;
  --color-accent: #599322;
  --color-accent-light: #cff2ae;
  --color-bg-soft: #f6feef;
  --color-bg-soft-2: #e6f7d7;
  --color-border: #d7f3be;
  --color-text: #151515;
  --font-main: "Open Sans", "Segoe UI", system-ui, sans-serif;
  --max-width: 1200px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-main);
  color: var(--color-text);
  background: #fff;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header ---------- */

.site-header {
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 100;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  max-width: var(--max-width);
  margin: 0 auto;
  gap: 20px;
}

.logo {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-primary);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo span.dot { color: var(--color-accent); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.9rem;
}

.header-actions .lang { display: flex; align-items: center; gap: 4px; }

.icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--color-primary);
  position: relative;
}

.cart-count {
  background: var(--color-accent);
  color: #fff;
  border-radius: 50%;
  font-size: 0.7rem;
  min-width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* Nav */
.main-nav {
  border-top: 1px solid #f0f0f0;
  font-weight: 300;
}
.main-nav ul.nav-level1 {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}
.main-nav > .container > ul.nav-level1 { padding: 0; }
.nav-level1 > li { position: relative; }
.nav-level1 > li > a {
  display: block;
  padding: 14px 16px;
  font-size: 1rem;
  color: var(--color-primary);
}
.nav-level1 > li:hover > a,
.nav-level1 > li > a.active { color: var(--color-accent); }

.nav-level1 > li > ul.nav-level2 {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-bg-soft);
  border-top: 1px solid var(--color-border);
  min-width: 240px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  z-index: 50;
}
.nav-level1 > li:hover > ul.nav-level2 { display: block; }
.nav-level2 li a {
  display: block;
  padding: 10px 18px;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.92rem;
}
.nav-level2 li a:hover { color: var(--color-accent); background: var(--color-bg-soft-2); }

.burger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.burger span { width: 22px; height: 2px; background: var(--color-primary); }

/* ---------- Hero / Sections ---------- */

.section { padding: 50px 0; }
.section--soft { background: var(--color-bg-soft); }

.hero {
  text-align: center;
  padding: 60px 0 40px;
}
.hero h1 {
  font-family: Georgia, serif;
  font-size: 2.4rem;
  color: var(--color-primary);
  margin: 0 0 20px;
}
.hero p { max-width: 720px; margin: 0 auto 14px; line-height: 1.7; }

.btn {
  display: inline-block;
  background: var(--color-accent);
  color: #fff !important;
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: 600;
  margin-top: 18px;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
}
.btn:hover { background: var(--color-primary); }
.btn--outline {
  background: transparent;
  color: var(--color-accent) !important;
  border: 1px solid var(--color-accent);
}
.btn--outline:hover { background: var(--color-accent); color: #fff !important; }
.btn--full { width: 100%; }

.page-title {
  text-align: center;
  padding: 40px 0 10px;
}
.page-title h1 {
  font-family: Georgia, serif;
  font-size: 2rem;
  color: var(--color-primary);
}
.breadcrumb {
  text-align: center;
  font-size: 0.85rem;
  color: #777;
  padding-bottom: 20px;
}
.breadcrumb a:hover { color: var(--color-accent); }

/* ---------- Category tiles (Home) ---------- */

.tile-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.tile {
  position: relative;
  aspect-ratio: 1/1;
  border-radius: 8px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(16,33,0,0.55), rgba(16,33,0,0) 60%);
}
.tile span {
  position: relative;
  color: #fff;
  font-weight: 600;
  padding: 16px 8px;
  text-align: center;
  z-index: 1;
}

/* ---------- Product grid ---------- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  padding: 20px 0 60px;
}
.product-card {
  position: relative;
  display: block;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  transition: box-shadow .2s ease;
}
.product-card:hover { box-shadow: 0 10px 24px rgba(0,0,0,0.08); }
.product-card__img-wrap { position: relative; }
.product-card__img {
  display: block;
  position: relative;
  aspect-ratio: 1/1;
  overflow: hidden;
  background: var(--color-bg-soft);
}
.product-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.quick-add-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  color: var(--color-primary);
  transition: background .15s ease, transform .15s ease;
}
.quick-add-btn:hover { background: var(--color-accent); color: #fff; transform: scale(1.06); }
.quick-add-btn svg { width: 20px; height: 20px; }
.product-card__body { padding: 14px 16px 18px; }
.product-card__title { display: block; font-weight: 600; font-size: 0.98rem; margin-bottom: 6px; min-height: 2.6em; color: var(--color-text); }
.product-card__title:hover { color: var(--color-accent); }
.product-card__price { color: var(--color-primary); font-weight: 600; margin-bottom: 10px; }
.product-card__price .from { font-size: 0.7rem; font-weight: 400; color: #777; margin-right: 4px; }
.add-to-cart-btn {
  width: 100%;
  background: var(--color-accent-light);
  color: var(--color-primary);
  border: none;
  border-radius: 20px;
  padding: 9px 10px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.85rem;
}
.add-to-cart-btn:hover { background: var(--color-accent); color: #fff; }

/* Override so the quick-add icon button on the image keeps its round shape
   even though it shares the .add-to-cart-btn class for JS targeting */
.quick-add-btn.add-to-cart-btn {
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--color-primary);
}
.quick-add-btn.add-to-cart-btn:hover { background: var(--color-accent); color: #fff; }

/* ---------- Text content pages (Über uns / Impressum) ---------- */

.prose { max-width: 820px; margin: 0 auto; line-height: 1.75; }
.prose h1, .prose h2 { font-family: Georgia, serif; color: var(--color-primary); }
.prose p { margin: 0 0 16px; }
.prose img { margin: 20px auto; border-radius: 8px; }

.about-block {
  display: flex;
  gap: 40px;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto 40px;
}
.about-block img { border-radius: 10px; flex: 0 0 320px; }
.about-block .text { flex: 1; line-height: 1.75; }

/* ---------- Testimonials ---------- */

.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial {
  background: var(--color-bg-soft);
  border-radius: 10px;
  padding: 24px;
  font-style: italic;
  line-height: 1.6;
}
.testimonial cite {
  display: block;
  margin-top: 14px;
  font-style: normal;
  font-weight: 600;
  color: var(--color-primary);
}

/* ---------- Product detail page ---------- */

.product-detail {
  display: flex;
  gap: 50px;
  padding: 30px 0 70px;
  align-items: flex-start;
}
.product-detail__image {
  flex: 0 0 45%;
  border-radius: 10px;
  overflow: hidden;
  background: var(--color-bg-soft);
}
.product-detail__info { flex: 1; padding-top: 10px; }
.product-detail__info h1 {
  font-family: Georgia, serif;
  color: var(--color-primary);
  font-size: 1.9rem;
  margin: 0 0 14px;
}
.product-detail__price {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 20px;
}
.product-detail__price .from { font-size: 0.75rem; font-weight: 400; color: #777; margin-right: 6px; }
.product-detail__desc { line-height: 1.75; margin-bottom: 10px; max-width: 480px; }
.product-detail__meta { color: #999; font-size: 0.85rem; margin-bottom: 24px; }
.product-detail__note { margin-top: 16px; font-size: 0.82rem; color: #888; }

@media (max-width: 800px) {
  .product-detail { flex-direction: column; }
  .product-detail__image { flex: none; width: 100%; }
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--color-primary);
  color: #dfe9d3;
  padding: 50px 0 24px;
  margin-top: 40px;
}
.footer-cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}
.footer-cols h4 { color: #fff; margin-bottom: 14px; font-size: 1rem; }
.footer-cols li { margin-bottom: 8px; font-size: 0.9rem; }
.footer-cols a:hover { color: var(--color-accent-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 18px;
  font-size: 0.8rem;
  text-align: center;
  color: #9fb08b;
}

/* ---------- Cart drawer ---------- */

.cart-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.4);
  display: none;
  z-index: 999;
}
.cart-overlay.open { display: block; }

.cart-drawer {
  position: fixed;
  top: 0; right: -420px;
  width: 400px; max-width: 92vw;
  height: 100%;
  background: #fff;
  z-index: 1000;
  box-shadow: -10px 0 30px rgba(0,0,0,0.15);
  transition: right .25s ease;
  display: flex;
  flex-direction: column;
}
.cart-drawer.open { right: 0; }
.cart-drawer__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px; border-bottom: 1px solid #eee;
}
.cart-drawer__header h3 { margin: 0; color: var(--color-primary); }
.cart-drawer__close { background: none; border: none; font-size: 1.4rem; cursor: pointer; color: var(--color-primary); }
.cart-drawer__items { flex: 1; overflow-y: auto; padding: 10px 20px; }
.cart-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid #f2f2f2; align-items: center; }
.cart-item img { width: 60px; height: 60px; object-fit: cover; border-radius: 6px; }
.cart-item__info { flex: 1; }
.cart-item__name { font-weight: 600; font-size: 0.9rem; }
.cart-item__price { color: #666; font-size: 0.85rem; }
.cart-item__qty { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.cart-item__qty button {
  width: 22px; height: 22px; border-radius: 50%; border: 1px solid #ddd;
  background: #fff; cursor: pointer; line-height: 1;
}
.cart-item__remove { background: none; border: none; color: #b33; cursor: pointer; font-size: 0.8rem; }
.cart-drawer__footer { padding: 20px; border-top: 1px solid #eee; }
.cart-drawer__total { display: flex; justify-content: space-between; font-weight: 700; margin-bottom: 14px; color: var(--color-primary); }
.cart-empty { padding: 40px 0; text-align: center; color: #888; }
.cart-note {
  font-size: 0.75rem; color: #999; margin-top: 10px; text-align: center;
}

.toast {
  position: fixed;
  bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--color-primary);
  color: #fff;
  padding: 12px 22px;
  border-radius: 30px;
  font-size: 0.9rem;
  opacity: 0;
  transition: all .25s ease;
  z-index: 1100;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .tile-grid { grid-template-columns: repeat(3, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr; }
  .about-block { flex-direction: column; }
  .about-block img { flex: none; width: 100%; }
}

@media (max-width: 640px) {
  .main-nav ul.nav-level1 { display: none; flex-direction: column; }
  .main-nav ul.nav-level1.open { display: flex; }
  .burger { display: flex; }
  .nav-level1 > li > ul.nav-level2 { position: static; box-shadow: none; }
  .tile-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .hero h1 { font-size: 1.8rem; }
}
