/* ==========================================================
   Sabines Handspinnerei – Stylesheet
   Farben und Schriften zentral hier oben anpassen.
   ========================================================== */

@font-face {
  font-family: "Lora";
  src: url("../fonts/Lora-Variable.woff") format("woff");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lora";
  src: url("../fonts/Lora-Italic-Variable.woff") format("woff");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #fbf8f3;          /* Seitenhintergrund (Wollweiß) */
  --surface: #f3ece1;     /* Flächen, Karten */
  --surface-2: #ffffff;
  --text: #2e2a26;        /* Fließtext */
  --muted: #5f5850;       /* Nebentext */
  --line: #e4dccf;        /* Linien */
  --green: #4c7c58;       /* Hauptfarbe (Salbeigrün) */
  --green-dark: #2f5239;
  --green-soft: #e3ede4;
  --wool: #b98f5a;        /* Akzent (Wollbraun) */

  --font-head: "Lora", Georgia, "Times New Roman", serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(46, 42, 38, .06), 0 8px 24px rgba(46, 42, 38, .08);
  --wrap: 1120px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img, video { display: block; max-width: 100%; height: auto; }

a { color: var(--green); text-underline-offset: .2em; }
a:hover { color: var(--green-dark); }

:focus-visible { outline: 3px solid var(--wool); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.01em;
  margin: 0 0 .6em;
  color: var(--text);
}
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

.skip-link {
  position: absolute; left: 1rem; top: -100px;
  background: var(--green); color: #fff; padding: .6rem 1rem; border-radius: var(--radius-sm);
  z-index: 100;
}
.skip-link:focus { top: 1rem; color: #fff; }

/* ---------- Kopfbereich ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 248, 243, .88);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 72px; flex-wrap: wrap; padding-block: .5rem;
}
.brand {
  font-family: var(--font-head); font-size: 1.3rem; font-weight: 600;
  color: var(--text); text-decoration: none; white-space: nowrap;
}
.brand span { color: var(--green); font-style: italic; }
.nav { display: flex; align-items: center; gap: .25rem; flex-wrap: wrap; }
.nav a {
  color: var(--text); text-decoration: none; font-size: .98rem;
  padding: .45rem .8rem; border-radius: 999px; transition: background .2s;
}
.nav a:hover { background: var(--surface); color: var(--text); }
.nav a[aria-current="page"] { background: var(--green-soft); color: var(--green-dark); font-weight: 600; }
.nav .icon-link { display: inline-flex; padding: .45rem; }
.nav .icon-link svg { width: 22px; height: 22px; fill: currentColor; }

/* ---------- Hero ---------- */
.hero { padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(2.5rem, 6vw, 4rem); text-align: center; }
.hero .eyebrow {
  display: block; font-family: var(--font-head); font-style: italic;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem); color: var(--wool); margin-bottom: .2rem;
}
.hero h1 {
  font-size: clamp(2.6rem, 7.5vw, 5.2rem); font-weight: 600; margin-bottom: 1.5rem;
}
.hero .lead {
  max-width: 38rem; margin: 0 auto 1.8rem;
  font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--muted);
}
.price-tag {
  display: inline-flex; align-items: baseline; gap: .4rem;
  font-family: var(--font-head); font-size: clamp(1.3rem, 2.4vw, 1.65rem); font-weight: 600;
  background: var(--green-soft); color: var(--green-dark);
  padding: .5rem 1.3rem; border-radius: 999px; margin: 0 0 2rem;
}
.actions { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 9.5rem; padding: .85rem 1.6rem; border-radius: 999px;
  font-weight: 600; font-size: 1rem; text-decoration: none;
  border: 2px solid var(--green); transition: background .2s, color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }
.btn-secondary { background: transparent; color: var(--green-dark); }
.btn-secondary:hover { background: var(--green-soft); color: var(--green-dark); }

