/* AzoozBasteln – v2.1: Fraunces + DM Sans, warm editorial palette */
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/fraunces-v38-latin_latin-ext-600.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/fraunces-v38-latin_latin-ext-700.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/fraunces-v38-latin_latin-ext-italic.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/dm-sans-v17-latin_latin-ext-regular.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/dm-sans-v17-latin_latin-ext-500.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/dm-sans-v17-latin_latin-ext-700.woff2") format("woff2"); }

:root {
  --ink: #23201c;
  --ink-2: #625a52;
  --line: #e6ddd1;
  --bg: #fffdfa;
  --cream: #f7f1e8;
  --wood: #d9b98a;
  --red: #d9483b;
  --yellow: #e9b930;
  --green: #4f9d5b;
  --blue: #2c78b8;
  --accent: #b8432f;         /* terracotta – primary action colour */
  --accent-dark: #97341f;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(35,32,28,.05), 0 8px 24px rgba(35,32,28,.07);
  --shadow-lg: 0 24px 60px rgba(35,32,28,.16);
  --head: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--bg); line-height: 1.65; font-size: 17px; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { margin: 0 0 .6rem; font-family: var(--head); font-weight: 600; line-height: 1.12; letter-spacing: -.015em; }
h1 { font-size: clamp(2.4rem, 5vw, 3.9rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }
.muted { color: var(--ink-2); }
.container { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section--cream { background: var(--cream); }
.section__head { max-width: 62ch; margin-bottom: 2.75rem; }
.section__head p:last-child { margin-bottom: 0; }
.eyebrow { font-family: var(--body); font-weight: 700; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 0 0 .9rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .8rem 1.5rem; border-radius: 999px; font-family: var(--body); font-weight: 700; font-size: .95rem; letter-spacing: .01em;
  border: 1.5px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); }
.btn--ghost { border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--cream); }
.btn--ghost-light { border-color: rgba(255,255,255,.7); color: #fff; }
.btn--ghost-light:hover { background: rgba(255,255,255,.12); }
.btn--sm { padding: .55rem 1.1rem; font-size: .88rem; }
.btn--lg { padding: 1rem 2rem; font-size: 1.02rem; }
.btn--block { width: 100%; margin-bottom: .7rem; }

/* Topbar */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(255,253,250,.9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.topbar__inner { display: flex; align-items: center; gap: 2rem; height: 72px; }
.brand { display: flex; align-items: center; gap: .7rem; font-family: var(--head); font-weight: 600; font-size: 1.3rem; letter-spacing: -.01em; }
.brand__logo { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.nav { display: flex; gap: 1.75rem; margin-left: auto; font-weight: 500; font-size: .95rem; color: var(--ink-2); }
.nav a { padding: .4rem 0; border-bottom: 2px solid transparent; transition: color .15s, border-color .15s; }
.nav a:hover { color: var(--ink); border-color: var(--accent); }

/* Hero */
.hero { background: linear-gradient(180deg, var(--cream) 0%, var(--bg) 100%); border-bottom: 1px solid var(--line); }
.hero__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 4rem; align-items: center; padding: clamp(3rem, 7vw, 5.5rem) 0; }
.hero h1 em { font-style: italic; font-weight: 400; color: var(--accent); }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 54ch; margin-top: 1rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.75rem 0 2.25rem; }
.facts { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, auto); gap: 1.5rem 2.25rem; justify-content: start; }
.facts li { display: flex; flex-direction: column; border-left: 2px solid var(--wood); padding-left: .8rem; line-height: 1.25; }
.facts strong { font-family: var(--head); font-size: 1.25rem; font-weight: 600; }
.facts span { font-size: .82rem; color: var(--ink-2); }
.hero__media { margin: 0; position: relative; }
.hero__media img { width: 100%; max-height: 600px; object-fit: cover; object-position: center 35%; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.hero__media figcaption { position: absolute; left: 1rem; bottom: 1rem; background: rgba(255,253,250,.92); backdrop-filter: blur(6px); padding: .45rem .9rem; border-radius: 999px; font-size: .8rem; font-weight: 500; color: var(--ink-2); }

/* Audience */
.audience { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }
.aud { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; transition: transform .2s, box-shadow .2s; }
.aud:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.aud__mark { display: block; width: 36px; height: 6px; border-radius: 3px; margin-bottom: 1.25rem; }
.aud__mark--red { background: var(--red); } .aud__mark--blue { background: var(--blue); } .aud__mark--green { background: var(--green); } .aud__mark--yellow { background: var(--yellow); }
.aud p { color: var(--ink-2); font-size: .97rem; margin: 0; }

/* Product */
.product { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.gallery__main { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .75rem; }
.gallery__main img { border-radius: var(--radius-sm); width: 100%; max-height: 640px; object-fit: contain; }
.gallery__thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: .6rem; margin-top: .75rem; }
.thumb { padding: 0; border: 2px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: #fff; cursor: pointer; aspect-ratio: 1; transition: border-color .15s; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb:hover { border-color: var(--ink-2); }
.thumb.is-active { border-color: var(--accent); }
.product__price { font-size: 1rem; margin: .25rem 0 1.5rem; }
.product__price strong { font-family: var(--head); font-size: 2.1rem; font-weight: 600; margin-right: .5rem; }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; margin: 0 0 1.6rem; }
.specs div { background: #fff; padding: .8rem 1rem; }
.specs dt { font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-2); font-weight: 700; margin-bottom: .15rem; }
.specs dd { margin: 0; font-weight: 500; }
.checklist { list-style: none; padding: 0; margin: 0 0 1.75rem; }
.checklist li { padding-left: 1.75rem; position: relative; margin-bottom: .7rem; color: var(--ink-2); }
.checklist li strong { color: var(--ink); font-weight: 700; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .55em; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); }
.product__cta { margin-bottom: 1.5rem; }
.accordion { border-top: 1px solid var(--line); padding: 1rem 0; }
.accordion summary { font-family: var(--head); font-weight: 600; cursor: pointer; font-size: 1.1rem; }
.accordion p { margin: .6rem 0 0; color: var(--ink-2); }

