/* ==========================================
   Stille Stücke – Gestaltung
   Farben, Schriften und Formen wie im Original
   ========================================== */

:root {
  --cream: #f7f2e9;
  --cream-dark: #ede5d5;
  --cream-light: #faf8f4;
  --sand: #d4c5a9;
  --sage: #8a9a7b;
  --sage-dark: #6b7f5c;
  --terracotta: #b87a5e;
  --brown: #5c4a3a;
  --text: #2d2a26;
  --text-soft: #6b645a;
  --line: rgba(92, 74, 58, 0.12);
  --shadow: 0 10px 30px rgba(92, 74, 58, 0.05);
  --panel: rgba(247, 242, 233, 0.86);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background-color: var(--cream);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}
main { flex: 1; }
img { max-width: 100%; display: block; }

h1, h2, h3, h4, h5 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--brown);
  line-height: 1.2;
}

a { color: inherit; }
:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 3px; border-radius: 6px; }

/* ---------- Kopfzeile ---------- */
header.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247, 242, 233, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(92, 74, 58, 0.08);
}
.nav {
  max-width: 1280px; margin: 0 auto;
  padding: 1.25rem 2rem;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
.logo {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.75rem; font-weight: 500;
  color: var(--brown); letter-spacing: 0.02em;
  display: flex; align-items: center; gap: 0.6rem;
  text-decoration: none; white-space: nowrap;
}
.logo-mark {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--sage) 0%, var(--terracotta) 100%);
  position: relative;
}
.logo-mark::after {
  content: ''; position: absolute; inset: 6px;
  border-radius: 50%; background: var(--cream);
}
.nav ul { display: flex; gap: 2.5rem; list-style: none; }
.nav ul a {
  color: var(--text-soft); text-decoration: none;
  font-size: 0.92rem; letter-spacing: 0.04em;
  transition: color 0.3s; position: relative;
}
.nav ul a:hover, .nav ul a.active { color: var(--brown); }
.nav ul a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 1px; background: var(--terracotta); transition: width 0.3s;
}
.nav ul a:hover::after, .nav ul a.active::after { width: 100%; }

.menu-btn {
  display: none; background: none; border: 1px solid rgba(92, 74, 58, 0.2);
  border-radius: 999px; padding: 0.5rem 1rem; cursor: pointer;
  font: inherit; font-size: 0.88rem; color: var(--brown);
}

/* ---------- Knöpfe ---------- */
.btn-primary, .btn-outline, .btn-etsy {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 1rem 2.2rem; border-radius: 999px;
  text-decoration: none; font: inherit; font-size: 0.92rem; letter-spacing: 0.04em;
  cursor: pointer; transition: all 0.3s; border: 1px solid transparent;
}
.btn-primary { background: var(--brown); color: var(--cream); }
.btn-primary:hover { background: var(--terracotta); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(184, 122, 94, 0.25); }
.btn-outline { background: transparent; color: var(--brown); border-color: rgba(92, 74, 58, 0.25); }
.btn-outline:hover { background: var(--brown); color: var(--cream); border-color: var(--brown); }
.btn-etsy { background: var(--terracotta); color: #fff; }
.btn-etsy:hover { background: var(--brown); transform: translateY(-2px); }
.btn-link { color: var(--brown); font-size: 0.92rem; text-underline-offset: 4px; }
.btn-link:hover { color: var(--terracotta); }

/* ---------- Startseite ---------- */
.hero {
  max-width: 1280px; margin: 2rem auto 0;
  padding: 5rem 3rem 4rem;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 4rem; align-items: center;
}
.hero-text h1 { font-size: clamp(2.5rem, 5vw, 4.2rem); line-height: 1.1; margin-bottom: 1.5rem; }
.hero-text h1 em { font-style: italic; color: var(--terracotta); font-weight: 400; }
.hero-text p { font-size: 1.1rem; color: var(--text-soft); max-width: 480px; margin-bottom: 2.5rem; }
.hero-actions { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }

.hero-visual { position: relative; aspect-ratio: 1; max-width: 460px; justify-self: center; width: 100%; }
.hero-circle {
  position: absolute; inset: 6%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--cream-light) 0%, var(--cream-dark) 70%);
  box-shadow: inset 0 0 0 1px var(--line);
}
.hero-circle::before {
  content: ''; position: absolute; inset: -6%;
  border-radius: 50%; border: 1px dashed rgba(184, 122, 94, 0.35);
}
.hero-visual svg, .hero-visual .hero-photo {
  position: absolute; inset: 6%; width: 88%; height: 88%;
}
.hero-photo { border-radius: 50%; object-fit: cover; }

.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { font-size: clamp(2rem, 3.5vw, 2.6rem); }
.section-header p { color: var(--text-soft); max-width: 600px; margin: 1rem auto 0; }
.section-label {
  font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--terracotta); margin-bottom: 1rem; display: block;
}

