:root {
  --bg: #f5faf1;
  --bg-alt: #ffffff;
  --text: #24321f;
  --muted: #6e7f68;
  --accent: #2fae4a;
  --accent-2: #ffb84c;
  --accent-3: #d8412f;
  --border: #dcedd4;
  --nav-bg: #2fae4a;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* Navigation */
.navbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--nav-bg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.navbar-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.brand {
  font-weight: 700;
  font-size: 1.15rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-icon {
  height: 36px;
  width: 36px;
  object-fit: contain;
}

.nav-links { display: flex; gap: 1.5rem; }

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  opacity: 0.92;
  transition: opacity 0.15s ease;
}

.nav-links a:hover { opacity: 1; text-decoration: underline; }

.nav-links a.active {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Hero */
.hero {
  padding: 4.5rem 1.5rem;
  text-align: center;
  background: linear-gradient(135deg, #8fe06a 0%, #3cc24a 45%, #1f9e3c 100%);
  color: #fff;
}

.hero-inner { max-width: 700px; margin: 0 auto; }

.hero-logo {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
  margin-bottom: 1.25rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.hero-cta {
  display: inline-block;
  margin-top: 1.25rem;
  background: #fff;
  color: var(--accent);
  font-weight: 700;
  padding: 0.75rem 1.75rem;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  transition: transform 0.12s ease;
}

.hero-cta:hover { transform: scale(1.05) rotate(-1deg); }

.teaser-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.teaser-card {
  display: block;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  text-decoration: none;
  color: var(--text);
  box-shadow: 0 4px 14px rgba(36, 50, 31, 0.06);
  transition: transform 0.15s ease;
}

.teaser-card:hover { transform: translateY(-3px) rotate(-0.5deg); }

.teaser-card h3 { margin-bottom: 0.3rem; color: var(--accent); }
.teaser-card p { color: var(--muted); font-size: 0.95rem; }

.subtitle { color: rgba(255, 255, 255, 0.94); font-size: 1.15rem; font-weight: 600; }

main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
}

section { margin-bottom: 3.5rem; scroll-margin-top: 5rem; }

h2 {
  font-size: 1.7rem;
  margin-bottom: 1.25rem;
  color: var(--accent);
  border-bottom: 3px solid var(--border);
  padding-bottom: 0.5rem;
}

#about p { color: var(--muted); font-size: 1.05rem; }

/* Search */
.search-bar { margin-bottom: 1.5rem; }

#design-search {
  width: 100%;
  max-width: 400px;
  padding: 0.7rem 1rem;
  border: 2px solid var(--border);
  border-radius: 999px;
  font-size: 1rem;
  background: var(--bg-alt);
  color: var(--text);
}

#design-search:focus {
  outline: none;
  border-color: var(--accent);
}

/* Gallery controls */
.gallery-controls {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-btn {
  border: 2px solid var(--border);
  background: var(--bg-alt);
  color: var(--text);
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease;
}

.filter-btn:hover { transform: rotate(-1.5deg) scale(1.05); }

.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: rotate(1deg);
}

/* Masonry-Grid (Pinterest-Stil) */
.masonry {
  columns: 4 220px;
  column-gap: 1.25rem;
  margin-bottom: 1rem;
}

.masonry-card {
  position: relative;
  display: block;
  break-inside: avoid;
  margin-bottom: 1.25rem;
  border-radius: 16px;
  overflow: hidden;
  border: 3px solid var(--bg-alt);
  box-shadow: 0 4px 14px rgba(74, 59, 50, 0.12);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.masonry-card:hover {
  transform: rotate(-1deg) scale(1.02);
  box-shadow: 0 8px 22px rgba(74, 59, 50, 0.2);
}

.masonry-card img {
  width: 100%;
  display: block;
}

.masonry-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.5rem 0.9rem 0.7rem;
  background: linear-gradient(transparent, rgba(30, 15, 5, 0.75));
  color: #fff;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.masonry-card:hover .masonry-overlay { opacity: 1; }

.masonry-overlay h3 { font-size: 0.95rem; margin-bottom: 0.1rem; }
.masonry-overlay p { font-size: 0.85rem; opacity: 0.9; }

.badge-exklusiv {
  display: inline-block;
  background: var(--accent-2);
  color: #4a3200;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
  margin-bottom: 0.35rem;
}

/* Lightbox */
[hidden] { display: none !important; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(30, 15, 5, 0.7);
}

.lightbox-content {
  position: relative;
  background: var(--bg-alt);
  border-radius: 20px;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
}

@media (max-width: 700px) {
  .lightbox-content { grid-template-columns: 1fr; }
}

.lightbox-content img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 240px;
  background: var(--border);
}

.lightbox-info {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.lightbox-badge {
  align-self: flex-start;
  background: var(--accent-2);
  color: #4a3200;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
}

.lightbox-id { color: var(--muted); font-size: 0.8rem; }

.lightbox-info h3 { font-size: 1.4rem; color: var(--text); }

.lightbox-info p { color: var(--muted); }

.lightbox-price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
}

.lightbox-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: auto;
  padding-top: 1rem;
}

.btn {
  display: block;
  text-align: center;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.12s ease;
}

.btn:hover { transform: scale(1.03); }

.btn-whatsapp {
  background: #25d366;
  color: #fff;
}

.btn-buy {
  background: var(--accent);
  color: #fff;
}

.lightbox-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  border: none;
  background: rgba(30, 15, 5, 0.55);
  color: #fff;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-close:hover { background: rgba(30, 15, 5, 0.8); }

.hint { font-size: 0.95rem; font-style: italic; color: var(--muted); }

a { color: var(--accent); }

footer {
  text-align: center;
  padding: 2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-link {
  color: var(--muted);
  font-size: 0.8rem;
  text-decoration: none;
  opacity: 0.7;
}

.footer-link:hover { opacity: 1; text-decoration: underline; }
