/* ============================================================
   Tannenwichtel Manufaktur — Stylesheet
   ============================================================ */

:root {
  --creme: #fbf7f1;
  --sand: #f1e8db;
  --sand-dunkel: #e3d6c3;
  --tann: #2e4636;
  --tann-hell: #4b6b52;
  --rost: #b4503c;
  --holz: #8a6a4b;
  --ink: #241f1a;
  --muted: #6f6455;
  --radius: 14px;
  --shadow: 0 2px 4px rgba(36, 31, 26, .06), 0 8px 24px rgba(36, 31, 26, .07);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--creme);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}

h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; }

a { color: var(--tann); }

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

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header ---------- */

header.site {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(251, 247, 241, .93);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--sand-dunkel);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
}

.brand-text {
  font-family: Georgia, serif;
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1.15;
}

.brand-text small {
  display: block;
  font-family: inherit;
  font-size: .62rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
}

.nav-links {
  display: flex;
  gap: 22px;
  font-size: .92rem;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}

.nav-links a:hover { color: var(--tann); border-bottom-color: var(--sand-dunkel); }

.cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--tann);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 9px 16px;
  font-size: .9rem;
  font-family: inherit;
  cursor: pointer;
  transition: background .15s ease;
}

.cart-btn:hover { background: var(--tann-hell); }

.cart-count {
  background: var(--rost);
  color: #fff;
  border-radius: 999px;
  min-width: 21px;
  height: 21px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .74rem;
  font-weight: 700;
  padding: 0 6px;
}

.cart-count[data-empty="true"] { background: var(--sand-dunkel); color: var(--muted); }

/* ---------- Hero ---------- */

