/* ═══════════════════════════════════════════════════════════════════════════
   steinmetz-kategorie.css — Shared styles for Steinmetz Antiquitäten pages
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Variables ─────────────────────────────────────────────────────────── */
:root {
  --cream:      #F5F0E8;
  --cream-dark: #EDE5D6;
  --brown:      #2C1810;
  --brown-deep: #1A0F08;
  --gold:       #C9A84C;
  --gold-light: #DFC06A;
  --gold-pale:  #F0DFA0;
  --warm-grey:  #8B7355;
  --text-body:  #3D2B1F;
}

/* ─── Reset & Base ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Lato', sans-serif;
  background-color: var(--cream);
  color: var(--text-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ─── Grain Overlay ─────────────────────────────────────────────────────── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.025;
  pointer-events: none;
  z-index: 9999;
}

/* ─── Scroll Animations ─────────────────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.fade-up.visible            { opacity: 1; transform: translateY(0); }
.fade-up.delay-1            { transition-delay: 0.12s; }
.fade-up.delay-2            { transition-delay: 0.24s; }
.fade-up.delay-3            { transition-delay: 0.36s; }
.fade-up.delay-4            { transition-delay: 0.48s; }

/* ─── Utility ───────────────────────────────────────────────────────────── */
.section-label {
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 10px;
}

/* ─── Buttons ───────────────────────────────────────────────────────────── */
.btn-primary {
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brown);
  background: var(--gold);
  border: 2px solid var(--gold);
  padding: 14px 32px;
  cursor: pointer;
  display: inline-block;
  transition: background 0.25s, color 0.25s, transform 0.2s;
}
.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-2px);
}

.btn-gold-lg {
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brown);
  background: var(--gold);
  border: 2px solid var(--gold);
  padding: 17px 48px;
  cursor: pointer;
  display: inline-block;
  transition: background 0.25s, color 0.25s, transform 0.2s, box-shadow 0.25s;
}
.btn-gold-lg:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(201, 168, 76, 0.3);
}

/* ─── NAVBAR ────────────────────────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 18px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(26, 15, 8, 0.97);
  box-shadow: 0 2px 24px rgba(0,0,0,0.3);
  transition: padding 0.3s ease;
}
#navbar.at-top {
  background: transparent;
  box-shadow: none;
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--cream);
  letter-spacing: 0.04em;
  line-height: 1.2;
}
.nav-logo span {
  display: block;
  font-size: 0.52rem;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
}
.nav-links a {
  font-family: 'Lato', sans-serif;
  font-weight: 400;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.82);
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--gold); }

.nav-cta {
  color: var(--brown) !important;
  background: var(--gold);
  padding: 8px 20px;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--gold-light) !important; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--cream);
  transition: transform 0.3s;
}

/* ─── CATEGORY HERO ─────────────────────────────────────────────────────── */
.cat-hero {
  height: 52vh;
  min-height: 320px;
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding-bottom: 52px;
}

.cat-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 40%;
  transform: scale(1.04);
  transition: transform 8s ease;
}
.cat-hero-bg.loaded { transform: scale(1); }

.cat-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(26, 15, 8, 0.90) 0%,
    rgba(26, 15, 8, 0.45) 50%,
    rgba(26, 15, 8, 0.25) 100%
  );
}

.cat-hero-content {
  position: relative;
  z-index: 2;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 40px;
  width: 100%;
}

.cat-hero-content .section-label { margin-bottom: 10px; }

.cat-hero-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 500;
  color: var(--cream);
  line-height: 1.18;
}

.cat-hero-content h1 em {
  font-style: italic;
  color: var(--gold-pale);
}

/* ─── BREADCRUMB ────────────────────────────────────────────────────────── */
.breadcrumb-bar {
  background: var(--brown-deep);
  padding: 11px 40px;
  border-bottom: 1px solid rgba(201, 168, 76, 0.15);
}
.breadcrumb-bar-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.breadcrumb-bar a,
.breadcrumb-bar span {
  font-family: 'Lato', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: rgba(245, 240, 232, 0.45);
  transition: color 0.2s;
}
.breadcrumb-bar a:hover { color: var(--gold); }
.breadcrumb-sep {
  color: rgba(201, 168, 76, 0.35);
  font-size: 0.75rem;
}
.breadcrumb-bar .current { color: rgba(245, 240, 232, 0.7); }

