/* ===== Momentsmosaik Landing Page ===== */

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

:root {
  --bg: #FAF6F1;
  --bg-section: #F3EDE4;
  --accent: #D4A574;
  --accent-hover: #C4945F;
  --dark: #2C2418;
  --secondary: #7A6B5D;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(44,36,24,.08);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Lora', Georgia, serif;
  color: var(--dark);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

.section-padding { padding: 100px 24px; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  text-align: center;
  margin-bottom: 16px;
  color: var(--dark);
}

.section-subtitle {
  text-align: center;
  color: var(--secondary);
  font-size: 1.1rem;
  margin-bottom: 56px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Scroll Animations --- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: var(--delay, 0s);
}
.fade-up.visible {
  opacity: 1;
  transform: none;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 16px 24px;
  transition: background 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease;
  background: transparent;
}

.navbar.scrolled {
  background: rgba(250, 246, 241, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(44, 36, 24, 0.08);
  padding: 10px 24px;
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--dark);
  z-index: 1001;
}

.nav-logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  opacity: 0.85;
  mix-blend-mode: multiply;
}

.nav-logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  display: inline-block;
  padding: 8px 14px;
  font-size: 0.9rem;
  color: var(--dark);
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.25s ease, color 0.25s ease;
  white-space: nowrap;
}

.nav-link:hover {
  background: rgba(212, 165, 116, 0.15);
  color: var(--accent-hover);
}

.nav-link.active {
  background: rgba(212, 165, 116, 0.2);
  color: var(--accent-hover);
  font-weight: 700;
}

.nav-etsy {
  background: var(--accent);
  color: #fff !important;
  font-weight: 700;
  border-radius: 8px;
  padding: 8px 18px;
}
.nav-etsy:hover {
  background: var(--accent-hover);
  color: #fff !important;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-hamburger.open .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-hamburger.open .hamburger-line:nth-child(2) {
  opacity: 0;
}
.nav-hamburger.open .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(160deg, #FAF6F1 0%, #F3EDE4 50%, #EDE5D8 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 24px;
}

.hero-logo {
  width: 220px;
  margin: 0 auto 32px;
  opacity: 0.85;
  mix-blend-mode: multiply;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3.4rem;
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--dark);
}

.hero .subline {
  font-size: 1.25rem;
  color: var(--secondary);
  margin-bottom: 40px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-family: 'Lora', serif;
  font-size: 1.1rem;
  padding: 16px 40px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
  box-shadow: 0 4px 16px rgba(212,165,116,.3);
  min-height: 48px;
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(212,165,116,.4);
  color: #fff;
}

/* Particles */
.particle {
  position: absolute;
  border-radius: 4px;
  opacity: 0.45;
  will-change: transform;
  pointer-events: none;
  z-index: 1;
}

