/* ===================================================
   WERX Goldschmiede – Custom Stylesheet
   Brand: dark charcoal #3d3d3d, gold #b5963e, off-white #f0efea
   =================================================== */

@font-face {
  font-family: "P22FLLWExhibition";
  src: url("/fonts/p22-fllw-exhibition.ttf") format("truetype");
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
body {
  font-family: "Helvetica Neue", Arial, sans-serif;
  background-color: #f0efea;
  color: #3d3d3d;
  line-height: 1.65;
}

a { color: inherit; text-decoration: none; transition: color .25s; }
img { display: block; max-width: 100%; }

/* ---------- Utility ---------- */
.container { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 max(5vw, 1.5rem); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

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

.site-header .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

/* Logo block */
.site-logo {
  display: block;
  text-align: center;
}

.site-logo img {
  height: auto;
  max-height: 100px;
  width: auto;
  display: inline-block;
}

/* Tagline below logo */
.site-tagline {
  font-size: 1rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: #8a8680;
  margin-top: .35rem;
}

/* Desktop nav */
.main-nav {
  margin-top: 1.25rem;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 3rem;
}

.main-nav a {
  font-size: .75rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #3d3d3d;
}

.main-nav a:hover,
.main-nav a.active {
  color: #b5963e;
}

/* Mobile hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  padding: .5rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #3d3d3d;
  transition: all .3s;
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 24px;
  height: 2px;
  background: #3d3d3d;
  transition: all .3s;
  position: absolute;
  left: 0;
}

.nav-toggle span::before { top: -7px; }
.nav-toggle span::after  { top:  7px; }

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  background: #fff;
  border-top: 1px solid #e2dfd8;
  box-shadow: 0 6px 12px rgba(0,0,0,.08);
}

.mobile-nav.is-open { display: block; }

.mobile-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.25rem 0;
  gap: 1rem;
}

.mobile-nav a {
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: .5rem 1rem;
  display: block;
}

.mobile-nav a:hover { color: #b5963e; }

@media (max-width: 768px) {
  .main-nav  { display: none; }
  .nav-toggle { display: block; }
}

/* ===================================================
   HERO
   =================================================== */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #2c2a27;
  padding: 4vw 1.5rem;
  width: 100%;
  min-height: 40vh;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('/images/jewellery/E-3.jpg');
  background-size: cover;
  background-position: center;
  opacity: .60;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 1.5rem;
  max-width: 65ch;
}

.hero-content h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: #fff;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.9), 0 0 4px rgba(0,0,0,0.7);
}

.hero-content p {
  font-size: clamp(.95rem, 2vw, 1.15rem);
  color: #f0efea;
  margin-bottom: 2rem;
  font-weight: 300;
  line-height: 1.6;
  text-shadow: 0 1px 8px rgba(0,0,0,0.9), 0 0 3px rgba(0,0,0,0.7);
}

.btn-outline-white {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 2rem;
  border: 1px solid #fff;
  color: #fff;
  font-size: .75rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  transition: background .25s, color .25s;
}

.btn-outline-white:hover {
  background: #fff;
  color: #3d3d3d;
}

/* ===================================================
   SECTIONS
   =================================================== */
.section { padding: 5rem 0; }
.section--white { background: #fff; }
.section--cream  { background: #f0efea; }

.section-label {
  display: block;
  font-size: .7rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #b5963e;
  font-weight: 600;
  margin-bottom: .75rem;
}

.section-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  color: #2c2a27;
  margin-bottom: 1.5rem;
}

.section-text {
  color: #6b6760;
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.05rem;
}

.text-center { text-align: center; }

/* ===================================================
   CINEMATIC PHOTO STRIP
   Full-width editorial divider, no parallax
   =================================================== */
.photo-strip {
  width: 100%;
  height: 260px;
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
}

.photo-strip--slim { height: 200px; }

@media (max-width: 768px) {
  .photo-strip       { height: 160px; }
  .photo-strip--slim { height: 120px; }
}

/* ===================================================
   WERKSTATT SECTION
   Full-bleed crafts room background with overlay text
   =================================================== */
.werkstatt-section {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #2c2a27;
}

.werkstatt-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  background-attachment: scroll;
  opacity: .50;
}

.werkstatt-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 5rem 1.5rem;
  max-width: 700px;
}

.werkstatt-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: #fff;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 8px rgba(0,0,0,.5);
}

