/* =========================================================
   Ellis Näh- & Plotterwelt — Stylesheet
   Palette: Salbei (sage), Senfgelb (mustard), Terrakotta (rust), Creme
   ========================================================= */

:root {
  --cream:      #FAF6EE;
  --cream-deep: #F1E9D8;
  --ink:        #3A3028;
  --ink-soft:   #6B6052;
  --sage:       #828F72;
  --sage-deep:  #5E6A4E;
  --mustard:    #D9A441;
  --mustard-deep:#B9822A;
  --rust:       #C1603C;
  --rust-deep:  #9E4A2C;
  --white:      #FFFFFF;
  --border:     #E4DAC4;

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-accent: 'Caveat', cursive;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;

  --shadow-sm: 0 2px 8px rgba(58,48,40,0.08);
  --shadow-md: 0 8px 24px rgba(58,48,40,0.12);

  --container: 1140px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, figure, blockquote, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, picture, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- Skip Link ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--cream);
  padding: 0.75rem 1.25rem;
  z-index: 200;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus {
  left: 0;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.2;
  font-weight: 600;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.3rem; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-accent);
  font-size: 1.5rem;
  color: var(--rust-deep);
  margin-bottom: 0.25rem;
}
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}
.section-head p {
  color: var(--ink-soft);
  font-size: 1.05rem;
}
.lead { font-size: 1.15rem; color: var(--ink-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--mustard); outline-offset: 2px; }

.btn-primary {
  background: var(--rust-deep);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: #7E3A20; box-shadow: var(--shadow-md); }

.btn-secondary {
  background: var(--white);
  color: var(--ink);
  border: 2px solid var(--border);
}
.btn-secondary:hover { border-color: var(--sage); }

.btn-whatsapp {
  background: #25D366;
  color: var(--ink);
}
.btn-whatsapp:hover { background: #1DA851; }

.btn-block { width: 100%; justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 246, 238, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}
.logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.logo .mark {
  font-family: var(--font-accent);
  color: var(--rust);
  font-size: 1.6rem;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.main-nav ul {
  display: flex;
  gap: 1.75rem;
  font-weight: 700;
  font-size: 0.95rem;
}
.main-nav a {
  position: relative;
  padding: 0.25rem 0;
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--rust);
  transition: width 0.2s ease;
}
.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

@media (max-width: 860px) {
  .main-nav ul {
    position: fixed;
    inset: 64px 0 0 0;
    background: var(--cream);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    font-size: 1.3rem;
    transform: translateY(-110%);
    transition: transform 0.25s ease;
    height: calc(100vh - 64px);
  }
  .main-nav.open ul { transform: translateY(0); }
  .main-nav .btn-whatsapp { display: none; }
  .main-nav.open .btn-whatsapp {
    display: inline-flex;
    margin-top: 1rem;
  }
  .nav-toggle { display: flex; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 4.5rem 0 5rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 360px; height: 360px;
  background: var(--mustard);
  opacity: 0.18;
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -140px; left: -100px;
  width: 300px; height: 300px;
  background: var(--sage);
  opacity: 0.18;
  border-radius: 50%;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero h1 .accent {
  font-family: var(--font-accent);
  color: var(--rust);
  font-weight: 700;
  display: block;
  font-size: 1.3em;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}
.hero-badges {
  display: flex;
  gap: 1.5rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}
.hero-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
  font-weight: 700;
}
.hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--cream-deep);
  box-shadow: var(--shadow-md);
  display: flex;
}
.hero-visual img { width: 100%; height: auto; display: block; }
.hero-visual .placeholder-note {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 2rem;
  color: var(--ink-soft); font-weight: 700;
  background: repeating-linear-gradient(45deg, var(--cream-deep), var(--cream-deep) 10px, var(--border) 10px, var(--border) 11px);
}

@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
}

/* ---------- Sections ---------- */
section { padding: 5rem 0; }
.bg-soft { background: var(--cream-deep); }
.bg-ink { background: var(--ink); color: var(--cream); }
.bg-ink h2 { color: var(--cream); }