@keyframes float {
  0%   { transform: translate(0, 0) rotate(0deg); }
  25%  { transform: translate(30px, -40px) rotate(8deg); }
  50%  { transform: translate(-20px, -70px) rotate(-5deg); }
  75%  { transform: translate(40px, -30px) rotate(12deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

/* ===== SHOWCASE / INTERACTIVE GALLERY ===== */
.showcase {
  background: var(--bg-section);
}

.showcase-stage {
  position: relative;
  width: 100%;
  max-width: 960px;
  height: 640px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  background: linear-gradient(135deg, #FAF6F1 0%, #EDE5D8 100%);
  box-shadow: inset 0 0 60px rgba(44,36,24,.04);
}

.showcase-tile {
  position: absolute;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(44,36,24,.10);
  will-change: transform;
  transition: left 1.2s cubic-bezier(.4,0,.2,1),
  top 1.2s cubic-bezier(.4,0,.2,1),
  width 0.8s ease,
  height 0.8s ease,
  border-radius 0.6s ease,
  box-shadow 0.6s ease;
  cursor: pointer;
}

.showcase-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Floating state */
.showcase-tile.floating {
  animation: tileDrift var(--drift-duration, 10s) ease-in-out infinite;
  animation-delay: var(--drift-delay, 0s);
}

@keyframes tileDrift {
  0%   { transform: translate(0, 0) rotate(var(--rot-start, -3deg)); }
  33%  { transform: translate(var(--dx1, 15px), var(--dy1, -20px)) rotate(var(--rot-mid, 2deg)); }
  66%  { transform: translate(var(--dx2, -10px), var(--dy2, 10px)) rotate(var(--rot-end, -1deg)); }
  100% { transform: translate(0, 0) rotate(var(--rot-start, -3deg)); }
}

/* Assembled state */
.showcase-tile.assembled {
  animation: none;
  border-radius: 2px;
  box-shadow: 0 1px 4px rgba(44,36,24,.08);
}

.showcase-hint {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(8px);
  padding: 10px 28px;
  border-radius: 50px;
  font-size: 0.9rem;
  color: var(--secondary);
  pointer-events: none;
  transition: opacity 0.5s ease;
  z-index: 10;
  white-space: nowrap;
}

.showcase-hint.hidden { opacity: 0; }

/* Reset button */
.showcase-reset {
  display: block;
  margin: 20px auto 0;
  background: none;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  font-family: 'Lora', serif;
  font-size: 0.9rem;
  padding: 8px 24px;
  border-radius: 50px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, background 0.3s, color 0.3s;
}
.showcase-reset.show {
  opacity: 1;
  pointer-events: auto;
}
.showcase-reset:hover {
  background: var(--accent);
  color: #fff;
}

/* ===== GALLERY RESULTS (Fertige Collagen) ===== */
.gallery-results {
  background: var(--bg);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.gallery-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  display: flex;
  flex-direction: column;
}
.gallery-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 32px rgba(44,36,24,.12);
}

.gallery-card .gallery-img-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: transparent;
}

.gallery-card img {
  max-width: 100%;
  max-height: 280px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.gallery-card figcaption {
  padding: 12px 20px;
  text-align: center;
  font-size: 0.95rem;
  color: var(--secondary);
  font-style: italic;
  flex-shrink: 0;
}

/* ===== ETSY BANNER ===== */
.etsy-banner {
  background: var(--dark);
  padding: 48px 24px;
}

.etsy-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.etsy-text h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: #fff;
  margin-bottom: 8px;
}

.etsy-text p {
  color: #C9BFAF;
  font-size: 1rem;
  max-width: 480px;
}

.btn-etsy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  font-family: 'Lora', serif;
  font-size: 1.05rem;
  padding: 14px 32px;
  border-radius: 50px;
  white-space: nowrap;
  transition: background 0.3s, transform 0.2s;
  box-shadow: 0 4px 16px rgba(212,165,116,.3);
  min-height: 48px;
}
.btn-etsy:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-2px);
}

/* ===== PROCESS FLOW GRAPHIC (responsive) ===== */
.process-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 48px;
}

.pf-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.pf-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #F3EDE4, #E8D5BF);
  border: 1.5px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pf-icon svg {
  width: 30px;
  height: 30px;
  stroke: var(--accent-hover);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pf-label {
  font-size: 0.85rem;
  color: var(--secondary);
  text-align: center;
  white-space: nowrap;
}

.pf-arrow {
  width: 40px;
  height: 2px;
  background: var(--accent);
  opacity: 0.4;
  position: relative;
  flex-shrink: 0;
  margin: 0 4px;
  margin-bottom: 28px; /* align with icon center */
}
.pf-arrow::after {
  content: '';
  position: absolute;
  right: -1px;
  top: -4px;
  border: 5px solid transparent;
  border-left-color: var(--accent);
  opacity: 0.6;
}

/* ===== STEPS ===== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  text-align: center;
}

.step {
  padding: 16px 12px;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  margin-bottom: 16px;
  box-shadow: 0 4px 16px rgba(212,165,116,.25);
}

.step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  color: var(--accent);
}
.step-icon svg {
  width: 36px;
  height: 36px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.step h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.step p {
  color: var(--secondary);
  font-size: 0.95rem;
}

/* ===== USE CASES ===== */
.usecases {
  background: var(--bg-section);
}

.usecases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.usecase-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}
.usecase-card:hover {
  transform: translateY(-4px);
}

.usecase-card .uc-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #F3EDE4, #E8D5BF);
  margin-bottom: 16px;
  color: var(--accent-hover);
}
.usecase-card .uc-icon svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.usecase-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.usecase-card p {
  color: var(--secondary);
  font-size: 0.9rem;
}