.category-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
}
.category-card {
  background: var(--cream-dark); border-radius: 24px;
  padding: 2.5rem 2rem; text-align: center;
  transition: all 0.4s; border: 1px solid transparent;
  text-decoration: none; color: inherit; display: block;
}
.category-card:hover {
  transform: translateY(-6px); background: white;
  box-shadow: 0 20px 60px rgba(92, 74, 58, 0.1); border-color: rgba(92, 74, 58, 0.08);
}
.category-icon {
  width: 80px; height: 80px; margin: 0 auto 1.5rem; border-radius: 50%;
  background: var(--cream); display: flex; align-items: center; justify-content: center;
}
.category-card h3 { font-size: 1.6rem; margin-bottom: 0.6rem; }
.category-card p { color: var(--text-soft); font-size: 0.95rem; margin-bottom: 1.2rem; }
.category-link {
  color: var(--terracotta); font-size: 0.88rem; letter-spacing: 0.05em;
  border-bottom: 1px solid var(--terracotta); padding-bottom: 2px;
}

/* ---------- Bereiche / Panels ---------- */
.panel {
  max-width: 1280px; margin: 2rem auto;
  padding: 4rem 3rem;
  background: var(--panel);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 24px;
  box-shadow: 0 10px 40px rgba(92, 74, 58, 0.06);
}
.panel.narrow { max-width: 860px; }

/* ---------- Filter ---------- */
.toolbar {
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: center;
  margin-bottom: 3rem;
}
.search {
  flex: 1 1 260px; max-width: 360px;
  padding: 0.75rem 1.2rem; border-radius: 999px;
  border: 1px solid rgba(92, 74, 58, 0.2); background: white;
  font: inherit; font-size: 0.92rem; color: var(--text);
}
.filter-bar { display: flex; justify-content: center; gap: 0.5rem; flex-wrap: wrap; }
.filter-btn {
  background: transparent; border: 1px solid rgba(92, 74, 58, 0.15);
  padding: 0.6rem 1.4rem; border-radius: 999px; cursor: pointer;
  font: inherit; font-size: 0.88rem; color: var(--text-soft); transition: all 0.3s;
}
.filter-btn:hover { color: var(--brown); border-color: var(--brown); }
.filter-btn.active { background: var(--brown); color: var(--cream); border-color: var(--brown); }

/* ---------- Karten ---------- */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.product-card {
  background: white; padding: 1.5rem; border-radius: 20px;
  transition: transform 0.4s, box-shadow 0.4s; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 20px 50px rgba(92, 74, 58, 0.1); }
.product-image {
  aspect-ratio: 1; border-radius: 14px; margin-bottom: 1.2rem;
  background: var(--cream); display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden; text-decoration: none;
}
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.product-card:hover .product-image img { transform: scale(1.03); }
.product-tag {
  position: absolute; top: 1rem; left: 1rem;
  background: rgba(247, 242, 233, 0.92); padding: 0.3rem 0.8rem; border-radius: 999px;
  font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brown);
}
.product-tag.sold { background: var(--brown); color: var(--cream); }
.product-info { flex: 1; margin-bottom: 1.2rem; }
.product-info .category { font-size: 0.75rem; letter-spacing: 0.1em; color: var(--text-soft); text-transform: uppercase; }
.product-info h3 { font-size: 1.35rem; margin: 0.2rem 0 0.4rem; }
.product-info h3 a { text-decoration: none; }
.product-info h3 a:hover { color: var(--terracotta); }
.product-row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.product-price { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.4rem; color: var(--terracotta); font-weight: 500; white-space: nowrap; }
.collector-details {
  font-size: 0.82rem; color: var(--text-soft); margin-top: 0.4rem;
  background: var(--cream-dark); padding: 4px 8px; border-radius: 6px; display: inline-block;
}
.card-action {
  width: 100%; padding: 0.8rem; border-radius: 999px; text-align: center;
  font-size: 0.85rem; text-decoration: none; transition: all 0.3s;
  background: var(--terracotta); color: white; border: 1px solid var(--terracotta);
}
.card-action:hover { background: var(--brown); border-color: var(--brown); }
.card-action.muted { background: transparent; color: var(--brown); border-color: rgba(92, 74, 58, 0.2); }
.card-action.muted:hover { background: var(--brown); color: var(--cream); }

.placeholder-icon { width: 44px; height: 44px; stroke: var(--brown); opacity: 0.5; }
.empty, .loading { grid-column: 1 / -1; text-align: center; color: var(--text-soft); padding: 3rem; }