/* ---------- Category / Feature cards ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .grid-3 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-media {
  background: var(--cream-deep);
  overflow: hidden;
}
.card-media img { width: 100%; height: auto; display: block; }
.card-body { padding: 1.5rem; }
.card-body h3 { margin-bottom: 0.4rem; }
.card-body p { color: var(--ink-soft); font-size: 0.95rem; }
.card-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--sage-deep);
  background: rgba(130,143,114,0.14);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.category-card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  color: var(--white);
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}
.category-card.sewn { background: linear-gradient(160deg, var(--rust), var(--rust-deep)); }
.category-card.plotted { background: linear-gradient(160deg, var(--sage), var(--sage-deep)); }
.category-card.raysin { background: linear-gradient(160deg, var(--mustard), var(--mustard-deep)); }
.category-card h3 { color: var(--white); font-size: 1.6rem; }
.category-card p { color: rgba(255,255,255,0.88); margin-top: 0.5rem; }
.category-card ul { margin-top: 1rem; font-size: 0.9rem; opacity: 0.9; }
.category-card li { display: inline; }
.category-card li:not(:last-child)::after { content: ' · '; }

.feature {
  text-align: center;
  padding: 1rem;
}
.feature-icon {
  width: 60px; height: 60px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: var(--mustard);
  display: flex; align-items: center; justify-content: center;
}
.feature-icon svg { width: 26px; height: 26px; color: var(--white); }
.feature h3 { margin-bottom: 0.5rem; }
.feature p { color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- Stitch motif (wiederkehrendes "Naht"-Element) ---------- */
.stitch-divider {
  width: 100%;
  height: 1px;
  margin: 2rem 0;
  background-image: linear-gradient(to right, var(--rust) 50%, transparent 50%);
  background-size: 14px 1px;
  background-repeat: repeat-x;
  opacity: 0.55;
  border: none;
}
.page-hero .stitch-divider {
  max-width: 220px;
  margin: 1.25rem auto 0;
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  counter-reset: step;
}
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }
.step {
  position: relative;
  padding: 1.75rem 1.5rem;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: flex; align-items: center; justify-content: center;
  width: 2.5rem; height: 2.5rem;
  border-radius: 50%;
  background: var(--rust);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 1rem;
}
.step h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.step p { color: var(--ink-soft); font-size: 0.92rem; }

/* ---------- Testimonials ---------- */
.testimonial {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 2rem;
  border: 1px solid var(--border);
}
.testimonial p.quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}
.testimonial .by {
  font-weight: 800;
  color: var(--sage-deep);
  font-size: 0.9rem;
}

/* ---------- Instagram strip ---------- */
.insta-grid a {
  display: block;
  aspect-ratio: 1/1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--cream-deep);
  position: relative;
}
.insta-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.insta-grid a:hover img { transform: scale(1.06); }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--sage-deep), var(--sage));
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 3rem;
  text-align: center;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255,255,255,0.9); margin: 1rem auto 1.75rem; max-width: 520px; }

/* ---------- Forms (Anfrage-Assistent, keine Zahlung) ---------- */
.request-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}
.form-row { margin-bottom: 1.25rem; }
.form-row label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.4rem;
  font-size: 0.92rem;
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font: inherit;
  background: var(--cream);
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--sage);
}
.form-note {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 1rem;
}
.form-hint-payment {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  background: rgba(130,143,114,0.12);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.1rem;
  font-size: 0.88rem;
  color: var(--sage-deep);
  margin-top: 1.5rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding: 3.5rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(250,246,238,0.15);
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 {
  color: var(--cream);
  font-size: 1rem;
  margin-bottom: 1rem;
  font-family: var(--font-body);
  font-weight: 800;
}
.site-footer p, .site-footer li { color: rgba(250,246,238,0.75); font-size: 0.92rem; }
.site-footer a:hover { color: var(--mustard); }
.footer-links li { margin-bottom: 0.5rem; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.5rem;
  font-size: 0.82rem;
  color: rgba(250,246,238,0.6);
}
.footer-bottom a { text-decoration: underline; text-decoration-color: rgba(250,246,238,0.3); }

/* ---------- WhatsApp floating button ---------- */
.wa-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 150;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  color: #fff;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 28px; height: 28px; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
}
.legal-content {
  max-width: 760px;
  margin: 0 auto;
}
.legal-content h2 { margin-top: 2.5rem; margin-bottom: 0.75rem; font-size: 1.4rem; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p { margin-bottom: 1rem; }
.legal-content ul { margin: 0 0 1rem 1.25rem; list-style: disc; }
.legal-content a { text-decoration: underline; color: var(--rust); }
.page-hero {
  padding: 3.5rem 0 2.5rem;
  text-align: center;
}
.placeholder-flag {
  background: #FFF3CD;
  border: 1px solid #E8C468;
  color: #7A5B00;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-weight: 800;
  font-size: 0.82em;
}