/* ===== TESTIMONIALS ===== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.testimonial-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: var(--shadow);
  position: relative;
}

.testimonial-card::before {
  content: '\201E';
  font-family: 'Playfair Display', serif;
  font-size: 4rem;
  color: var(--accent);
  opacity: 0.3;
  position: absolute;
  top: 12px;
  left: 20px;
  line-height: 1;
}

.testimonial-card blockquote {
  font-style: italic;
  color: var(--dark);
  margin-bottom: 20px;
  font-size: 1rem;
  line-height: 1.6;
}

.testimonial-author {
  font-weight: 700;
  color: var(--dark);
  font-size: 0.95rem;
}

.testimonial-occasion {
  color: var(--secondary);
  font-size: 0.85rem;
}

/* ===== CONTACT ===== */
.contact {
  background: var(--bg-section);
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.95rem;
  color: var(--dark);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid #DDD5CA;
  border-radius: 8px;
  font-family: 'Lora', serif;
  font-size: 1rem;
  background: #fff;
  color: var(--dark);
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-fallback {
  text-align: center;
  margin-top: 20px;
  color: var(--secondary);
  font-size: 0.9rem;
}

.contact-fallback a {
  font-weight: 700;
}

.form-status {
  text-align: center;
  font-size: 0.95rem;
  min-height: 1.4em;
}
.form-status.success { color: #5a8a5a; }
.form-status.error { color: #b55454; }

/* ===== FAQ ===== */
.faq {
  background: var(--bg);
}

.faq-list {
  max-width: 740px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid #E8E0D5;
}

.faq-item summary {
  padding: 20px 0;
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--dark);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  padding: 0 0 20px;
  color: var(--secondary);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--dark);
  color: #C9BFAF;
  text-align: center;
  padding: 40px 24px;
  font-size: 0.9rem;
}

.footer a {
  color: #C9BFAF;
  margin: 0 12px;
  transition: color 0.3s;
}
.footer a:hover {
  color: var(--accent);
}

.footer-links {
  margin-bottom: 12px;
}

/* ===== LEGAL PAGES ===== */
.legal-header {
  background: var(--bg);
  padding: 20px 24px;
  border-bottom: 1px solid #E8E0D5;
}

.legal-back {
  font-size: 0.95rem;
  color: var(--accent);
  font-weight: 700;
}
.legal-back:hover {
  color: var(--accent-hover);
}

.legal-page {
  background: var(--bg);
  padding-top: 80px;
}

.legal-content {
  max-width: 780px;
}

.legal-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  color: var(--dark);
  margin-bottom: 40px;
}

.legal-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--dark);
  margin-top: 40px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid #E8E0D5;
}

.legal-content h3 {
  font-size: 1.15rem;
  color: var(--dark);
  margin-top: 28px;
  margin-bottom: 10px;
}

.legal-content h4 {
  font-size: 1rem;
  color: var(--secondary);
  margin-top: 20px;
  margin-bottom: 8px;
}

.legal-content p {
  margin-bottom: 12px;
  color: var(--dark);
  line-height: 1.75;
}

.legal-content ul {
  margin: 12px 0;
  padding-left: 24px;
}

.legal-content li {
  margin-bottom: 8px;
  line-height: 1.65;
  color: var(--dark);
}

.legal-content a {
  color: var(--accent);
  word-break: break-word;
}
.legal-content a:hover {
  color: var(--accent-hover);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  /* Mobile Nav */
  .nav-hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    height: 100dvh;
    flex-direction: column;
    background: rgba(250, 246, 241, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 100px 32px 40px;
    gap: 4px;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -4px 0 30px rgba(44, 36, 24, 0.1);
    align-items: stretch;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-link {
    font-size: 1.05rem;
    padding: 14px 16px;
    border-radius: 10px;
  }

  .nav-etsy {
    text-align: center;
    margin-top: 12px;
  }

  .nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(44, 36, 24, 0.3);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
  }
  .nav-overlay.visible {
    opacity: 1;
    pointer-events: auto;
  }

  .hero h1 { font-size: 2.4rem; }
  .hero .subline { font-size: 1.05rem; }
  .hero-logo { width: 160px; }

  .section-title { font-size: 1.9rem; }
  .section-padding { padding: 64px 20px; }

  .showcase-stage {
    height: 480px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .etsy-inner {
    flex-direction: column;
    text-align: center;
  }
  .etsy-text p {
    max-width: 100%;
  }

  .process-flow {
    flex-direction: column;
    gap: 0;
  }
  .pf-arrow {
    width: 2px;
    height: 28px;
    margin: 4px 0;
    margin-bottom: 0;
  }
  .pf-arrow::after {
    right: auto;
    top: auto;
    bottom: -1px;
    left: -4px;
    border: 5px solid transparent;
    border-top-color: var(--accent);
    border-left-color: transparent;
  }

  .usecases-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 420px;
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.9rem; }
  .hero .subline { font-size: 0.95rem; }
  .hero-logo { width: 130px; }
  .section-title { font-size: 1.6rem; }
  .section-padding { padding: 48px 16px; }

  .usecases-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin: 0 auto;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin: 0 auto;
  }

  .btn-primary {
    width: 100%;
    text-align: center;
  }
}