.werkstatt-text {
  font-size: clamp(.95rem, 2vw, 1.1rem);
  color: #e0ddd6;
  font-weight: 300;
  text-shadow: 0 1px 4px rgba(0,0,0,.4);
  max-width: 600px;
  margin: 0 auto;
}

.section-label--light {
  color: #c9a94a;
}

/* ===================================================
   GALLERY CAROUSEL
   =================================================== */
.gallery-carousel {
  position: relative;
  margin-top: 3.5rem;
  user-select: none;
}

.carousel-viewport {
  overflow: hidden;
  border-radius: 2px;
}

.carousel-track {
  display: flex;
  transition: transform .45s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 calc(100% / 4);
  padding: 3px;
}

@media (max-width: 900px) {
  .carousel-slide { flex: 0 0 50%; }
}

@media (max-width: 580px) {
  .carousel-slide { flex: 0 0 100%; }
}

.carousel-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: #e0ddd6;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}

.carousel-slide:hover img {
  transform: scale(1.03);
}

/* Navigation buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,.92);
  border: 1px solid #d8d4cc;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #3d3d3d;
  transition: background .2s, color .2s, opacity .2s;
  box-shadow: 0 2px 10px rgba(0,0,0,.12);
}

.carousel-btn:hover {
  background: #b5963e;
  border-color: #b5963e;
  color: #fff;
}

.carousel-btn:disabled {
  opacity: .35;
  cursor: default;
  pointer-events: none;
}

.carousel-btn--prev { left: -24px; }
.carousel-btn--next { right: -24px; }

@media (max-width: 600px) {
  .carousel-btn--prev { left: 4px; }
  .carousel-btn--next { right: 4px; }
}

/* Progress counter */
.carousel-progress {
  text-align: center;
  margin-top: 1.25rem;
  font-size: .8rem;
  letter-spacing: .1em;
  color: #8a8680;
}

.carousel-progress-sep { margin: 0 .25rem; }

/* ===================================================
   PORTRAIT GRID (a–j pieces)
   5 columns desktop, 3 tablet, 2 mobile
   =================================================== */
.portrait-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-top: 3.5rem;
}

@media (max-width: 900px) {
  .portrait-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 580px) {
  .portrait-grid { grid-template-columns: repeat(2, 1fr); gap: 4px; }
}

.portrait-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: #e0ddd6;
}

.portrait-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}

.portrait-item:hover img { transform: scale(1.03); }

.gallery-cta {
  text-align: center;
  margin-top: 4rem;
}

.gallery-cta p {
  color: #6b6760;
  font-style: italic;
  margin-bottom: 1.25rem;
}

.btn-dark {
  display: inline-block;
  padding: .75rem 2rem;
  background: #2c2a27;
  color: #fff;
  font-size: .75rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  transition: background .25s;
}

.btn-dark:hover { background: #b5963e; color: #fff; }

/* ===================================================
   CONTACT PAGE
   =================================================== */
.contact-section { padding: 5rem 0; }

.contact-logo-col {
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-logo-img {
  width: 100%;
  max-width: 360px;
  display: block;
}

.contact-cta { margin-top: 2.5rem; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 3rem;
  align-items: start;
}

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-werkstatt-note {
  margin-top: 1.5rem;
  color: #6b6760;
  font-size: .95rem;
  font-style: italic;
}

.contact-card-img {
  width: 100%;
  border-radius: 2px;
  box-shadow: 0 4px 24px rgba(0,0,0,.12);
}

.contact-info-list {
  list-style: none;
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-info-list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-icon {
  flex-shrink: 0;
  width: 20px;
  color: #b5963e;
  margin-top: .15rem;
}

.contact-info-list strong { display: block; font-size: .7rem; letter-spacing: .15em; text-transform: uppercase; color: #b5963e; margin-bottom: .15rem; }

/* Map embed */
.map-embed { margin-top: 3rem; }
.map-embed iframe { width: 100%; height: 320px; border: none; border-radius: 2px; }

.map-consent {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #f0eee9;
  border-radius: 2px;
  padding: 3rem 2rem;
  min-height: 200px;
  color: #6b6760;
  font-size: .9rem;
  line-height: 1.6;
}

.map-consent p { margin: 0 0 1.25rem; }

/* ===================================================
   ENVIRONMENT GRID (E-1 – E-7 under Philosophie)
   =================================================== */
/* .philosophie-section { padding-bottom: 0; } removed to add spacing below image */

.env-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin-top: 3rem;
}

@media (max-width: 900px) {
  .env-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 580px) {
  .env-grid { grid-template-columns: repeat(2, 1fr); }
}

.env-item {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #e0ddd6;
}

.env-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}

.env-item:hover img { transform: scale(1.04); }

.env-single {
  margin: max(4vw, 3.5rem) auto 0;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 21 / 9;
  background: #e0ddd6;
  border-radius: 2px;
}

.env-single img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .7s ease;
}

.env-single:hover img {
  transform: scale(1.03);
}

/* ===================================================
   PAGE HERO (Kontakt / Impressum / Datenschutz)
   =================================================== */
.page-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #2c2a27;
  padding: 6vw 1.5rem;
  width: 100%;
  min-height: 40vh;
  aspect-ratio: 21 / 9;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  opacity: .55;
}