/* ─── PRODUCTS SECTION ──────────────────────────────────────────────────── */
.products-section {
  padding: 80px 40px 100px;
  background: var(--cream);
}
.products-section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.products-header {
  margin-bottom: 52px;
  max-width: 580px;
}
.products-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 500;
  color: var(--brown);
  line-height: 1.25;
  margin-bottom: 12px;
}
.products-header p {
  font-size: 0.92rem;
  color: var(--warm-grey);
  font-weight: 300;
  line-height: 1.8;
}

.product-count {
  font-family: 'Lato', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(139, 115, 85, 0.6);
  margin-top: 8px;
  display: block;
}

/* ─── PRODUCT GRID ──────────────────────────────────────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

/* ─── PRODUCT CARD ──────────────────────────────────────────────────────── */
.product-card {
  background: white;
  overflow: hidden;
  cursor: default;
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.35s ease;
  position: relative;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(44, 24, 16, 0.18);
  z-index: 2;
}

.product-card-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-size: cover;
  background-position: center;
  background-color: var(--warm-grey);
  overflow: hidden;
  position: relative;
}

.product-card-img-inner {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.product-card:hover .product-card-img-inner {
  transform: scale(1.06);
}

.product-card-info {
  padding: 16px 18px 20px;
  border-top: 2px solid var(--gold);
  background: white;
}

.product-card-name {
  font-family: 'Playfair Display', serif;
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--brown);
  line-height: 1.35;
  margin-bottom: 5px;
}

.product-card-desc {
  font-size: 0.78rem;
  color: var(--warm-grey);
  font-weight: 300;
  letter-spacing: 0.03em;
  line-height: 1.5;
}

/* ─── CTA BANNER ────────────────────────────────────────────────────────── */
.cta-banner {
  background: var(--brown);
  padding: 88px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.07) 0%, transparent 70%);
  pointer-events: none;
}
.cta-banner-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
}
.cta-banner-eyebrow {
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  display: block;
}
.cta-banner h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  font-weight: 500;
  color: var(--cream);
  line-height: 1.28;
  margin-bottom: 36px;
}
.cta-banner h2 em {
  font-style: italic;
  color: var(--gold-pale);
}

/* ─── FOOTER ────────────────────────────────────────────────────────────── */
#footer {
  background: var(--brown-deep);
  padding: 68px 40px 38px;
  position: relative;
}
#footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  opacity: 0.5;
}
.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 52px;
  border-bottom: 1px solid rgba(139, 115, 85, 0.2);
}
.footer-brand .logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--cream);
  line-height: 1.3;
}
.footer-brand .logo-sub {
  font-family: 'Lato', sans-serif;
  font-size: 0.58rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 4px;
  margin-bottom: 18px;
  display: block;
}
.footer-brand p {
  font-size: 0.84rem;
  color: rgba(245, 240, 232, 0.48);
  line-height: 1.75;
  font-weight: 300;
  max-width: 220px;
}
.footer-col h4 {
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 0.63rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.footer-col p,
.footer-col address {
  font-style: normal;
  font-size: 0.86rem;
  color: rgba(245, 240, 232, 0.55);
  line-height: 1.85;
  font-weight: 300;
}
.footer-col a {
  color: rgba(245, 240, 232, 0.5);
  font-size: 0.86rem;
  font-weight: 300;
  display: block;
  line-height: 2.1;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  max-width: 1120px;
  margin: 30px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p {
  font-size: 0.74rem;
  color: rgba(245, 240, 232, 0.28);
  letter-spacing: 0.04em;
}
.footer-bottom-links {
  display: flex;
  gap: 24px;
}
.footer-bottom-links a {
  font-size: 0.74rem;
  color: rgba(245, 240, 232, 0.32);
  transition: color 0.2s;
}
.footer-bottom-links a:hover { color: var(--gold); }

/* ─── RESPONSIVE ────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  #navbar { padding: 16px 24px; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(26, 15, 8, 0.98);
    padding: 24px;
    gap: 18px;
    align-items: flex-start;
  }
  .nav-hamburger { display: flex; }

  .cat-hero { height: 40vh; padding-bottom: 36px; }
  .cat-hero-content { padding: 0 24px; }
  .breadcrumb-bar { padding: 11px 24px; }

  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 1px; }
  .products-section { padding: 60px 24px 80px; }

  .cta-banner { padding: 68px 24px; }
  #footer { padding: 52px 24px 32px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; }
}