/* ---------- Bildleiste ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.gallery img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.gallery img:nth-child(2) { transform: translateY(1.5rem); }

/* ---------- Abschnitte ---------- */
.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section-alt { background: var(--surface); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split.media-narrow { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }

.media img, .media video { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.video-figure { margin: 0; max-width: 380px; justify-self: center; width: 100%; }
.video-figure video { aspect-ratio: 9 / 16; object-fit: cover; background: #1d1b19; }
.media figcaption, .video-figure figcaption {
  margin-top: .75rem; font-size: .92rem; color: var(--muted); text-align: center;
}

.text p { color: var(--muted); }
.text strong { color: var(--text); }

.checklist { list-style: none; padding: 0; margin: 0 0 1.3em; display: grid; gap: .7rem; }
.checklist li {
  position: relative; padding: .8rem 1rem .8rem 3rem;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
  color: var(--text); line-height: 1.5;
}
.checklist li::before {
  content: ""; position: absolute; left: 1rem; top: 1.05rem;
  width: 1.15rem; height: 1.15rem; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round' d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 75% no-repeat;
}
.section-alt .checklist li { background: var(--bg); }

.note {
  border-left: 4px solid var(--wool); background: var(--surface-2);
  padding: 1.1rem 1.3rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--muted); margin-top: 1.5rem;
}
.section-alt .note { background: var(--bg); }
.note p:last-child { margin-bottom: 0; }

/* ---------- Preise ---------- */
.prices { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.6rem 0; }
.price-card {
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow);
}
.price-card h3 { font-size: 1.1rem; margin-bottom: .8rem; font-family: var(--font-body); font-weight: 600; line-height: 1.4; }
.price-card .amount {
  font-family: var(--font-head); font-size: 2.6rem; font-weight: 600; color: var(--green-dark);
  line-height: 1; margin-bottom: .5rem;
}
.price-card .per { font-size: .95rem; color: var(--muted); margin: 0; }
.small { font-size: .95rem; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-dark); color: #e7efe8; padding: clamp(3.5rem, 7vw, 5rem) 0 2rem; }
.site-footer h2 { color: #fff; font-size: 1.8rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #d9c3a3; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.site-footer address { font-style: normal; }
.site-footer address p { margin: 0 0 1rem; }
.footer-links { list-style: none; padding: 0; margin: 0 0 1.5rem; display: flex; gap: 1.5rem; flex-wrap: wrap; }
.badge { display: inline-block; background: #fff; border-radius: var(--radius-sm); padding: .4rem; margin-top: .5rem; }
.badge img { width: 220px; }
.copyright {
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .18);
  font-size: .9rem; color: #c3d3c6;
}

/* ---------- Unterseiten (Impressum/Datenschutz) ---------- */
.legal { padding: clamp(3rem, 7vw, 5rem) 0; }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.legal h2 { font-size: 1.4rem; margin-top: 2.2rem; }
.legal h3 { font-size: 1.1rem; margin-top: 1.5rem; font-family: var(--font-body); font-weight: 600; }
.legal p, .legal li { color: var(--muted); }
.legal ul { padding-left: 1.3rem; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .split, .split.media-narrow, .footer-grid { grid-template-columns: 1fr; }
  .split .media { order: -1; }
  .split.text-first .media { order: 0; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .site-header .wrap { justify-content: center; }
  .nav { justify-content: center; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery img:nth-child(2) { transform: none; }
  .gallery img:nth-child(3) { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
  .prices { grid-template-columns: 1fr; }
  .video-figure { max-width: 300px; }
}

/* ---------- Unterseiten: Seitenkopf ---------- */
.page-intro { padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(2rem, 4vw, 3rem); text-align: center; }
.page-intro h1 { font-size: clamp(2.4rem, 6vw, 4rem); margin-bottom: 1rem; }
.page-intro .lead { max-width: 44rem; margin: 0 auto; font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--muted); }

/* ---------- Wie geht das: Arbeitsschritte ---------- */
.steps {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
}
.step {
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.step img, .step video { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: var(--surface); }
.step-body { padding: 1.1rem 1.2rem 1.3rem; }
.step-num {
  display: inline-block; font-family: var(--font-head); font-size: 1.5rem; font-weight: 600;
  color: var(--wool); line-height: 1; margin-bottom: .45rem;
}
.step p { margin: 0; color: var(--muted); font-size: .98rem; line-height: 1.55; }

/* ---------- Wolle: Angebot ---------- */
.offer { display: grid; gap: clamp(3rem, 6vw, 5rem); }
.offer-item { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.offer-item:nth-child(even) .offer-media { order: 2; }
.offer-media { display: grid; gap: 1rem; }
.offer-media.two { grid-template-columns: 1fr 1fr; }
.offer-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.offer-item h2 { margin-bottom: .4em; }
.offer-item .text > p { color: var(--muted); }
.price-list { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: .75rem; }
.price-list li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: .9rem 1.1rem;
}
.section-alt .price-list li { background: var(--bg); }
.price-list .label { color: var(--text); }
.price-list .value { font-family: var(--font-head); font-weight: 600; font-size: 1.25rem; color: var(--green-dark); white-space: nowrap; }
.price-list .value small { font-family: var(--font-body); font-weight: 400; font-size: .85rem; color: var(--muted); }

.subtitle { display: block; font-family: var(--font-head); font-style: italic; font-weight: 400; font-size: .55em; color: var(--wool); margin-top: .3rem; }

@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) {
  .offer-item { grid-template-columns: 1fr; }
  .offer-item:nth-child(even) .offer-media { order: 0; }
}
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }
.offer-media img.wide { aspect-ratio: 854 / 398; }