.page-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 1.5rem;
}

.page-hero-label {
  display: block;
  font-size: .7rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #c9a94a;
  font-weight: 600;
  margin-bottom: .75rem;
}

.page-hero-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 3rem);
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,.5);
}

/* ===================================================
   IMPRINT / DATENSCHUTZ
   =================================================== */
.legal-section { padding: 5rem 0; }

.legal-content {
  max-width: 720px;
  margin: 2.5rem auto 0;
}

.legal-content h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.4rem;
  color: #2c2a27;
  margin: 2rem 0 .75rem;
}

.legal-content h2:first-child { margin-top: 0; }

.legal-content p,
.legal-content ul,
.legal-content ol {
  color: #6b6760;
  margin-bottom: 1rem;
  font-size: .95rem;
}

.legal-content ul, .legal-content ol { padding-left: 1.5rem; }

/* ===================================================
   MOBILE TOUCH & ACCESSIBILITY IMPROVEMENTS
   =================================================== */

/* Prevent horizontal overflow on all screens */
html, body { overflow-x: hidden; }

/* Ensure buttons and links have adequate touch targets */
.btn-dark, .btn-outline-white {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 480px) {
  /* Full-width CTA buttons on small phones */
  .gallery-cta .btn-dark,
  .contact-section .btn-dark {
    display: block;
    text-align: center;
  }

  /* Tighter section padding on small phones */
  .section { padding: 3rem 0; }
  .contact-section { padding: 3rem 0; }
  .legal-section { padding: 3rem 0; }

  /* Map embed shorter on mobile */
  .map-embed iframe { height: 220px; }

  /* Better hero sizing on mobile, removing aspect ratio forcing */
  .hero, .page-hero {
    aspect-ratio: auto;
    min-height: 40vh;
    padding: 4rem 1.5rem;
  }

  .hero-bg, .page-hero-bg {
    background-position: center center;
  }
}
.site-footer {
  background: #2c2a27;
  color: #b0ada7;
  padding: 4.5rem 0 0;
  border-top: 4px solid #b5963e;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
}

.footer-heading {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 1.5rem;
}

.footer-list { list-style: none; display: flex; flex-direction: column; gap: .75rem; }

.footer-list li { display: flex; gap: .75rem; align-items: flex-start; }

@media (max-width: 768px) {
  .footer-list li { justify-content: center; }
}

.footer-list .icon { color: #b5963e; flex-shrink: 0; width: 18px; }

.hours-list { list-style: none; display: flex; flex-direction: column; gap: .5rem; }

.hours-row { display: flex; gap: 2rem; }
.hours-row .day { width: 90px; }
.hours-row.closed { color: #7a776f; }

@media (max-width: 768px) { .hours-row { justify-content: center; } }

/* Footer third column: left-aligned on desktop, centered on mobile */
.footer-col-social {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
}

@media (max-width: 768px) {
  .footer-col-social {
    align-items: center;
  }
  .footer-col-social .footer-heading {
    text-align: center;
  }
}

.footer-hours-note {
  margin-top: 1rem;
  font-size: .85rem;
  color: #7a776f;
}

.social-links { display: flex; gap: .75rem; }

@media (max-width: 768px) { .social-links { justify-content: center; } }

.social-link {
  width: 40px; height: 40px;
  background: #3a3835;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .25s;
}

.social-link:hover { background: #b5963e; color: #fff; }

.social-link svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.footer-legal {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

@media (max-width: 768px) { .footer-legal { justify-content: center; } }

.footer-legal a { font-size: .8rem; color: #7a776f; }
.footer-legal a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid #3a3835;
  margin-top: 3.5rem;
  padding: 1.5rem 0;
  text-align: center;
  font-size: .8rem;
  color: #7a776f;
}
-top: 3.5rem;
  padding: 1.5rem 0;
  text-align: center;
  font-size: .8rem;
  color: #7a776f;
}
