/* ============================================================
   Beecraftedlove  |  style.css
   Warm, natürlich, handwerklich. Mobile first.

   Radius-System (verbindlich):
   - Buttons / Pills: voll gerundet (999px)
   - Flächen (Bilder, Kacheln, Boxen): 16px
   - Inputs: 10px

   Akzentfarbe: Honiggold (eine Akzentfamilie, zwei Tonstufen:
   - --honey      = Füllflächen, dunkler Text darauf
   - --honey-deep = Textlinks/Akzente auf hellem Grund, AA-konform)
   Palette ist Kundenvorgabe (Honiggold, Creme, Braun, gedecktes Grün).
   ============================================================ */

/* ---------- Lokal gehostete Schriften (DSGVO-konform) ---------- */

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-500.woff2") format("woff2");
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-600.woff2") format("woff2");
}

@font-face {
  font-family: "Work Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/work-sans-400.woff2") format("woff2");
}

@font-face {
  font-family: "Work Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/work-sans-500.woff2") format("woff2");
}

@font-face {
  font-family: "Work Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/work-sans-600.woff2") format("woff2");
}

:root {
  --paper: #fbf9f3;
  --cream: #f2ecdd;
  --line: #e3dac4;
  --ink: #2b2114;
  --ink-soft: #5c5142;
  --honey: #e2a33c;
  --honey-deep: #8a5a12;
  --moss: #55624a;
  --moss-deep: #2e3826;
  --moss-tint: #e6eadd;
  --r-surface: 16px;
  --r-input: 10px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset & Basis ---------- */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Feines Papierkorn auf der gesamten Seite: gibt den Flächen eine
   handgemachte, taktile Anmutung, ohne Verläufe. Fixiert und klickdurchlässig,
   damit das Scrollen flüssig bleibt (kein Repaint auf scrollenden Containern). */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Seitenweiter Hintergrund-Loop: stummes Video hinter der gesamten Seite
   (nicht nur Hero). Negativer z-index platziert es unter allen statischen
   Inhalten; ein warmer Creme-Schleier haelt Text/Formulare lesbar. Bei
   reduced-motion bleibt nur das Poster-Standbild. */
.site-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-bg-scrim {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(251, 249, 243, 0.86) 0%,
    rgba(251, 249, 243, 0.78) 100%
  );
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .site-bg {
    display: none;
  }
}

/* Kicker / Augenbraue: sparsam eingesetzt (Hero, Versprechen). */
.kicker {
  font-family: "Work Sans", system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--honey-deep);
  margin: 0 0 1rem;
  max-width: none;
}

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

h1,
h2,
h3 {
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 0.6em;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.4rem, 6vw, 3.6rem);
}

h2 {
  font-size: clamp(1.9rem, 4.2vw, 2.6rem);
}

h3 {
  font-size: 1.4rem;
}

p {
  margin: 0 0 1em;
  max-width: 65ch;
  color: var(--ink-soft);
}

p.lead {
  font-size: 1.1rem;
  max-width: 56ch;
}

