/* =========================================================
   Stolze Einzelstücke — style.css
   ========================================================= */

:root {
  /* Font sizes — Desktop */
  --fs-kicker: 16px;
  --fs-kicker-lg: 16px;
  --fs-body: 20px;
  --fs-body-lg: 20px;
  --fs-btn: 18px;
  --fs-footer: 16px;
  --fs-h1: 60px;
  --fs-h2: 48px;
  --fs-legal-h1: 60px;
  --fs-legal-h2: 20px;

  /* Font sizes — Mobile (900px breakpoint) */
  --fs-h1-mobile: 34px;
  --fs-h2-mobile: 28px;
  --fs-legal-h1-mobile: 30px;
}

@font-face {
  font-family: 'Cera Basic';
  src: url('assets/fonts/CeraBasic-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Cera Basic';
  src: url('assets/fonts/CeraBasic-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

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

body {
  font-family: 'Cera Basic', sans-serif;
  color: #2b2620;
  background: #fdfcfa;
  line-height: 1.52;
}

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 48px; }

img { max-width: 100%; }

/* ===== HERO — full-bleed background image ===== */
.hero {
  position: relative;
  padding: 64px 0 200px;
  /* JPG-Fallback für Browser ohne AVIF-Unterstützung in background-image */
  background-image:
    linear-gradient(180deg, rgba(20,16,10,0.32) 0%, rgba(20,16,10,0.5) 55%, rgba(20,16,10,0.72) 100%),
    url('assets/img/hero-ohrringe.jpg');
  background-size: cover; 
  background-position: center 70%;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), 0 100%);
}
@supports (background-image: image-set(url('') type('image/avif'))) {
  .hero {
    background-image:
      linear-gradient(180deg, rgba(20,16,10,0.32) 0%, rgba(20,16,10,0.5) 55%, rgba(20,16,10,0.72) 100%),
      image-set(
        url('assets/img/hero-ohrringe.avif') type('image/avif'),
        url('assets/img/hero-ohrringe.jpg') type('image/jpeg')
      );
  }
}
.hero-top {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-bottom: 190px;
}
.hero-top img.logo { height: 112px; display: block; }