.hero {
  padding: clamp(40px, 7vw, 78px) 0 clamp(30px, 5vw, 56px);
  background:
    radial-gradient(1200px 420px at 12% -10%, #f6ede0 0%, transparent 70%),
    radial-gradient(900px 380px at 92% 0%, #eef0e6 0%, transparent 65%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
}

.hero p.lead {
  font-size: clamp(1rem, 1.9vw, 1.16rem);
  color: var(--muted);
  max-width: 46ch;
}

.eyebrow {
  display: inline-block;
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--rost);
  font-weight: 700;
  margin-bottom: 14px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 13px 24px;
  font-family: inherit;
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .12s ease, background .15s ease, box-shadow .15s ease;
}

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

.btn-primary { background: var(--tann); color: #fff; }
.btn-primary:hover { background: var(--tann-hell); }

.btn-ghost {
  background: transparent;
  color: var(--tann);
  border-color: var(--tann);
}
.btn-ghost:hover { background: rgba(46, 70, 54, .07); }

.btn-whatsapp { background: #1f8f4e; color: #fff; }
.btn-whatsapp:hover { background: #1a7a42; }

.hero-art {
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--sand);
}

/* ---------- Info-Streifen ---------- */

.strip {
  border-top: 1px solid var(--sand-dunkel);
  border-bottom: 1px solid var(--sand-dunkel);
  background: var(--sand);
}

.strip-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 20px 0;
  text-align: center;
  font-size: .88rem;
  color: var(--tann);
}

.strip-inner strong { display: block; font-size: .95rem; }

/* ---------- Produkte ---------- */

section.produkte { padding: clamp(38px, 6vw, 68px) 0; }

.section-head { max-width: 60ch; margin-bottom: 30px; }
.section-head p { color: var(--muted); margin-bottom: 0; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: clamp(16px, 2.4vw, 26px);
}

.card {
  background: #fff;
  border: 1px solid var(--sand-dunkel);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .18s ease, transform .18s ease;
}

.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }

.card-img {
  aspect-ratio: 4 / 3;
  background: var(--sand);
  overflow: hidden;
}

.card-img img { width: 100%; height: 100%; object-fit: cover; }

.card-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-body h3 { margin-bottom: 2px; }

.card-size {
  font-size: .8rem;
  color: var(--muted);
  margin-bottom: 10px;
}

.card-desc {
  font-size: .89rem;
  color: #4b4338;
  margin-bottom: 14px;
  flex: 1;
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  border-top: 1px solid var(--sand);
  padding-top: 14px;
}

.preis {
  font-family: Georgia, serif;
  font-size: 1.28rem;
  font-weight: 600;
  color: var(--tann);
  white-space: nowrap;
}

.preis small {
  font-family: inherit;
  font-size: .62rem;
  color: var(--muted);
  display: block;
  font-weight: 400;
  letter-spacing: .06em;
}

.variante {
  font-family: inherit;
  font-size: .85rem;
  padding: 8px 10px;
  border: 1px solid var(--sand-dunkel);
  border-radius: 8px;
  background: var(--creme);
  color: var(--ink);
  margin-bottom: 12px;
  width: 100%;
}

.btn-add {
  background: var(--rost);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  font-family: inherit;
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s ease;
  white-space: nowrap;
}

.btn-add:hover { background: #9c4433; }

.card-deko {
  font-size: .72rem;
  color: var(--muted);
  margin-top: 10px;
  line-height: 1.35;
}

.badge-aus {
  display: inline-block;
  font-size: .72rem;
  background: var(--sand);
  color: var(--muted);
  border-radius: 999px;
  padding: 3px 10px;
  margin-bottom: 8px;
}

/* ---------- Über / Ablauf ---------- */

.ueber { background: var(--sand); padding: clamp(38px, 6vw, 66px) 0; }

.zwei-spalten {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(26px, 5vw, 60px);
  align-items: start;
}

.schritte { list-style: none; padding: 0; margin: 0; counter-reset: s; }

.schritte li {
  counter-increment: s;
  position: relative;
  padding-left: 46px;
  margin-bottom: 18px;
  font-size: .95rem;
}

.schritte li::before {
  content: counter(s);
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--tann);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  font-weight: 700;
}

.schritte strong { display: block; }

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

footer.site {
  background: var(--tann);
  color: #dfe6dc;
  padding: 42px 0 30px;
  font-size: .87rem;
}

footer.site a { color: #fff; text-decoration: none; }
footer.site a:hover { text-decoration: underline; }

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, .18);
  padding-bottom: 24px;
  margin-bottom: 18px;
}

.footer-grid h4 {
  color: #fff;
  font-size: .95rem;
  margin-bottom: 8px;
  font-family: inherit;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.footer-links { display: flex; flex-direction: column; gap: 6px; }

.footer-klein {
  color: #b6c4b4;
  font-size: .78rem;
  max-width: 62ch;
}

/* ---------- Warenkorb-Schublade ---------- */

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(36, 31, 26, .45);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  z-index: 50;
}

.overlay.open { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(430px, 100%);
  background: var(--creme);
  z-index: 60;
  transform: translateX(102%);
  transition: transform .26s cubic-bezier(.4, 0, .2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 30px rgba(36, 31, 26, .18);
}

.drawer.open { transform: translateX(0); }

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--sand-dunkel);
}

.drawer-head h2 { margin: 0; font-size: 1.2rem; }

.close-x {
  background: none;
  border: 0;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
  padding: 4px 8px;
}

.drawer-body { flex: 1; overflow-y: auto; padding: 16px 20px; }

.leer { color: var(--muted); text-align: center; padding: 40px 0; font-size: .92rem; }

.li {
  display: grid;
  grid-template-columns: 62px 1fr auto;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--sand);
  align-items: start;
}

.li img {
  width: 62px;
  height: 62px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--sand);
}

.li-name { font-weight: 600; font-size: .92rem; line-height: 1.3; }
.li-var { font-size: .78rem; color: var(--muted); }
.li-preis { font-size: .88rem; color: var(--tann); font-weight: 600; }

.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--sand-dunkel);
  border-radius: 999px;
  margin-top: 6px;
  overflow: hidden;
}