a {
  color: var(--honey-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 2px solid var(--honey-deep);
  outline-offset: 3px;
  border-radius: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 1rem;
}

/* ---------- Layout-Helfer ---------- */

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

section {
  padding-block: clamp(3.5rem, 9vw, 6.5rem);
}

.band--cream {
  background: rgba(242, 236, 221, 0.82);
}

.band--moss {
  background: rgba(230, 234, 221, 0.82);
}

/* ---------- Header & Navigation ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  font-size: 1.45rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.brand-mark {
  width: 22px;
  height: 22px;
  color: var(--honey-deep);
  flex: none;
}

.site-nav {
  display: none;
}

.site-nav.open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: -1.25rem;
  right: -1.25rem;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 0.5rem 1.25rem 1.25rem;
  gap: 0.25rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  font-size: 1rem;
  padding: 0.65rem 0.25rem;
  border-radius: 6px;
  transition: color 0.15s var(--ease);
}

.site-nav a:hover {
  color: var(--honey-deep);
}

.site-nav a[aria-current="page"] {
  color: var(--honey-deep);
}

.nav-toggle {
  appearance: none;
  background: none;
  border: 0;
  padding: 0.6rem 0.4rem;
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 860px) {
  .header-inner {
    min-height: 72px;
  }

  .nav-toggle {
    display: none;
  }

  .site-nav {
    display: flex;
    position: static;
    flex-direction: row;
    gap: 2rem;
    border: 0;
    padding: 0;
    background: none;
  }

  .site-nav a {
    padding: 0.25rem 0;
    font-size: 0.98rem;
  }
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.85rem 1.7rem;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.97rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s var(--ease), transform 0.15s var(--ease),
    border-color 0.2s var(--ease);
  white-space: nowrap;
}

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

.btn-primary {
  background: var(--honey);
  color: var(--ink);
}

.btn-primary:hover {
  background: #d2932e;
}

.btn-secondary {
  border-color: rgba(43, 33, 20, 0.35);
  color: var(--ink);
  background: transparent;
}

.btn-secondary:hover {
  border-color: var(--ink);
}

.btn-light {
  background: var(--paper);
  color: var(--ink);
}

.btn-light:hover {
  background: #fff;
}

/* ---------- Anfrage-Formular (kontakt.html) ---------- */

.anfrage-form {
  max-width: 640px;
}

.form-grid {
  display: grid;
  gap: 0 1rem;
}

@media (min-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.form-field {
  margin-bottom: 1.1rem;
}

.form-field label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.35rem;
}

.label-hint {
  font-weight: 400;
  color: var(--ink-soft);
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-input);
}

.form-field ::placeholder {
  color: var(--ink-soft);
  opacity: 1;
}

.form-field textarea {
  resize: vertical;
  min-height: 8rem;
}

.form-note {
  font-size: 0.85rem;
  max-width: 640px;
}

.form-status {
  font-weight: 500;
  padding: 0.8rem 1rem;
  border: 1px solid;
  border-radius: var(--r-input);
  max-width: 640px;
}

.form-status--ok {
  color: var(--moss-deep);
  background: var(--moss-tint);
  border-color: var(--moss);
}

.form-status--err {
  color: #7a2e1d;
  background: #f7e6e0;
  border-color: #c96f57;
}

/* Honeypot: aus dem Sichtbereich geschoben, nicht display:none,
   damit simple Bots das Feld weiterhin ausfüllen. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Foto-Platzhalter ----------
   Klar beschriftete Slots für echte Fotos (siehe FOTOS.md).
   Werden beim Einbau echter Bilder durch <img> ersetzt. */

.ph {
  position: relative;
  margin: 0;
  border-radius: var(--r-surface);
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  min-height: 220px;
}

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

.ph--tall {
  aspect-ratio: 4 / 5;
}

.ph--wide {
  aspect-ratio: 16 / 10;
  min-height: 180px;
}

/* Sanftes Heranzoomen des Produktbildes beim Überfahren der Kachel. */
.tile .ph img {
  transition: transform 0.5s var(--ease);
}

.tile:hover .ph img {
  transform: scale(1.04);
}

/* ---------- Hero (Startseite) ---------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(2.5rem, 7vw, 5.5rem);
}

.hero h1 {
  margin-bottom: 0.45em;
}

.hero .lead {
  margin-bottom: 1.8em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.hero .kicker {
  margin-bottom: 1.1rem;
}

/* ---------- Vertrauens-Streifen (unter dem Hero) ---------- */

.trust {
  padding-block: 0 clamp(2.5rem, 6vw, 4rem);
}

.trust-strip {
  display: grid;
  gap: 0;
  /* margin-inline: auto muss die dl-Defaults UND .wrap-Kaskade gewinnen,
     sonst klebt der Streifen am linken Viewport-Rand. */
  margin: 0 auto;
  padding: 1.6rem 0 0;
  border-top: 1px solid var(--line);
}