/* Gallery */
.masonry { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 230px; gap: 1rem; }
.tile { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius); background: var(--cream); }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.tile:hover img { transform: scale(1.04); }
.tile--wide { grid-column: span 2; }
.tile--tall { grid-row: span 2; }
.tile figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 2rem 1rem .9rem; color: #fff; font-size: .9rem; font-weight: 500; background: linear-gradient(transparent, rgba(20,15,10,.7)); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-bottom: 3rem; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; }
.step__num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; margin-bottom: 1rem; font-family: var(--head); font-size: 1.2rem; font-weight: 600; color: #fff; background: var(--accent); }
.step p { color: var(--ink-2); margin: 0; }
.template { margin: 0 auto; max-width: 860px; }
.template img { border-radius: var(--radius-sm); border: 1px solid var(--line); box-shadow: var(--shadow); }
.template figcaption { margin-top: .8rem; text-align: center; color: var(--ink-2); font-size: .9rem; }

/* Ideas */
.ideas { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.ideas li { font-family: var(--head); font-size: 1.05rem; padding: .55rem 1.1rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.ideas li:nth-child(4n+1) { border-color: var(--red); } .ideas li:nth-child(4n+2) { border-color: var(--blue); }
.ideas li:nth-child(4n+3) { border-color: var(--green); } .ideas li:nth-child(4n+4) { border-color: var(--yellow); }

/* About */
.about { display: grid; grid-template-columns: 280px 1fr; gap: 3.5rem; align-items: center; }
.about__photo img { border-radius: 50%; box-shadow: var(--shadow); }
.stats { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; grid-template-columns: repeat(3, auto); gap: 1.5rem; justify-content: start; }
.stats li { display: flex; flex-direction: column; font-size: .85rem; color: var(--ink-2); line-height: 1.3; border-left: 2px solid var(--wood); padding-left: .8rem; }
.stats strong { font-family: var(--head); font-size: 1.15rem; color: var(--ink); font-weight: 600; }

/* CTA */
.cta { background: var(--ink); color: #fff; padding: clamp(3rem, 7vw, 5rem) 0; }
.cta__inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: center; }
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,.75); max-width: 50ch; margin: 0; }
.cta__btns { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: flex-end; }

/* Footer */
.footer { background: #1a1714; color: #a9a097; padding: 2rem 0; font-size: .88rem; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.footer .brand { color: #fff; font-size: 1.1rem; }
.footer p { margin: 0; }
.footer__nav { display: flex; gap: 1.25rem; }
.footer__nav a:hover { color: #fff; }

/* Legal pages */
.legal { max-width: 72ch; padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 1.5rem; }
.legal h2 { font-size: 1.35rem; margin-top: 2.25rem; }
.legal address { font-style: normal; }
.legal .todo { background: #fff4d6; border: 1px dashed var(--yellow); border-radius: var(--radius-sm); padding: .2rem .5rem; }
.legal .back { display: inline-block; margin-bottom: 1.5rem; color: var(--ink-2); font-weight: 500; }
.legal .back:hover { color: var(--accent); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* Responsive */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero__media { order: -1; }
  .hero__media img { max-height: 460px; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .product { grid-template-columns: 1fr; gap: 2.5rem; }
  .masonry { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 210px; }
  .steps { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; }
  .about__photo { width: 200px; }
  .cta__inner { grid-template-columns: 1fr; }
  .cta__btns { justify-content: flex-start; }
}
@media (max-width: 720px) {
  .nav { display: none; }
  .topbar__inner { gap: 1rem; }
  .gallery__thumbs { grid-template-columns: repeat(3, 1fr); }
  .specs { grid-template-columns: 1fr; }
  .masonry { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .tile--wide, .tile--tall { grid-column: auto; grid-row: auto; }
  .stats { grid-template-columns: 1fr; }
}