/* ---------- Detailseite ---------- */
.back-link { color: var(--terracotta); text-decoration: none; font-size: 0.9rem; display: inline-block; margin-bottom: 2rem; }
.back-link:hover { text-decoration: underline; }
.detail {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start;
  background: white; padding: 3rem; border-radius: 24px; box-shadow: var(--shadow);
}
.detail-main {
  background: var(--cream); border-radius: 20px; aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.detail-main img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.thumbs { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 1rem; }
.thumbs button {
  width: 72px; height: 72px; border-radius: 12px; overflow: hidden; padding: 0;
  border: 2px solid transparent; cursor: pointer; background: var(--cream);
}
.thumbs button.active { border-color: var(--terracotta); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.detail h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 1rem; }
.facts { background: var(--cream); padding: 1.5rem; border-radius: 16px; margin-bottom: 2rem; display: grid; gap: 0.5rem; }
.facts div { display: grid; grid-template-columns: 150px 1fr; gap: 1rem; }
.facts strong { color: var(--brown); font-weight: 600; font-size: 0.9rem; }
.detail h3 { font-size: 1.4rem; margin-bottom: 0.5rem; }
.detail .desc { color: var(--text-soft); line-height: 1.8; margin-bottom: 2.5rem; white-space: pre-line; }
.detail .price-big { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 2rem; color: var(--terracotta); margin-bottom: 1.5rem; }
.sold-note { background: var(--cream-dark); padding: 1rem 1.2rem; border-radius: 12px; color: var(--text-soft); font-size: 0.92rem; }

.lightbox {
  position: fixed; inset: 0; background: rgba(45, 42, 38, 0.88); z-index: 500;
  display: none; align-items: center; justify-content: center; padding: 2rem; cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 12px; }

/* ---------- Wissen & Textseiten ---------- */
.article {
  background: white; padding: 2.5rem 3rem; border-radius: 24px; box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}
.article .section-label { margin-bottom: 0.5rem; }
.article h3 { font-size: 1.8rem; margin-bottom: 1rem; }
.article p { color: var(--text-soft); white-space: pre-line; }
.article img { border-radius: 16px; margin-top: 1.5rem; max-height: 420px; object-fit: cover; width: 100%; }
.toc { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-bottom: 2.5rem; }
.toc a {
  text-decoration: none; font-size: 0.85rem; color: var(--text-soft);
  border: 1px solid var(--line); padding: 0.4rem 1rem; border-radius: 999px; background: white;
}
.toc a:hover { color: var(--brown); border-color: var(--brown); }
.legal { background: white; padding: 3rem; border-radius: 24px; white-space: pre-line; color: var(--text-soft); box-shadow: var(--shadow); }

/* ---------- Fußzeile ---------- */
footer.site-footer { background: var(--cream-dark); padding: 4rem 2rem 2rem; margin-top: 5rem; }
.footer-inner {
  max-width: 1280px; margin: 0 auto 3rem;
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem;
}
.footer-brand p { color: var(--text-soft); font-size: 0.92rem; margin-top: 1rem; max-width: 320px; }
.footer-col h5 { font-family: 'Inter', sans-serif; font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--brown); margin-bottom: 1.2rem; font-weight: 600; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.6rem; }
.footer-col a { color: var(--text-soft); text-decoration: none; font-size: 0.92rem; transition: color 0.3s; }
.footer-col a:hover { color: var(--terracotta); }
.footer-bottom {
  max-width: 1280px; margin: 0 auto; padding-top: 2rem;
  border-top: 1px solid rgba(92, 74, 58, 0.1);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: 0.85rem; color: var(--text-soft);
}
.footer-bottom a { color: var(--text-soft); text-decoration: none; }
.footer-bottom a:hover { color: var(--terracotta); }

/* ---------- Mobil ---------- */
@media (max-width: 1000px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .nav ul { gap: 1.5rem; }
}
@media (max-width: 860px) {
  body { background-attachment: scroll; }
  .nav { padding: 1rem 1.25rem; flex-wrap: wrap; gap: 0; }
  .menu-btn { display: inline-block; }
  .nav nav { width: 100%; display: none; }
  .nav nav.open { display: block; }
  .nav ul { flex-direction: column; gap: 0; padding: 1rem 0 0.5rem; }
  .nav ul a { display: block; padding: 0.75rem 0; font-size: 1rem; border-bottom: 1px solid var(--line); }
  .nav ul a::after { display: none; }
  .hero { grid-template-columns: 1fr; padding: 3rem 1.5rem; gap: 2.5rem; margin: 1rem; }
  .hero-visual { max-width: 300px; }
  .category-grid { grid-template-columns: 1fr; }
  .panel { margin: 1rem; padding: 2.5rem 1.25rem; border-radius: 20px; }
  .detail { grid-template-columns: 1fr; gap: 2rem; padding: 1.25rem; }
  .facts div { grid-template-columns: 1fr; gap: 0; }
  .article, .legal { padding: 1.75rem 1.25rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  footer.site-footer { margin-top: 3rem; }
}
@media (max-width: 560px) {
  .product-grid { grid-template-columns: 1fr; }
  .logo { font-size: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
