/* Spettmann · Arbeitsvorbereitung im Holzbau
   Gestaltung nach spettmann-marketing.de
   Schrift: Raleway, lokal eingebunden (Ordner /fonts) – keine Verbindung zu Google */

@font-face { font-family: "Raleway"; src: url("fonts/raleway-300.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Raleway"; src: url("fonts/raleway-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Raleway"; src: url("fonts/raleway-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --dark: #111111;
  --dark-line: rgba(255, 255, 255, .12);
  --dark-text: #9a9a9a;
  --dark-head-2: #6e6e6e;

  --light: #f6f5f2;
  --light-2: #e8e6e1;
  --light-line: #dcdad4;
  --light-text: #6b6b6b;
  --light-head-2: #8c8c8c;

  --ink: #111111;
  --white: #ffffff;

  --font: "Raleway", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2, 0, .2, 1);
  --container: 1140px;
  --pad-x: 32px;
  --section-y: 128px;
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--dark);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
p { margin: 0; }
strong { font-weight: 700; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; }

.container { max-width: calc(var(--container) + 2 * var(--pad-x)); margin: 0 auto; padding: 0 var(--pad-x); position: relative; }
section { padding: var(--section-y) 0; position: relative; }

/* Flächen */
.dark {
  background: radial-gradient(120% 80% at 75% 0%, #1d1d1d 0%, var(--dark) 55%);
  color: var(--white);
}
.light { background: var(--light); color: var(--ink); }
.light-2 { background: var(--light-2); color: var(--ink); }

/* Eyebrow mit Linie */
.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-size: 12px; font-weight: 500; letter-spacing: .28em; text-transform: uppercase;
  margin-bottom: 32px;
}
.eyebrow::before { content: ""; width: 44px; height: 1px; background: currentColor; opacity: .6; }
.dark .eyebrow { color: #8a8a8a; }
.light .eyebrow, .light-2 .eyebrow { color: var(--light-text); }
.center { text-align: center; }
.center .eyebrow { justify-content: center; }

/* Überschriften zweifarbig */
.h-hero { font-size: clamp(40px, 5.6vw, 84px); line-height: 1.04; letter-spacing: -.01em; }
@media (max-width: 640px) { .h-hero { hyphens: auto; -webkit-hyphens: auto; } }
.h-sec { font-size: clamp(36px, 4.4vw, 60px); line-height: 1.06; letter-spacing: -.005em; hyphens: auto; -webkit-hyphens: auto; }
.h-xl { font-size: clamp(42px, 6.4vw, 92px); line-height: 1.04; letter-spacing: -.01em; }
.dark .muted { color: var(--dark-head-2); }
.light .muted { color: var(--light-head-2); }
.light-2 .muted { color: #8a8a8a; }

.lead { font-size: 21px; line-height: 1.68; margin-top: 32px; max-width: 34em; }
.dark .lead { color: var(--dark-text); }
.dark .lead strong { color: var(--white); font-weight: 700; }
.light .lead, .light-2 .lead { color: var(--light-text); }
.light .lead strong { color: var(--ink); }
.center .lead { margin-left: auto; margin-right: auto; }

/* Buttons */
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 48px; margin-top: 48px; }
.center .btn-row { justify-content: center; }

.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  height: 56px; padding: 0 40px; border-radius: 999px;
  font-family: var(--font); font-size: 17px; font-weight: 500; letter-spacing: .01em;
  transition: background-color 160ms var(--ease), color 160ms var(--ease), transform 160ms var(--ease);
  white-space: nowrap;
}
.pill:active { transform: translateY(1px); }
.pill .arr, .tlink .arr, .sq .arr { font-weight: 500; transition: transform 160ms var(--ease); }
.pill:hover .arr, .tlink:hover .arr, .sq:hover .arr { transform: translateX(4px); }
.pill-white { background: var(--white); color: var(--ink); }
.pill-white:hover { background: #e6e6e6; }
.pill-dark { background: var(--ink); color: var(--white); }
.pill-dark:hover { background: #333; }
.pill-sm { height: 44px; padding: 0 24px; font-size: 15px; }

.tlink { display: inline-flex; align-items: center; gap: 14px; font-size: 17px; font-weight: 500; }
.dark .tlink { color: var(--white); }

.sq {
  display: inline-flex; align-items: center; gap: 14px;
  height: 54px; padding: 0 24px;
  border: 1px solid currentColor;
  font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  transition: background-color 160ms var(--ease), color 160ms var(--ease);
}
.dark .sq:hover { background: var(--white); color: var(--ink); }

.trust { margin-top: 24px; font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.light-2 .trust, .light .trust { color: var(--light-text); }
.dark .trust { color: #7a7a7a; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(17, 17, 17, .92);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--dark-line);
  color: var(--white);
}
.site-header .container { display: flex; align-items: center; gap: 48px; height: var(--header-h); }
.site-header .logo { flex-shrink: 0; }
.site-header .logo img { height: 28px; width: auto; }
.site-header nav { display: flex; gap: 36px; margin-left: auto; }
.site-header nav a { font-size: 15px; font-weight: 500; color: #b5b5b5; transition: color 160ms var(--ease); }
.site-header nav a:hover { color: var(--white); }

/* Hero */
.hero { padding: 120px 0 0; overflow: hidden; }
.grid-lines {
  position: absolute; inset: 0; pointer-events: none;
  max-width: calc(var(--container) + 2 * var(--pad-x)); margin: 0 auto; padding: 0 var(--pad-x);
}
.grid-lines i {
  position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(255, 255, 255, .055);
}
.grid-lines i:nth-child(1) { left: var(--pad-x); }
.grid-lines i:nth-child(2) { left: calc(var(--pad-x) + var(--container) * .25); }
.grid-lines i:nth-child(3) { left: calc(var(--pad-x) + var(--container) * .5); }
.grid-lines i:nth-child(4) { left: calc(var(--pad-x) + var(--container) * .75); }
.grid-lines i:nth-child(5) { left: calc(var(--pad-x) + var(--container)); }

.hero .lead { max-width: 32em; }

.stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin-top: 80px; padding: 32px 0 72px;
  border-top: 1px solid var(--dark-line);
}
.stat-v { font-size: clamp(30px, 3.2vw, 44px); font-weight: 700; line-height: 1.1; }
.stat-l { margin-top: 6px; font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: #8a8a8a; }

/* Zweispaltig: Text links, Liste rechts */
.split { display: grid; grid-template-columns: 1fr 1.05fr; gap: 96px; align-items: center; }
.split.top { align-items: start; }

.icon-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--light-line); }
.icon-list li {
  display: grid; grid-template-columns: 48px 1fr; gap: 20px;
  padding: 28px 0; border-bottom: 1px solid var(--light-line);
}
.icon-dot {
  width: 48px; height: 48px; border-radius: 50%; background: var(--ink);
  display: flex; align-items: center; justify-content: center;
}
.icon-dot img { width: 18px; height: auto; }
.icon-list h3 { font-size: 21px; line-height: 1.3; margin-bottom: 6px; }
.icon-list p { font-size: 16px; color: var(--light-text); }

/* Kosten-Skala (dunkel) */
.scale { display: grid; gap: 18px; }
.scale-row { display: grid; grid-template-columns: 110px 1fr; align-items: center; gap: 20px; }
.scale-row span { font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: #8a8a8a; }
.bar {
  height: 56px; display: flex; align-items: center; padding: 0 20px;
  font-size: 22px; font-weight: 700; border-radius: 999px;
}
.bar.s1 { width: 18%; min-width: 72px; background: #2a2a2a; color: #9a9a9a; }
.bar.s2 { width: 46%; background: #6e6e6e; color: var(--white); }
.bar.s3 { width: 100%; background: var(--white); color: var(--ink); }
.scale-note { margin-top: 24px; font-size: 14px; color: #7a7a7a; }

/* Schritte (dunkel) */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 44px; margin-top: 80px; }
.step { border-top: 1px solid var(--dark-line); padding-top: 32px; }
.step-n { font-size: 40px; font-weight: 700; line-height: 1; color: #3a3a3a; transition: color 240ms var(--ease); }
.step:hover .step-n, .step.is-active .step-n { color: var(--white); }
.step h3 { font-size: 22px; line-height: 1.25; margin: 28px 0 12px; }
.step p { font-size: 16px; color: var(--dark-text); }

/* Über mich */
.about { display: grid; grid-template-columns: 380px 1fr; gap: 96px; align-items: center; }
.portrait {
  aspect-ratio: 4 / 5; background: var(--light-2); border-radius: 4px;
  display: flex; align-items: center; justify-content: center; text-align: center;
  color: var(--light-text); font-size: 14px; padding: 24px; overflow: hidden;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.about .body { margin-top: 20px; color: var(--light-text); max-width: 36em; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 40px; border-top: 1px solid var(--light-line); }
.facts div { padding: 24px 20px 0 0; }
.facts div + div { padding-left: 20px; border-left: 1px solid var(--light-line); }
.facts b { display: block; font-size: 28px; line-height: 1.1; font-weight: 700; }
.facts span { display: block; margin-top: 6px; font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--light-text); }

/* FAQ (dunkel, zweispaltig) */
.faq-grid { display: grid; grid-template-columns: 1fr 1.65fr; gap: 88px; align-items: start; }
.faq-side .lead { font-size: 20px; }
.faq-side .rule { height: 1px; background: var(--dark-line); margin: 44px 0 40px; }
.faq-side .small { font-size: 15px; color: var(--dark-text); margin-bottom: 18px; }
.faq { border-top: 1px solid var(--dark-line); }
.faq details { border-bottom: 1px solid var(--dark-line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: grid; grid-template-columns: 36px 1fr 40px; align-items: center; gap: 0;
  padding: 26px 0;
  font-size: 20px; font-weight: 500; line-height: 1.35; color: var(--white);
}
.faq summary::-webkit-details-marker { display: none; }
.faq .n { font-size: 12px; font-weight: 700; letter-spacing: .12em; color: #8a8a8a; }
.faq details[open] .n { color: var(--white); }
.faq .pm {
  position: relative; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .55); justify-self: end;
}
.faq .pm::before, .faq .pm::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; background: var(--white);
  transform: translate(-50%, -50%); transition: transform 240ms var(--ease);
}
.faq .pm::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq details[open] .pm::after { transform: translate(-50%, -50%) rotate(0); }
.faq details p { padding: 0 64px 32px 42px; font-size: 16px; color: var(--dark-text); }

/* Abschluss-CTA (hell, zentriert) */
.cta { padding: 144px 0; }
.cta .h-xl { max-width: 11em; margin: 0 auto; }
.cta .lead { max-width: 30em; font-size: 20px; }

/* Footer */
.site-footer { background: var(--dark); color: var(--white); padding: 80px 0 48px; border-top: 1px solid var(--dark-line); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; padding-bottom: 56px; }
.foot-brand img { height: 40px; width: auto; }
.foot-brand p { margin-top: 24px; font-size: 15px; color: var(--dark-text); max-width: 30em; }
.foot-col { display: flex; flex-direction: column; gap: 14px; }
.foot-col .h { font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: #8a8a8a; margin-bottom: 8px; }
.foot-col a { font-size: 15px; color: #c4c4c4; transition: color 160ms var(--ease); }
.foot-col a:hover { color: var(--white); }
.copy { padding-top: 28px; border-top: 1px solid var(--dark-line); font-size: 13px; color: #7a7a7a; }

/* Mobiler Button unten */
.mobile-cta { display: none; }

/* Rechtstexte */
.legal { background: var(--light); padding: 96px 0 128px; }
.legal .container { max-width: calc(820px + 2 * var(--pad-x)); }
.legal h1 { font-size: clamp(36px, 4.4vw, 60px); line-height: 1.06; margin-bottom: 40px; }
.legal h2 { font-size: 22px; margin: 44px 0 12px; }
.legal h3 { font-size: 18px; margin: 28px 0 8px; }
.legal p, .legal li { color: var(--light-text); }
.legal p + p { margin-top: 12px; }
.placeholder { background: #fff3a8; color: var(--ink); padding: 0 4px; }

/* Einblenden beim Scrollen */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  :root { --section-y: 96px; }
  .site-header nav { display: none; }
  .site-header .pill { margin-left: auto; }
  .split, .faq-grid, .about { grid-template-columns: 1fr; gap: 56px; }
  .steps { grid-template-columns: 1fr 1fr; gap: 48px 32px; }
  .grid-lines i:nth-child(2), .grid-lines i:nth-child(4) { display: none; }
  .portrait { max-width: 320px; }
}
@media (max-width: 640px) {
  :root { --pad-x: 20px; --section-y: 80px; --header-h: 64px; }
  .site-header .logo img { height: 22px; }
  .site-header .pill { height: 40px; padding: 0 18px; font-size: 14px; }
  .site-header .pill .long { display: none; }
  .hero { padding-top: 72px; }
  .lead { font-size: 18px; margin-top: 24px; }
  .btn-row { gap: 20px 32px; margin-top: 36px; }
  .pill { height: 54px; padding: 0 28px; font-size: 16px; }
  .stats { margin-top: 56px; padding-bottom: 56px; gap: 12px; }
  .stat-v { font-size: 24px; }
  .stat-l { font-size: 10px; letter-spacing: .1em; }
  .steps { grid-template-columns: 1fr; margin-top: 56px; }
  .grid-lines { display: none; }
  .facts { grid-template-columns: 1fr; }
  .facts div, .facts div + div { padding: 20px 0; border-left: 0; border-bottom: 1px solid var(--light-line); }
  .faq summary { font-size: 17px; grid-template-columns: 32px 1fr 36px; padding: 22px 0; }
  .faq .pm { width: 36px; height: 36px; }
  .faq details p { padding: 0 0 26px 32px; }
  .cta { padding: 96px 0; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .scale-row { grid-template-columns: 84px 1fr; gap: 12px; }
  .bar { height: 48px; font-size: 18px; }
  .mobile-cta {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(17, 17, 17, .95); border-top: 1px solid var(--dark-line);
  }
  .mobile-cta .pill { width: 100%; }
  body.has-mobile-cta { padding-bottom: 80px; }
}

/* ---------- Ergänzungen: kompakte Fassung ---------- */
.stats.stats-2 { grid-template-columns: repeat(2, minmax(0, 280px)); gap: 0 48px; }
.steps.steps-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 980px) { .steps.steps-3 { grid-template-columns: 1fr; } }

/* Fallstudie */
.case-stats { border-top: 1px solid var(--light-line); }
.case-stat { padding: 36px 0; border-bottom: 1px solid var(--light-line); }
.case-v { font-size: clamp(64px, 8vw, 112px); font-weight: 700; line-height: 1; letter-spacing: -.02em; }
.case-l { margin-top: 14px; font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--light-text); }

/* Formular */
.lead-form {
  max-width: 720px; margin: 56px auto 0; text-align: left;
  background: var(--white); border-radius: 20px; padding: 40px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .06);
}
.f-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 20px; }
.f { display: flex; flex-direction: column; gap: 8px; }
.f-full { grid-column: 1 / -1; }
.f span { font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--light-text); }
.f input {
  height: 54px; padding: 0 18px;
  font-family: var(--font); font-size: 17px; font-weight: 500; color: var(--ink);
  background: var(--light); border: 1px solid transparent; border-radius: 12px;
  transition: border-color 160ms var(--ease), background-color 160ms var(--ease);
}
.f input:focus { outline: none; border-color: var(--ink); background: var(--white); }
.was-validated .f input:invalid { border-color: #c8102e; background: #fbecee; }
.consent { display: grid; grid-template-columns: 22px 1fr; gap: 12px; margin-top: 24px; font-size: 14px; line-height: 1.55; color: var(--light-text); cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink); }
.consent a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.was-validated .consent input:invalid + span { color: #c8102e; }
.f-actions { margin-top: 28px; }
.f-actions .pill { width: 100%; border: 0; cursor: pointer; }
.f-actions .pill:disabled { opacity: .6; cursor: wait; }
.f-msg { margin-top: 16px; font-size: 15px; min-height: 1em; }
.f-msg.is-error { color: #c8102e; }
.f-msg.is-ok { color: #157f3d; font-weight: 500; }
.lead-form.is-sent .f-grid, .lead-form.is-sent .consent, .lead-form.is-sent .f-actions { display: none; }
.lead-form.is-sent .f-msg { margin: 0; font-size: 18px; text-align: center; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.mail-alt { margin-top: 12px; font-size: 15px; color: var(--light-text); }
.mail-alt a { color: var(--ink); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 640px) {
  .stats.stats-2 { grid-template-columns: 1fr 1fr; gap: 0 16px; }
  .lead-form { padding: 24px 20px; border-radius: 16px; margin-top: 40px; }
  .f-grid { grid-template-columns: 1fr; }
}
.legal ul { padding-left: 20px; margin: 12px 0; }
.legal li + li { margin-top: 6px; }
.legal a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Mobil-Feinschliff ---------- */
h1, h2, h3 { overflow-wrap: break-word; text-wrap: balance; }
@media (max-width: 640px) {
  .h-hero { font-size: clamp(34px, 9.4vw, 44px); line-height: 1.06; }
  .h-sec { font-size: clamp(30px, 8.4vw, 40px); }
  .h-xl { font-size: clamp(36px, 10vw, 48px); }
  .legal h1 { font-size: 32px; }
  .legal { padding: 56px 0 80px; }
  .eyebrow { font-size: 11px; letter-spacing: .2em; margin-bottom: 24px; }
  .eyebrow::before { width: 28px; }
  .btn-row .pill { width: 100%; }
  .icon-list li { grid-template-columns: 40px 1fr; gap: 16px; padding: 22px 0; }
  .icon-dot { width: 40px; height: 40px; }
  .icon-list h3 { font-size: 18px; }
  .case-stat { padding: 28px 0; }
  .case-v { font-size: 64px; }
  .steps { gap: 36px; }
  .step { padding-top: 24px; }
  .step h3 { margin-top: 18px; font-size: 20px; }
  .faq-grid { gap: 40px; }
  .faq-side .rule { margin: 32px 0 28px; }
  .f input { font-size: 16px; } /* verhindert Auto-Zoom auf iPhone */
  .trust { font-size: 11px; letter-spacing: .1em; line-height: 1.8; }
  .site-footer { padding: 56px 0 40px; }
  .foot-brand img { height: 32px; }
}
@media (max-width: 380px) {
  .site-header .pill { padding: 0 14px; font-size: 13px; }
  .site-header .logo img { height: 20px; }
}
@media (max-width: 1210px) { .grid-lines i:nth-child(5) { display: none; } }

.mobile-cta { transition: transform 240ms var(--ease); }
.mobile-cta.is-hidden { transform: translateY(110%); }

/* ---------- Versteckte Brief-Unterseite: Video ---------- */
.video-hero { padding-bottom: 112px; }
.video-hero .lead { max-width: 36em; }
.video-frame {
  position: relative; margin-top: 56px;
  aspect-ratio: 16 / 9; max-width: 100%;
  background: #1a1a1a; border: 1px solid var(--dark-line); border-radius: 16px; overflow: hidden;
  box-shadow: 0 40px 80px rgba(0, 0, 0, .45);
}
.video-frame video { display: block; width: 100%; height: 100%; object-fit: cover; background: #000; }
.video-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  color: var(--dark-text); font-size: 15px; text-align: center; padding: 24px;
}
.video-placeholder[hidden] { display: none; }
.video-placeholder img { opacity: .5; }
@media (max-width: 640px) {
  .video-hero { padding-bottom: 72px; }
  .video-frame { margin-top: 36px; border-radius: 12px; }
}
.video-frame video[hidden] { display: none; }
