/* ------------------------------------------------------------------
   Stefan Antocel, Bodenleger Aachen — Demo
   Designrichtung: Material und Oberflaeche. Sehr helle, warme Holztoene,
   feine Textur (Dielen-Hairlines, Zollstock-Skala), ruhige Grotesk,
   viel Luft. Wow-Moment: die 5,0 als grosses typografisches Element.
   Schriften lokal (OFL): Familjen Grotesk 600 (Display), DM Sans 400/500.
------------------------------------------------------------------- */

@font-face {
  font-family: "Familjen";
  src: url("display.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DMSans";
  src: url("body.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DMSans";
  src: url("body-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #faf6f0;
  --paper-2: #f2ebe1;
  --paper-3: #ede4d7;
  --ink: #221d19;
  --ink-2: #574d45;
  --ink-3: #7d7168;
  --line: #e3d8c8;
  --line-soft: #ece3d6;
  --wood: #b8834a;
  --wood-deep: #7a5227;
  --white: #fffdfa;
  --maxw: 1140px;
  --pad: 26px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background-color: var(--paper);
  /* Feine Dielen-Textur: warme Hairlines im Raster eines verlegten Bodens */
  background-image:
    repeating-linear-gradient(0deg, rgba(184, 131, 74, 0.045) 0 1px, transparent 1px 132px),
    repeating-linear-gradient(90deg, rgba(184, 131, 74, 0.032) 0 1px, transparent 1px 264px);
  color: var(--ink);
  font-family: "DMSans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3, .num, .brand {
  font-family: "Familjen", "DMSans", Helvetica, Arial, sans-serif;
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}
.narrow { max-width: 700px; }

.eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--wood-deep);
  margin: 0 0 18px;
}

.lede { color: var(--ink-2); font-size: 19px; }
.small { font-size: 14px; color: var(--ink-3); line-height: 1.6; }

/* ---------- Demo-Banner (bei go_live entfernen) ---------- */
.demo-banner {
  background: var(--ink);
  color: #f0e7db;
  font-size: 13px;
  letter-spacing: 0.02em;
  text-align: center;
  padding: 9px 16px;
  line-height: 1.45;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 246, 240, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}
.brand {
  text-decoration: none;
  font-size: 19px;
  letter-spacing: -0.01em;
  display: flex;
  align-items: baseline;
  gap: 9px;
}
.brand .role {
  font-family: "DMSans", sans-serif;
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.head-call {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.head-call:hover { border-color: var(--wood); transform: translateY(-1px); }
.head-call .ic { width: 16px; height: 16px; color: var(--wood-deep); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 500;
  font-size: 17px;
  padding: 16px 26px;
  border-radius: 4px;
  min-height: 54px;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn .ic { width: 19px; height: 19px; }
.btn-main {
  background: var(--ink);
  color: #fbf6ef;
  border: 1px solid var(--ink);
}
.btn-main:hover { transform: translateY(-2px); background: #100d0b; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--wood); transform: translateY(-2px); }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Zollstock-Skala (Signature-Detail) ---------- */
.scale {
  height: 26px;
  width: 100%;
  background-image:
    repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 11px),
    repeating-linear-gradient(90deg, var(--wood) 0 1px, transparent 1px 55px);
  background-size: 100% 9px, 100% 17px;
  background-position: left bottom, left bottom;
  background-repeat: repeat-x;
  opacity: 0.85;
}

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 76px); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(28px, 5vw, 66px);
  align-items: center;
}
h1 { font-size: clamp(36px, 5.6vw, 66px); }
h1 .h1-second {
  display: block;
  color: var(--wood-deep);
  font-size: 0.66em;
  letter-spacing: -0.012em;
  margin-top: 0.28em;
}
.hero-text .lede { margin-top: 22px; max-width: 44ch; }
.hero-text .actions { margin-top: 30px; }
.hero-meta { margin-top: 20px; }

.frame {
  position: relative;
  border-radius: 5px;
  overflow: hidden;
  background: var(--paper-3);
  box-shadow: 0 1px 0 rgba(122, 82, 39, 0.14), 0 26px 50px -32px rgba(60, 40, 20, 0.45);
}
.frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-frame img { aspect-ratio: 1 / 1; object-position: 64% center; }
.tag {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: rgba(34, 29, 25, 0.72);
  color: #f3ece2;
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 3px;
}

/* ---------- Bewertungs-Band (Wow-Moment) ---------- */
.rating {
  background: var(--paper-2);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: clamp(46px, 7vw, 86px) 0 0;
}
.rating-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(20px, 5vw, 58px);
  align-items: center;
}
.num {
  font-size: clamp(112px, 25vw, 268px);
  line-height: 0.78;
  letter-spacing: -0.055em;
  color: var(--wood-deep);
  display: block;
}
.rating-side { padding-bottom: 8px; }
.stars { display: flex; gap: 5px; margin-bottom: 16px; }
.stars svg { width: 22px; height: 22px; color: var(--wood); }
.rating-side h2 { font-size: clamp(23px, 2.6vw, 31px); margin-bottom: 12px; }
.rating-side p { color: var(--ink-2); max-width: 40ch; }
.rating .scale { margin-top: clamp(34px, 5vw, 62px); }

/* ---------- Bildstreifen ---------- */
.strip { padding: clamp(46px, 7vw, 88px) 0 0; }
.strip-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 16px;
  align-items: stretch;
}
.strip-grid .frame { min-height: 0; }
.strip-grid .frame img { height: clamp(240px, 34vw, 420px); width: 100%; object-fit: cover; }
.strip-note { margin-top: 18px; max-width: 62ch; }

