/* ─────────────────────────────────────────────
 * Mood Bliss – Nähatelier auf Amrum
 * Amrumer Sonnenuntergang: Sand Basis, Blau Anker, Pastell Akzent
 * ───────────────────────────────────────────── */
:root {
  --sand: #eadfcb;
  --paper: #f5efe3;
  --sea: #5c7891;
  --dusk: #2e3f4e;
  --staub: #9fb2c2;
  --abend: #f3d3c4;
  --nassersand: #d8c4a6;
  --font-display: "Cabinet Grotesk", "Satoshi", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Satoshi", ui-sans-serif, system-ui, sans-serif;
  --font-hand: "Beth Ellen", cursive;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--dusk);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; }

.container {
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: 1.25rem;
}
@media (min-width: 768px) {
  .container { padding-inline: 2rem; }
}

h1, h2, h3 { margin: 0; font-family: var(--font-display); }

.headline {
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.02;
  color: var(--dusk);
}

.intro {
  margin: 1.5rem 0 0;
  max-width: 52ch;
  color: color-mix(in srgb, var(--dusk) 85%, transparent);
}

section { scroll-margin-top: 4rem; }

/* ── Navigation ── */
.nav {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid color-mix(in srgb, var(--dusk) 10%, transparent);
  background: color-mix(in srgb, var(--paper) 85%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.nav__inner {
  max-width: 72rem;
  margin-inline: auto;
  height: 4rem;
  padding-inline: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo svg { height: 2.4rem; width: auto; display: block; }
.nav__links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
}
.nav__links a {
  text-decoration: none;
  transition: color 0.2s;
}
.nav__links a:hover { color: var(--sea); }
.nav__links a:not(.nav__kontakt) { display: none; }
.nav__kontakt { display: inline-flex; align-items: center; gap: 0.5rem; }
.nav__kontakt::before {
  content: "";
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 999px;
  background: var(--sea);
  transition: transform 0.2s;
}
.nav__kontakt:hover::before { transform: scale(1.25); }
@media (min-width: 768px) {
  .nav__inner { padding-inline: 2rem; }
  .nav__links { gap: 2.25rem; }
  .nav__links a:not(.nav__kontakt) { display: inline; }
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100dvh;
  overflow: hidden;
}
.hero__media, .hero__media img, .hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero__media img { object-fit: cover; object-position: 70% center; }
.hero__canvas { display: block; }
.hero__scrim {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 40%;
  background: linear-gradient(to top,
    color-mix(in srgb, var(--paper) 90%, transparent),
    color-mix(in srgb, var(--paper) 40%, transparent) 50%,
    transparent);
  pointer-events: none;
}
.hero__content {
  position: relative;
  z-index: 10;
  max-width: 72rem;
  margin-inline: auto;
  min-height: 100dvh;
  padding: 0 1.25rem 4rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
}
.hero__logo svg { width: 13rem; height: auto; display: block; }
.hero__claim {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 500;
  letter-spacing: -0.02em;
}
@media (min-width: 768px) {
  .hero__content { padding: 0 2rem 6rem; align-items: flex-end; }
  .hero__logo svg { width: 17rem; }
}

/* Faden-CTA: gestrichelte Linie näht sich auf Hover zu */
.thread-link {
  margin-top: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 0.4rem;
  font-weight: 500;
  color: var(--dusk);
  text-decoration: none;
  background-image: repeating-linear-gradient(90deg, currentColor 0 6px, transparent 6px 11px);
  background-size: 100% 1.5px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: color 0.25s;
}
.thread-link:hover { color: var(--sea); }
.thread-link svg { transition: transform 0.25s; }
.thread-link:hover svg { transform: translateY(2px); }

/* ── Reveals: feuern beim Mount, enden sichtbar ── */
@keyframes mb-rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}
.rise { animation: mb-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both; }
.rise-2 { animation-delay: 0.15s; }
.rise-3 { animation-delay: 0.3s; }

/* ── Atelier ── */
.atelier {
  position: relative;
  overflow: hidden;
  background: var(--paper);
}
.atelier__plate {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
  mix-blend-mode: multiply;
  pointer-events: none;
}
.atelier__thread {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
@keyframes mb-draw { to { stroke-dashoffset: 0; } }
.atelier__thread path {
  stroke-dasharray: 2400;
  stroke-dashoffset: 2400;
  animation: mb-draw 2.8s ease-out 0.4s both;
}
.atelier__grid {
  position: relative;
  display: grid;
  gap: 3rem;
  padding-block: 6rem;
}
.atelier__copy p {
  max-width: 58ch;
  margin: 1.25rem 0 0;
  color: color-mix(in srgb, var(--dusk) 85%, transparent);
}
.atelier__copy p:first-of-type { margin-top: 2rem; }
.atelier__figure {
  position: relative;
  justify-self: center;
  padding-bottom: 4rem;
}
.atelier__figure > img:first-child {
  width: 18rem;
  border-radius: 4px;
}
.atelier__machine {
  position: absolute;
  bottom: -2rem;
  left: -4rem;
  width: 11rem;
  mix-blend-mode: multiply;
}
@media (min-width: 768px) {
  .atelier__grid {
    grid-template-columns: 7fr 5fr;
    align-items: center;
    gap: 4rem;
    padding-block: 9rem;
  }
  .atelier__figure { justify-self: end; }
  .atelier__figure > img:first-child { width: 20rem; }
  .atelier__machine { left: -7.5rem; width: 14rem; }
}

/* ── Leistungen ── */
.leistungen { background: var(--paper); }
.leistungen .container { padding-block: 6rem; }
.leistungen__list {
  list-style: none;
  margin: 3.5rem 0 0;
  padding: 0;
  border-top: 1px solid color-mix(in srgb, var(--dusk) 20%, transparent);
}
.leistungen__list li {
  border-bottom: 1px solid color-mix(in srgb, var(--dusk) 20%, transparent);
}
.leistung {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  align-items: center;
  gap: 1.25rem;
  padding-block: 2rem;
  text-decoration: none;
}
.leistung img {
  width: 3rem;
  height: 3rem;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.leistung h3 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  transition: color 0.2s;
}
.leistung:hover h3 { color: var(--sea); }
.leistung p {
  margin: 0.25rem 0 0;
  color: color-mix(in srgb, var(--dusk) 75%, transparent);
}
.leistung svg {
  display: none;
  color: var(--sea);
  transition: transform 0.2s;
}
.leistung:hover svg { transform: translateX(6px); }
@media (min-width: 768px) {
  .leistungen .container { padding-block: 8rem; }
  .leistung {
    grid-template-columns: 5rem 1fr auto;
    gap: 2rem;
  }
  .leistung img { width: 4rem; height: 4rem; }
  .leistung h3 { font-size: 1.5rem; }
  .leistung svg { display: block; }
}

/* ── Produkte ── */
.produkte { background: var(--sand); }
.produkte .container { padding-block: 6rem; }
.produkte__grid {
  margin-top: 3.5rem;
  display: grid;
  gap: 2.5rem;
}
.produkt { display: flex; flex-direction: column; }
.produkt__bild {
  overflow: hidden;
  border-radius: 4px;
}
.produkt__bild img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.produkt:hover .produkt__bild img { transform: scale(1.03); }
.produkt__zeile {
  margin-top: 1.25rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}
.produkt__zeile h3 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.produkt__preis { font-weight: 500; font-size: 1.1rem; }
.produkt__detail {
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
  color: color-mix(in srgb, var(--dusk) 70%, transparent);
}
.produkt__anfrage {
  margin-top: 1rem;
  align-self: flex-start;
  padding: 0.5rem 1rem;
  border: 1px solid color-mix(in srgb, var(--dusk) 30%, transparent);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, transform 0.1s;
}
.produkt__anfrage:hover { border-color: var(--sea); color: var(--sea); }
.produkt__anfrage:active { transform: scale(0.98); }
.produkte__stoffe { margin: 4rem 0 0; }
.produkte__stoffe img {
  width: 100%;
  height: 16rem;
  object-fit: cover;
  object-position: center 60%;
  border-radius: 4px;
}
.produkte__stoffe figcaption {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: color-mix(in srgb, var(--dusk) 70%, transparent);
}
@media (min-width: 768px) {
  .produkte .container { padding-block: 8rem; }
  .produkte__grid {
    grid-template-columns: repeat(12, 1fr);
    column-gap: 2rem;
    row-gap: 4rem;
  }
  .produkt--7 { grid-column: span 7; }
  .produkt--5 { grid-column: span 5; }
  .produkte__stoffe img { height: 20rem; }
}

/* ── Genäht auf Amrum (Video-Band) ── */
.amrum {
  position: relative;
  height: 70vh;
  min-height: 420px;
  overflow: hidden;
}
.amrum img.amrum__poster,
.amrum video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.amrum__tint {
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--dusk) 20%, transparent);
}
.amrum__claim {
  position: relative;
  z-index: 10;
  height: 100%;
  display: flex;
  justify-content: center;
  padding-top: 4rem;
  text-align: center;
}
.amrum__claim p {
  margin: 0;
  font-family: var(--font-hand);
  font-size: clamp(1.875rem, 5vw, 3rem);
  color: var(--paper);
  text-shadow: 0 1px 14px rgba(46, 63, 78, 0.45);
}
@media (min-width: 768px) {
  .amrum__claim { padding-top: 6rem; }
}