.btn {
  display: inline-block;
  background: #ccaf8f;
  color: #f3ecdf;
  padding: 12px 28px;
  text-decoration: none;
  font-size: var(--fs-btn);
  font-weight: 400;
  border-radius: 999px;
  transition: background .2s;
  white-space: nowrap;
}
.btn:hover { background: #b6926e; }

.hero-main { display: block; max-width: 640px; }
.hero-text .kicker {
  color: #e4d3ba;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: var(--fs-kicker-lg);
  font-weight: 700;
  margin-bottom: 12px;
}
.hero-text h1 {
  font-size: var(--fs-h1);
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 22px;
}
.hero-text p {
  font-size: var(--fs-body-lg);
  color: #fff;
  max-width: 420px;
  margin-bottom: 36px;
}

/* ===== GALLERY — 2 / hoch-Mitte / 2 Grid ===== */
.gallery {
  background: #f3ecdf;
  padding: 90px 0;
  clip-path: polygon(0 20px, 100% 0, 100% 100%, 0 100%);
  margin-top: -20px;
  position: relative;
  z-index: 1;
}
.gallery-head { margin-bottom: 32px; }
.gallery-head .kicker {
  color: #a98a5e;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: var(--fs-kicker);
  font-weight: 700;
  margin-bottom: 10px;
}
.gallery-head h2 {
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: 1.15;
  color: #211c15;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
  height: 640px;
}
.gallery-grid figure {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}
.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.gallery-grid figure:hover img { transform: scale(1.05); }

.gc-left-top     { grid-column: 1; grid-row: 1; }
.gc-left-bottom  { grid-column: 1; grid-row: 2; }
.gc-center       { grid-column: 2; grid-row: 1 / 3; }
.gc-right-top    { grid-column: 3; grid-row: 1; }
.gc-right-bottom { grid-column: 3; grid-row: 2; }

/* ===== ABOUT ===== */
.about {
  background: #fdfcfa;
  padding: 90px 0;
  clip-path: polygon(0 0, 100% 20px, 100% 100%, 0 100%);
  margin-top: -20px;
  position: relative;
  z-index: 1;
}
.about .wrap {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 120px;
  align-items: center;
}
.about-img { border-radius: 12px; overflow: hidden; }
.about-img img { width: 100%; display: block; }
.about-text .kicker {
  color: #a98a5e;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: var(--fs-kicker);
  font-weight: 700;
  margin-bottom: 16px;
}
.about-text h2 {
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 16px;
  color: #211c15;
}
.about-text p { color: #5f5646; font-size: var(--fs-body); max-width: 480px; }

/* ===== MARKETS ===== */
.markets {
  background: #f3ecdf;
  padding: 90px 0;
  clip-path: polygon(0 0, 100% 22px, 100% 100%, 0 100%);
  margin-top: -22px;
  position: relative;
  z-index: 1;
}
.markets-inner { max-width: 560px; }
.markets .kicker {
  color: #ccaf8f;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: var(--fs-kicker);
  font-weight: 700;
  margin-bottom: 16px;
}
.markets h2 {
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 14px;
  color: #211c15;
}
.markets p { color: #5f5646; margin-bottom: 30px; font-size: var(--fs-body); }

/* ===== FOOTER ===== */
footer {
  background: #fdfcfa;
  padding: 90px 0;
  clip-path: polygon(0 0, 100% 20px, 100% 100%, 0 100%);
  margin-top: -20px;
  position: relative;
  z-index: 1;
}
footer img { height: 60px; margin-bottom: 16px; opacity: 1; }
footer p { font-size: var(--fs-footer); color: #8a7a63; margin-top: 4px; }
footer .footer-link {
  color: #8a7a63;
  text-decoration: underline;
  text-underline-offset: 3px;
}
footer .footer-link:hover { color: #2b2620; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero {
    padding: 32px 0 48px;
    background-position: center 80%;
  }
  .hero-top img.logo { height: 66px; }
  .gallery { padding: 56px 0; }
  .about   { padding: 56px 0; }
  .markets { padding: 56px 0; }
  footer   { padding: 56px 0; }
  .wrap { padding: 0 24px; }
  .hero-top { padding-bottom: 140px; }
  .hero-text h1 { font-size: var(--fs-h1-mobile); }

  .gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: none;
    height: auto;
    gap: 10px;
  }
  .gc-left-top, .gc-left-bottom, .gc-right-top, .gc-right-bottom, .gc-center {
    grid-column: auto;
    grid-row: auto;
    height: auto;
  }
  .gc-center      { grid-column: 1 / 3; order: 1; aspect-ratio: 4/5; }
  .gc-left-top    { order: 2; aspect-ratio: 1; }
  .gc-right-top   { order: 3; aspect-ratio: 1; }
  .gc-left-bottom { order: 4; aspect-ratio: 1; }
  .gc-right-bottom{ order: 5; aspect-ratio: 1; }
  .gallery-grid img { width: 100%; height: 100%; object-fit: cover; display: block; }

  .gallery-head h2, .about-text h2, .markets h2 { font-size: var(--fs-h2-mobile); }

  .about .wrap { display: flex; flex-direction: column; gap: 30px; }
  .about-img  { order: 2; }
  .about-text { order: 1; }
}

/* ===== LEGAL PAGES (Impressum etc.) ===== */
.legal-header {
  padding: 64px 0;
}
.legal-logo { height: 80px; display: block; }

.legal {
  padding: 64px 0 90px;
}
.legal h1 {
  font-size: var(--fs-legal-h1);
  font-weight: 700;
  color: #211c15;
  margin-bottom: 48px;
}
.legal-block {
  margin-bottom: 36px;
  max-width: 640px;
}
.legal-block h2 {
  font-size: var(--fs-legal-h2);
  font-weight: 700;
  color: #a98a5e;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.legal-block p {
  font-size: var(--fs-body);
  color: #5f5646;
  line-height: 1.52;
}
.legal-block a {
  color: #a98a5e;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-block a:hover { color: #2b2620; }

@media (max-width: 900px) {
  .legal-header { padding: 24px 0; }
  .legal-logo { height: 48px; }
  .legal { padding: 40px 0 56px; }
  .legal h1 { font-size: var(--fs-legal-h1-mobile); margin-bottom: 32px; }
}