.trust-item {
  padding-block: 1rem;
}

.trust-item + .trust-item {
  border-top: 1px solid var(--line);
}

.trust-item dt {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--ink);
  margin-bottom: 0.15rem;
}

.trust-item dd {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

@media (min-width: 760px) {
  .trust-strip {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    padding-top: 1.8rem;
  }

  .trust-item {
    padding-block: 0;
  }

  .trust-item + .trust-item {
    border-top: 0;
  }
}

/* ---------- CTA unter den Bezugs-Zeilen ---------- */

.rows-cta {
  margin-top: 2.4rem;
}

/* ---------- Versprechen der Familie (signiert) ---------- */

.promise {
  background: rgba(242, 236, 221, 0.82);
}

.promise .wrap {
  max-width: 760px;
}

.promise blockquote {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.7rem, 3.8vw, 2.5rem);
  font-weight: 500;
  line-height: 1.28;
  color: var(--ink);
  max-width: 24ch;
}

.promise-sign {
  margin: 1.6rem 0 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--moss-deep);
}

/* ---------- Geschichte-Link in der Werkstatt-Sektion ---------- */

.step-link {
  margin: 1.6rem 0 0;
}

.step-link a {
  font-weight: 600;
  font-size: 0.96rem;
  text-decoration: none;
}

.step-link a:hover {
  text-decoration: underline;
}

/* ---------- Statement ---------- */

.statement h2 {
  max-width: 18ch;
}

.statement p {
  font-size: 1.15rem;
  max-width: 52ch;
}

@media (min-width: 900px) {
  .statement .statement-inner {
    padding-left: 8vw;
  }
}

/* ---------- Produkt-Kacheln (Bento) ---------- */

.bento {
  display: grid;
  gap: 1.1rem;
  margin-top: 2.2rem;
}

.tile {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-radius: var(--r-surface);
  border: 1px solid var(--line);
  background: #fffdf8;
  text-decoration: none;
  color: var(--ink);
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(92, 70, 30, 0.13);
}

.tile .ph {
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid var(--line);
}

.tile-body {
  padding: 1.3rem 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1;
}

.tile-body h3 {
  margin: 0;
}

.tile-body p {
  margin: 0;
  font-size: 0.95rem;
}

.tile-body .spec {
  font-size: 0.77rem;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
}

.tile-link {
  margin-top: auto;
  padding-top: 0.9rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--honey-deep);
  transition: transform 0.25s var(--ease);
}

.tile:hover .tile-link {
  transform: translateX(3px);
}

@media (min-width: 760px) {
  .bento {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- Split-Sektion (Bild + Text) ---------- */

.split {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 5fr 6fr;
    gap: 4.5rem;
    align-items: start;
  }

  .split--flip > :first-child {
    order: 2;
  }
}

/* ---------- Schritte / Werte (gestapelte Blöcke) ---------- */

.steps {
  margin-top: 0.5rem;
}

.step {
  padding-block: 1.4rem;
}

.step + .step {
  border-top: 1px solid var(--line);
}

.step h3 {
  margin-bottom: 0.3em;
}

.step p {
  margin: 0;
  font-size: 0.98rem;
}

/* ---------- Zeilen-Listen (Begriff + Beschreibung) ---------- */

.rows {
  margin-top: 1.5rem;
}

.row {
  display: grid;
  gap: 0.3rem;
  padding-block: 1.35rem;
}

.row + .row {
  border-top: 1px solid var(--line);
}

.row dt {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  font-size: 1.3rem;
}

.row dd {
  margin: 0;
  color: var(--ink-soft);
  max-width: 60ch;
}

@media (min-width: 760px) {
  .row {
    grid-template-columns: 240px 1fr;
    gap: 2rem;
    align-items: baseline;
  }
}

/* ---------- Zitat ---------- */

.quote {
  text-align: left;
}

.quote blockquote {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  font-weight: 500;
  line-height: 1.3;
  max-width: 30ch;
  color: var(--ink);
}

.quote cite {
  display: block;
  margin-top: 1.2rem;
  font-style: normal;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* ---------- Info-Box (Kennzeichnung, Hinweise) ---------- */

.notice {
  border: 1px solid var(--line);
  border-radius: var(--r-surface);
  background: #fffdf8;
  padding: 1.7rem 1.8rem;
  margin-top: 2rem;
}

.notice h3 {
  margin-top: 0;
}

.notice ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--ink-soft);
}

