/* ==========================================================================
   Holzwurmwolle – Stylesheet
   Self-hosted fonts: Fraunces (Überschriften) + Inter (Fließtext)
   ========================================================================== */

@font-face {
  font-family: 'Fraunces';
  src: url('../assets/fonts/fraunces-variable-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('../assets/fonts/inter-variable-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* --- Design tokens --------------------------------------------------- */

:root {
  /* Farben */
  --color-bg: #faf6f0;
  --color-surface: #e8dfd3;
  --color-surface-alt: #f1ebe1;
  --color-border: #ddceb9;
  --color-text: #332821;
  --color-text-soft: #5c4f45;
  --color-accent: #8b5e3c;
  --color-accent-dark: #6e4a2e;
  --color-white: #ffffff;

  /* Typografie */
  --font-heading: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Abstände */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.25rem;
  --space-5: 3.5rem;
  --space-6: 5rem;

  /* Layout */
  --container: 1140px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 3px rgba(51, 40, 33, 0.09);
  --shadow-md: 0 10px 30px rgba(51, 40, 33, 0.12);
  --nav-height: 68px;
}

/* --- Reset ------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
}

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

img {
  max-width: 100%;
  display: block;
}

ul {
  padding: 0;
  margin: 0;
}

a {
  color: var(--color-accent);
  text-decoration-color: rgba(139, 94, 60, 0.4);
}

a:hover {
  color: var(--color-accent-dark);
}

/* --- Typografie ---------------------------------------------------------- */

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.15;
  color: var(--color-text);
  margin: 0 0 var(--space-2);
}

h1 {
  font-size: clamp(2.3rem, 1.5rem + 3vw, 3.6rem);
  font-weight: 560;
}

h2 {
  font-size: clamp(1.75rem, 1.35rem + 1.6vw, 2.5rem);
}

h3 {
  font-size: 1.4rem;
}

h4 {
  font-size: 1.1rem;
  font-weight: 700;
}

p {
  margin: 0 0 var(--space-2);
}

.lead {
  font-size: 1.15rem;
  color: var(--color-text-soft);
  max-width: 62ch;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-1);
}

/* Kleiner, gedämpfter Hinweistext – einheitlich für alle Notizen.
   Gleiche Größe wie Bildunterschriften und Footer-Zeile (0.85rem). */
.note {
  font-size: 0.85rem;
  color: var(--color-text-soft);
}

/* Anker sollen nicht hinter der fixen Navigation verschwinden */
section[id],
h2[id] {
  scroll-margin-top: calc(var(--nav-height) + 16px);
}

/* --- Layout-Hilfsklassen -------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-3);
}

.section {
  padding-block: var(--space-6);
}

.section-alt {
  background: var(--color-surface-alt);
}

.section-header {
  max-width: 46rem;
  margin-bottom: var(--space-4);
}

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

.grid {
  display: grid;
  gap: var(--space-4);
}

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

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

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

/* --- Buttons --------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.75rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
}

.btn-primary:hover {
  background: var(--color-accent-dark);
  color: var(--color-white);
}

.btn-outline {
  background: transparent;
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.btn-outline:hover {
  background: rgba(139, 94, 60, 0.08);
  color: var(--color-accent-dark);
}

.btn-outline-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.75);
  color: var(--color-white);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--color-white);
}

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

/* --- Header / Banner / Navigation ------------------------------------ */

.banner {
  position: relative;
  height: clamp(130px, 17vw, 210px);
  overflow: hidden;
}

.banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}

.banner--hero {
  height: clamp(260px, 38vw, 440px);
}

/* Einleitungsband unter dem Banner: das Foto bleibt unverdeckt, der Text
   steht auf der warmen Flächenfarbe der Seite (gleiche Farbe wie der Footer). */
.banner-intro {
  background: var(--color-surface);
  padding-block: var(--space-4);
}

.banner-intro h1 {
  margin-bottom: 0.6rem;
}

.banner-intro .lead {
  margin-bottom: 0;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--nav-height);
}

.wordmark {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
}

.wordmark:hover {
  color: var(--color-accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  flex: 0 0 2px;
  background: var(--color-text);
  border-radius: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  list-style: none;
}

.nav-links a {
  display: inline-block;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  padding-block: calc(var(--nav-height) / 2 - 0.6rem);
  border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a[aria-current='page'] {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}

@media (max-width: 780px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    z-index: 120;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }

  .nav-links.is-open {
    max-height: 320px;
  }

  .nav-links li {
    border-top: 1px solid var(--color-border);
  }

  .nav-links a {
    padding: 1rem var(--space-3);
  }

  .navbar-inner {
    position: relative;
  }
}

/* --- Footer ------------------------------------------------------------ */

.site-footer {
  margin-top: var(--space-6);
  background: var(--color-surface);
  color: var(--color-text);
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-4);
  padding-block: var(--space-5);
}

.footer-inner h4 {
  margin-bottom: var(--space-1);
}

.footer-inner p,
.footer-inner a {
  color: var(--color-text-soft);
}

.footer-inner ul {
  list-style: none;
}

.footer-inner li {
  margin-bottom: 0.4rem;
}

/* --- Social-Links ------------------------------------------------------ */

.social-links {
  display: flex;
  gap: 0.6rem;
  margin-top: var(--space-2);
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  color: var(--color-accent);
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.social-links a:hover {
  background: var(--color-accent);
  color: var(--color-white);
  transform: translateY(-1px);
}

.social-links svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Social-Hinweis (Callout auf Start-/Kontaktseite) */
.social-callout {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-4);
}

.social-callout p {
  margin: 0;
  font-weight: 500;
}

.social-callout .social-links {
  margin-top: 0;
}