.qty button {
  background: none;
  border: 0;
  width: 26px;
  height: 26px;
  cursor: pointer;
  font-size: .95rem;
  color: var(--tann);
  line-height: 1;
}

.qty span { min-width: 22px; text-align: center; font-size: .85rem; }

.li-remove {
  background: none;
  border: 0;
  color: var(--muted);
  font-size: .76rem;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}

.drawer-foot {
  border-top: 1px solid var(--sand-dunkel);
  padding: 16px 20px 20px;
  background: #fff;
}

.summe-zeile {
  display: flex;
  justify-content: space-between;
  font-size: .9rem;
  margin-bottom: 6px;
  color: var(--muted);
}

.summe-zeile.total {
  font-size: 1.05rem;
  color: var(--ink);
  font-weight: 700;
  border-top: 1px solid var(--sand);
  padding-top: 10px;
  margin-top: 10px;
}

.drawer-foot .btn { width: 100%; margin-top: 12px; }

.hinweis-klein {
  font-size: .74rem;
  color: var(--muted);
  margin-top: 10px;
  line-height: 1.4;
}

/* ---------- Bestellformular ---------- */

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.form-grid .full { grid-column: 1 / -1; }

label.feld {
  display: block;
  font-size: .78rem;
  color: var(--muted);
  margin-bottom: 12px;
}

label.feld input,
label.feld textarea {
  width: 100%;
  margin-top: 4px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: .92rem;
  color: var(--ink);
  background: var(--creme);
  border: 1px solid var(--sand-dunkel);
  border-radius: 9px;
}

label.feld input:focus,
label.feld textarea:focus {
  outline: 2px solid rgba(46, 70, 54, .35);
  border-color: var(--tann);
}

.radio-zeile {
  display: flex;
  gap: 8px;
  margin: 4px 0 14px;
  flex-wrap: wrap;
}

.radio-zeile label {
  font-size: .85rem;
  border: 1px solid var(--sand-dunkel);
  background: var(--creme);
  border-radius: 999px;
  padding: 7px 14px;
  cursor: pointer;
}

.radio-zeile input { margin-right: 6px; }

/* ---------- Rechtsseiten ---------- */

.legal { padding: clamp(32px, 5vw, 60px) 0 70px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
.legal h2 { font-size: 1.25rem; margin-top: 1.8em; }
.legal h3 { font-size: 1.02rem; margin-top: 1.5em; }
.legal p, .legal li { font-size: .95rem; color: #3a342c; }
.legal .zurueck { font-size: .85rem; display: inline-block; margin-bottom: 22px; }

.platzhalter {
  background: #fdf0cd;
  border-bottom: 2px dotted var(--rost);
  padding: 0 2px;
}

.notiz {
  background: var(--sand);
  border-left: 3px solid var(--holz);
  padding: 14px 16px;
  border-radius: 0 8px 8px 0;
  font-size: .88rem;
  margin: 18px 0;
}

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translate(-50%, 20px);
  background: var(--ink);
  color: #fff;
  padding: 11px 20px;
  border-radius: 999px;
  font-size: .88rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 80;
  max-width: 90vw;
  text-align: center;
}

.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-height: 300px; }
  .hero-art img { height: 300px; object-fit: cover; }
  .zwei-spalten { grid-template-columns: 1fr; }
  .strip-inner { grid-template-columns: 1fr; gap: 12px; text-align: left; }
  .nav-links { display: none; }
}

@media (max-width: 520px) {
  .form-grid { grid-template-columns: 1fr; }
  .card-foot { flex-direction: column; align-items: stretch; }
  .btn-add { width: 100%; }
  .preis { text-align: left; }
  .brand-text { font-size: .96rem; }
  .brand-text small { font-size: .55rem; letter-spacing: .12em; }
  .cart-btn span:not(.cart-count) { display: none; }
  .cart-btn { padding: 9px 13px; }
}