.notice li {
  padding-block: 0.25rem;
}

.notice li::marker {
  color: var(--honey-deep);
}

.notice .todo {
  display: block;
  margin-top: 1rem;
  font-size: 0.88rem;
  color: var(--honey-deep);
  font-weight: 500;
}

/* ---------- Produktblöcke auf Kategorieseiten ---------- */

.products {
  display: grid;
  gap: 1.1rem;
  margin-top: 2.2rem;
}

.product {
  border: 1px solid var(--line);
  border-radius: var(--r-surface);
  background: #fffdf8;
  padding: 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.product h3 {
  margin: 0;
}

.product p {
  margin: 0;
  font-size: 0.96rem;
}

.product .price {
  margin-top: 0.7rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--honey-deep);
}

.product--placeholder {
  border-style: dashed;
  background: transparent;
}

@media (min-width: 760px) {
  .products {
    grid-template-columns: repeat(2, 1fr);
  }

  .product--wide {
    grid-column: span 2;
  }
}

/* ---------- Seitenkopf (Unterseiten) ---------- */

.page-head {
  padding-block: clamp(3rem, 7vw, 5rem) clamp(1.5rem, 4vw, 2.5rem);
}

.page-head h1 {
  max-width: 16ch;
}

.page-head .lead {
  margin-bottom: 0;
}

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

.site-footer {
  background: var(--moss-deep);
  color: #efede4;
  margin-top: clamp(2rem, 6vw, 4rem);
}

.site-footer a {
  color: #efede4;
}

.site-footer a.btn-light {
  color: var(--ink);
}

.footer-cta {
  padding-block: clamp(3rem, 8vw, 5rem) clamp(2.5rem, 6vw, 4rem);
  border-bottom: 1px solid rgba(239, 237, 228, 0.16);
}

.footer-cta h2 {
  color: #fbf9f3;
  max-width: 20ch;
}

.footer-cta p {
  color: rgba(239, 237, 228, 0.8);
  margin-bottom: 1.6em;
}

.footer-grid {
  display: grid;
  gap: 2.2rem;
  padding-block: 2.8rem;
}

.footer-grid h3 {
  font-family: "Work Sans", system-ui, sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(239, 237, 228, 0.6);
  margin-bottom: 0.8em;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-grid li {
  padding-block: 0.22rem;
}

.footer-grid a {
  text-decoration: none;
}

.footer-grid a:hover {
  text-decoration: underline;
}

.footer-grid p {
  color: rgba(239, 237, 228, 0.75);
  font-size: 0.95rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: #fbf9f3;
  text-decoration: none;
}

.footer-brand .brand-mark {
  color: var(--honey);
}

.footer-bottom {
  border-top: 1px solid rgba(239, 237, 228, 0.16);
  padding-block: 1.4rem;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(239, 237, 228, 0.6);
}

@media (min-width: 860px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 3rem;
  }
}

/* ---------- Scroll-Reveal (dezent, nur ohne Reduced Motion) ----------
   Nur aktiv, wenn JS laeuft (html.js wird in main.js gesetzt):
   ohne JS bleibt aller Inhalt sichtbar, statt hinter opacity:0 zu haengen. */

.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.js .reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .tile,
  .btn {
    transition: none;
  }
}