/* ---------- Sektionen ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section h2 { font-size: clamp(27px, 3.6vw, 42px); margin-bottom: 20px; }

.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
  border-top: 1px solid var(--line);
  padding-top: clamp(28px, 4vw, 46px);
}
.about-head h2 { margin-bottom: 0; }
.about-text p { color: var(--ink-2); max-width: 52ch; font-size: 18px; }
.facts { margin-top: 32px; border-top: 1px solid var(--line); }
.facts div {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.facts dt {
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.facts dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.facts a { text-decoration-color: var(--line); text-underline-offset: 3px; }
.facts a:hover { text-decoration-color: var(--wood); }

/* ---------- Offene Punkte (Demo-Hinweis) ---------- */
.open { background: var(--paper-2); border-top: 1px solid var(--line-soft); }
.open .lede { max-width: 58ch; }
.open-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 38px;
}
.open-cards div {
  border: 1px dashed var(--line);
  border-radius: 4px;
  padding: 20px 20px 22px;
  background: rgba(255, 253, 250, 0.55);
}
.open-cards h3 { font-size: 18px; margin-bottom: 7px; }
.open-cards p { color: var(--ink-3); font-size: 15px; }

/* ---------- Kontakt ---------- */
.contact { text-align: left; }
.contact .card {
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--white);
  padding: clamp(28px, 4.5vw, 54px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(22px, 4vw, 48px);
  align-items: center;
}
.contact h2 { margin-bottom: 14px; }
.contact p { color: var(--ink-2); max-width: 42ch; }
.contact .btn-main { font-size: 18px; padding: 18px 30px; }
.contact-side { text-align: left; }
.contact-side .small { margin-top: 12px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 30px 0 calc(30px + env(safe-area-inset-bottom));
  font-size: 14px;
  color: var(--ink-3);
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  align-items: center;
  justify-content: space-between;
}
.site-footer a { text-decoration-color: var(--line); text-underline-offset: 3px; }
.site-footer a:hover { color: var(--wood-deep); }

/* ---------- Sticky Call (mobil) ---------- */
.sticky-call {
  display: none;
  position: fixed;
  left: 14px;
  right: 14px;
  bottom: calc(14px + env(safe-area-inset-bottom));
  z-index: 60;
  background: var(--ink);
  color: #fbf6ef;
  text-decoration: none;
  font-weight: 500;
  font-size: 17px;
  padding: 16px;
  border-radius: 4px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  box-shadow: 0 12px 30px -12px rgba(34, 29, 25, 0.6);
}
.sticky-call .ic { width: 19px; height: 19px; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); }
.js .reveal.in {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 0.8, 0.3, 1);
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Rechtstexte ---------- */
.legal h1 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 22px; }
.legal h3 { font-size: 19px; }
.legal p { color: var(--ink-2); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .about-grid { grid-template-columns: 1fr; }
  .hero-frame { order: -1; }
  .hero-frame img { aspect-ratio: 16 / 11; object-position: 62% center; }
  .about-grid { padding-top: 26px; }
  .strip-grid { grid-template-columns: 1fr; }
  .open-cards { grid-template-columns: 1fr; }
  .contact .card { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  :root { --pad: 20px; }
  body { font-size: 16px; }
  .head-call { display: none; }
  .sticky-call { display: flex; }
  main { padding-bottom: 92px; }
  .rating-grid { grid-template-columns: 1fr; gap: 14px; }
  .num { letter-spacing: -0.04em; }
  .facts div { grid-template-columns: 1fr; gap: 2px; }
  .brand .role { display: none; }
  .actions .btn { width: 100%; }
}

@media (max-width: 380px) {
  h1 { font-size: 33px; }
}