/* ── Kontakt + Footer ── */
.kontakt {
  background: var(--dusk);
  color: var(--paper);
}
.kontakt__inner {
  max-width: 48rem;
  margin-inline: auto;
  padding: 6rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.kontakt .headline { color: var(--paper); }
.kontakt__inner > p {
  margin: 1.5rem 0 0;
  max-width: 44ch;
  color: color-mix(in srgb, var(--paper) 80%, transparent);
}
.kontakt__button {
  position: relative;
  overflow: hidden;
  margin-top: 2.5rem;
  display: inline-flex;
  border-radius: 999px;
  background: var(--sand);
  padding: 1rem 2.25rem;
  font-weight: 700;
  color: var(--dusk);
  text-decoration: none;
  transition: box-shadow 0.3s, transform 0.1s;
}
.kontakt__button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--abend);
  opacity: 0;
  transition: opacity 0.3s;
}
.kontakt__button span { position: relative; }
.kontakt__button:hover { box-shadow: 0 0 0 5px rgba(243, 211, 196, 0.25); }
.kontakt__button:hover::before { opacity: 0.4; }
.kontakt__button:active { transform: scale(0.98); }
.kontakt__daten {
  margin: 3rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.kontakt__daten div {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 0.75rem;
}
.kontakt__daten dt { color: color-mix(in srgb, var(--paper) 60%, transparent); }
.kontakt__daten dd { margin: 0; }
.kontakt__daten a {
  text-decoration: none;
  text-underline-offset: 4px;
}
.kontakt__daten a:hover { text-decoration: underline; }
.footer {
  border-top: 1px solid color-mix(in srgb, var(--paper) 15%, transparent);
}
.footer__inner {
  max-width: 72rem;
  margin-inline: auto;
  padding: 2.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.footer__inner img { height: 3rem; width: auto; opacity: 0.7; }
.footer__inner p {
  margin: 0;
  font-size: 0.9rem;
  color: color-mix(in srgb, var(--paper) 60%, transparent);
}
@media (min-width: 768px) {
  .kontakt__inner { padding-block: 8rem; }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise, .rise-2, .rise-3 { animation: none; }
  .atelier__thread path { animation: none; stroke-dashoffset: 0; }
  .amrum video { display: none; }
  .hero__canvas { display: none; }
  * { transition-duration: 0.01ms !important; }
}