.social-callout .social-links a {
  background: var(--color-white);
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-block: var(--space-2);
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-text-soft);
}

.footer-bottom a {
  color: var(--color-text-soft);
}

/* --- Cards / Kacheln ------------------------------------------------- */

.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow-sm);
}

.placeholder-card {
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  text-align: center;
  color: var(--color-text-soft);
}

.placeholder-card .eyebrow {
  color: var(--color-text-soft);
}

/* --- Produkt: Modell-Vergleich (Vlies-Fee) ----------------------------- */

.model-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  align-items: start;
}

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

.model-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.model-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.model-card-body {
  padding: var(--space-3) var(--space-4) var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex: 1;
}

.model-card-badge {
  display: inline-block;
  align-self: flex-start;
  background: var(--color-surface);
  color: var(--color-accent-dark);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
}

.spec-list {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: var(--space-2);
  row-gap: 0.45rem;
  font-size: 0.93rem;
  margin: 0;
}

.spec-list dt,
.spec-list dd {
  min-width: 0;
  overflow-wrap: break-word;
}

.spec-list dt {
  color: var(--color-text-soft);
}

.spec-list dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
}

/* Auf schmalen Screens Label und Wert untereinander stapeln, damit
   lange Bezeichnungen/Werte nicht stark umbrechen. */
@media (max-width: 520px) {
  .spec-list {
    grid-template-columns: 1fr;
    row-gap: 0;
  }

  .spec-list dt {
    padding-top: 0.55rem;
    font-size: 0.82rem;
  }

  .spec-list dd {
    text-align: left;
    padding-bottom: 0.55rem;
    border-bottom: 1px solid var(--color-border);
  }

  .spec-list dd:last-of-type {
    border-bottom: none;
  }
}

.price-box {
  margin-top: auto;
  padding-top: var(--space-2);
  border-top: 1px solid var(--color-border);
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-2);
  padding-block: 0.5rem;
}

.price-row + .price-row {
  border-top: 1px dashed var(--color-border);
}

.price-label {
  font-weight: 500;
}

.price-value {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--color-accent);
  white-space: nowrap;
}

.price-note {
  display: block;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--color-text-soft);
  margin-top: 0.15rem;
}

.price-warranty {
  margin: 0;
  padding-top: 0.7rem;
  border-top: 1px dashed var(--color-border);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-accent);
}

/* --- Info-Box / Vergleichs-Bilder -------------------------------------- */

.info-box {
  background: var(--color-surface-alt);
  border-left: 4px solid var(--color-accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: var(--space-3) var(--space-4);
}

.compare-figures {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

@media (max-width: 560px) {
  .compare-figures {
    grid-template-columns: 1fr;
  }
}

.compare-figures figure {
  margin: 0;
}

.compare-figures img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.compare-figures figcaption {
  font-size: 0.85rem;
  text-align: center;
  margin-top: 0.5rem;
  color: var(--color-text-soft);
}

/* Drei-Bild-Variante (Ablauf: Kardieren → Spinnen → Garn).
   Eigene Media Query, damit sie die 2-Spalten-Regel oben nicht überschreibt. */
.compare-figures--three {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 780px) {
  .compare-figures--three {
    grid-template-columns: 1fr;
  }
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  list-style: none;
}

.tag-list li {
  background: var(--color-surface);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  font-size: 0.88rem;
  font-weight: 500;
}

/* --- Status-Badge (z. B. "derzeit nicht verfügbar") -------------------- */

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  align-self: flex-start;
  background: #f0e4d2;
  color: #8a6538;
  border: 1px solid #e3d0b3;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
}

.status-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c99a4e;
}

/* --- Produkt-Feature (Zwirnzwerg, Produktseite) ------------------------ */

.product-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  align-items: center;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow-sm);
}

@media (max-width: 820px) {
  .product-feature {
    grid-template-columns: 1fr;
  }
}

.product-feature-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  align-items: flex-start;
}

.product-feature-body h3 {
  margin: 0;
}

.product-gallery {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--space-2);
}

.product-gallery .main {
  grid-row: 1 / 3;
}

.product-gallery figure {
  margin: 0;
  height: 100%;
}

.product-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  display: block;
}

.product-gallery .main img {
  aspect-ratio: 3 / 4;
}

.product-gallery .thumb img {
  aspect-ratio: 3 / 2;
}

@media (max-width: 820px) {
  .product-gallery {
    order: -1;
  }
}

/* --- Produkt-Teaser (Zwirnzwerg, Startseite) -------------------------- */

.product-teaser {
  display: grid;
  grid-template-columns: 280px 1fr;
  align-items: center;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.product-teaser > img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center 60%;
  display: block;
}

.product-teaser-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  align-items: flex-start;
  justify-content: center;
  padding: var(--space-4);
}

.product-teaser-body h3 {
  margin: 0;
}

@media (max-width: 640px) {
  .product-teaser {
    grid-template-columns: 1fr;
  }
  .product-teaser > img {
    aspect-ratio: 3 / 2;
  }
}

/* --- Kontakt ----------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-4);
}

.contact-item {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
}

.contact-item .eyebrow {
  margin-bottom: var(--space-1);
}

.contact-item a {
  font-size: 1.15rem;
  font-weight: 600;
  text-decoration: none;
}

/* --- Rechtstexte (Impressum / Datenschutz) ----------------------------- */

.legal-content h2 {
  margin-top: var(--space-4);
}

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

.legal-content p,
.legal-content li {
  color: var(--color-text-soft);
}

.placeholder-note {
  background: var(--color-surface-alt);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-3);
  font-size: 0.9rem;
  color: var(--color-text-soft);
  margin-bottom: var(--space-4);
}
