/* 3D-Druck & kreative Fertigung – seitenspezifische Gestaltung (SP007D)
   Baut auf site.css (freigegebenes B2-Design) auf. Eigene Effekte dieser Seite:
   Linienmodell, das beim Scrollen Schicht für Schicht zu einem Objekt wächst (SVG, kein 3D-Framework),
   Dekorativ/Praktisch-Wechsel mit Aufbau, Skizze wird Modell, Gravur-Laser, Lineal als Prüfstrecke.
   Alle Objekte sind selbst erstellte Illustrationen, keine Kundenarbeiten. */

.fd-note { margin-top: 12px; font-size: .8125rem; color: var(--muted); max-width: 62ch; }
.fd-note-ink { margin-top: 12px; font-size: .8125rem; color: var(--muted-ink); max-width: 60ch; }
.note-ink { margin-top: 28px; font-size: .8125rem; color: var(--muted-ink); max-width: 70ch; }
.fd-chip { position: absolute; top: 0; right: 0; z-index: 3; padding: 5px 14px; border-radius: 99px; background: rgba(15, 17, 22, .88); color: var(--paper); border: 1.5px dashed var(--orange); font-weight: 700; font-size: .8125rem; line-height: 1.3; }
.fd-glow { position: absolute; inset: -6% 0; z-index: -1; pointer-events: none; background: radial-gradient(46% 44% at 50% 46%, rgba(255, 106, 31, .15), rgba(255, 106, 31, 0) 72%), radial-gradient(64% 62% at 50% 50%, #262B36, rgba(38, 43, 54, 0) 74%); }
.fd-svg, .bd-svg { display: block; width: 100%; height: auto; overflow: visible; }

/* ---------- 1 Einstieg ---------- */
.fd-hero .mega { font-size: clamp(2.2rem, 7.4vw, 8.2rem); }
.fd-hero .ln1 { overflow: visible; }
.fd-stage { grid-column: 7 / -1; grid-row: 2 / span 4; z-index: 1; position: relative; isolation: isolate; align-self: start; margin-top: clamp(60px, 9vw, 130px); max-width: 600px; justify-self: end; width: 100%; }

/* ---------- 2 Das Objekt entsteht ---------- */
.bd { --bg: var(--ink); padding-block: calc(var(--cut) + clamp(24px, 4vw, 56px)) calc(var(--cut) + 12px); }
.bd-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-areas: "copy copy copy copy copy stage stage stage stage stage stage stage"; column-gap: clamp(16px, 2.2vw, 32px); align-items: center; }
.bd-copy { grid-area: copy; display: grid; gap: 22px; align-content: center; }
.bd-stage { grid-area: stage; position: relative; isolation: isolate; }
.bd-h { font-weight: 800; font-stretch: 75%; font-size: clamp(2.2rem, 3.6vw, 3.8rem); line-height: .95; letter-spacing: -.02em; text-wrap: balance; }
.bd-h i { font-style: normal; color: var(--orange); }
.bd-caps { display: grid; }
.bc { display: grid; gap: 12px; align-content: start; }
.bc + .bc { margin-top: 18px; }
.bc-no { width: max-content; padding: 4px 14px; border-radius: 99px; background: var(--orange); color: var(--ink); font-weight: 700; font-size: .875rem; }
.bc strong { font-weight: 800; font-stretch: 75%; font-size: clamp(1.9rem, 3.2vw, 3.1rem); line-height: 1; letter-spacing: -.02em; text-wrap: balance; max-width: 16ch; }
.bc-sub { color: var(--muted); max-width: 40ch; }
.bd-count { display: flex; align-items: baseline; gap: 10px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.bd-count b { min-width: 2ch; color: var(--orange); font-weight: 800; font-stretch: 75%; font-size: 2.4rem; line-height: 1; }
.bd-count em { font-style: normal; }
.bd-count[hidden], .bd-steps[hidden] { display: none; }
.bd-steps { display: flex; gap: 10px; }
.bd-steps button { width: 46px; height: 46px; border-radius: 50%; border: 2px solid #4B505C; background: transparent; color: var(--paper); font: 700 1rem/1 var(--f); cursor: pointer; transition: background-color .25s, border-color .25s, color .25s; }
.bd-steps button:hover { border-color: var(--paper); }
.bd-steps button.is-on { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.bd-svg { max-height: calc(100vh - var(--hdr) - 36px); aspect-ratio: 1; margin-inline: auto; }
.js-motion .bc { grid-area: 1 / 1; opacity: 0; transform: translateY(18px); transition: opacity .45s, transform .55s cubic-bezier(.2, .8, .2, 1); pointer-events: none; }
.js-motion .bc.is-on { opacity: 1; transform: none; pointer-events: auto; }
.js-motion .bc + .bc { margin-top: 0; }
@media (min-width: 1000px) {
  .js-motion .bd-track { height: 440vh; }
  .js-motion .bd-pin { position: sticky; top: var(--hdr); height: calc(100vh - var(--hdr)); display: grid; align-items: center; }
  .js-motion .bd-caps { min-height: 15rem; }
}
@media (max-width: 999px) {
  .js-motion .bd-track { height: 380vh; }
  /* SP019B (F-12): unten 88 px frei halten, damit die feste Schnellkontakt-Leiste die Schritt-Knoepfe nicht verdeckt */
  .js-motion .bd-pin { position: sticky; top: var(--hdr); height: calc(100vh - var(--hdr)); box-sizing: border-box; padding-bottom: 88px; display: grid; align-items: center; }
  .js-motion .bd-caps { min-height: 9rem; }
}

/* ---------- 3 Dekorativ und praktisch (hell) ---------- */
.mix { --bg: var(--paper); color: var(--ink); padding-block: calc(var(--cut) + clamp(72px, 9vw, 130px)) calc(var(--cut) + clamp(56px, 7vw, 100px)); }
.mix :focus-visible, .laser :focus-visible { outline-color: var(--ink); }
.mix-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2.2vw, 32px); row-gap: 20px; align-items: end; margin-bottom: clamp(32px, 5vw, 68px); }
.mix-head .mega-s { grid-column: 1 / span 7; }
.mix-head p { grid-column: 9 / span 4; color: var(--muted-ink); max-width: 46ch; }
.mix-body { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2.2vw, 32px); align-items: end; }
.mix-ctrl { grid-column: 1 / span 4; display: grid; gap: 18px; align-self: center; }
.mix-tabs { display: flex; gap: 10px; flex-wrap: wrap; }
.mx { padding: 14px 26px; border: 2px solid var(--ink); border-radius: 99px; background: transparent; color: var(--ink); font-family: var(--f); font-weight: 800; font-stretch: 75%; font-size: clamp(1.4rem, 2vw, 1.8rem); line-height: 1; cursor: pointer; transition: background-color .25s, color .25s; }
.mx:hover { background: rgba(23, 26, 33, .08); }
.mx.is-on { background: var(--ink); color: var(--paper); }
.mix-text { min-height: 6.2em; font-size: clamp(1.05rem, 1.3vw, 1.2rem); max-width: 38ch; }
.mix-stage { grid-column: 5 / span 8; display: flex; align-items: flex-end; justify-content: space-between; gap: clamp(8px, 2vw, 28px); }
.mo { margin: 0; text-align: center; }
.mo svg { display: block; width: 100%; height: auto; overflow: visible; }
.mo figcaption { margin-top: -4px; font-weight: 700; color: var(--muted-ink); }
.mo1 { width: 33%; }
.mo2 { width: 30%; }
.mo3 { width: 33%; }
.mo2 { margin-bottom: 6%; }

/* ---------- 4 Individuelle Kundenideen (dunkel) ---------- */
.idea { --bg: var(--night); padding-block: calc(var(--cut) + clamp(72px, 9vw, 130px)) calc(var(--cut) + clamp(56px, 7vw, 100px)); }
.idea-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-areas: "head head head head head head . stage stage stage stage stage" "paths paths paths paths paths paths . stage stage stage stage stage" "limit limit limit limit limit limit . stage stage stage stage stage"; column-gap: clamp(16px, 2.2vw, 32px); row-gap: 28px; align-items: start; }
.id-head { grid-area: head; display: grid; gap: 20px; }
.id-lead { color: #D4D6DC; font-size: clamp(1.1rem, 1.5vw, 1.3rem); max-width: 40ch; }
.id-paths { grid-area: paths; border-top: 3px solid var(--paper); }
.id-paths li { display: grid; gap: 4px; padding: clamp(14px, 1.8vw, 22px) 0; border-bottom: 1px solid #3A404C; }
.id-paths b { font-weight: 800; font-stretch: 75%; font-size: clamp(1.9rem, 3.2vw, 3rem); line-height: 1; letter-spacing: -.02em; }
.id-paths span { color: var(--muted); max-width: 44ch; }
.id-limit { grid-area: limit; max-width: 50ch; color: #D4D6DC; padding-top: 6px; }
.id-stage { grid-area: stage; grid-row: 1 / span 3; position: relative; isolation: isolate; align-self: center; }
.id-stage svg { display: block; width: 100%; height: auto; overflow: visible; }
.js .sk-p { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .sk-solid { opacity: 0; }
.js .in .sk-p { animation: skdraw 1.5s cubic-bezier(.4, 0, .2, 1) forwards; }
.js .in .sk-p:nth-child(2) { animation-delay: .35s; }
.js .in .sk-p:nth-child(3) { animation-delay: .6s; }
.js .in .sk-p:nth-child(4) { animation-delay: .75s; }
.js .in .sk-solid { animation: skfill .9s 1.9s ease forwards; }
.js .in .sk-draft { animation: skfade .7s 2.1s ease forwards; }
@keyframes skdraw { to { stroke-dashoffset: 0; } }
@keyframes skfill { to { opacity: 1; } }
@keyframes skfade { to { opacity: .22; } }
html:not(.js) .sk-draft { opacity: .3; }

/* ---------- 5 Lasergravur (sandfarben, klein) ---------- */
.laser { --bg: var(--sand); color: var(--ink); padding-block: calc(var(--cut) + clamp(56px, 7vw, 100px)) calc(var(--cut) + clamp(40px, 5vw, 72px)); }
.laser-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2.2vw, 32px); row-gap: 28px; align-items: center; }
.ls-copy { grid-column: 1 / span 6; display: grid; gap: 16px; justify-items: start; }
.ls-copy p:not(.ls-kicker) { color: var(--muted-ink); max-width: 46ch; }
.ls-kicker { padding: 4px 14px; border-radius: 99px; border: 1.5px solid var(--ink); font-weight: 700; font-size: .875rem; }
.ls-h { font-weight: 800; font-stretch: 75%; font-size: clamp(2.4rem, 4.6vw, 4.4rem); line-height: .95; letter-spacing: -.02em; text-wrap: balance; }
.ls-replay { min-height: 46px; padding: 0 20px; border: 2px solid var(--ink); border-radius: 6px; background: transparent; color: var(--ink); font: 700 .9375rem/1 var(--f); cursor: pointer; transition: background-color .2s, color .2s; }
.ls-replay:hover { background: var(--ink); color: var(--paper); }
.ls-replay[hidden] { display: none; }
.ls-stage { grid-column: 8 / span 5; --lp: 1; }
.ls-stage svg { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 24px 22px rgba(23, 26, 33, .35)); }
.ls-art { clip-path: inset(0 calc((1 - var(--lp)) * 100%) 0 0); }
.ls-text { fill: #E9E4DA; font-family: var(--f); font-weight: 800; font-stretch: 75%; font-size: 96px; letter-spacing: 7px; }

/* ---------- 6 Individuelle Prüfung (dunkel) ---------- */
.chk { --bg: var(--ink); padding-block: calc(var(--cut) + clamp(72px, 9vw, 130px)) calc(var(--cut) + clamp(56px, 7vw, 100px)); }
.chk .mega-s i { font-style: normal; color: var(--orange); }
.chk-lead { margin-top: 22px; color: #D4D6DC; font-size: clamp(1.1rem, 1.5vw, 1.3rem); max-width: 48ch; }
.ruler { position: relative; margin-top: clamp(44px, 6vw, 88px); }
.ruler-bar { height: 30px; border-top: 3px solid var(--paper); background: linear-gradient(90deg, var(--paper) 2px, transparent 2px) 0 0 / 60px 30px repeat-x, linear-gradient(90deg, rgba(245, 240, 231, .5) 1px, transparent 1px) 0 0 / 12px 14px repeat-x; transition: clip-path 1.6s cubic-bezier(.4, 0, .2, 1); }
.js .ruler-bar { clip-path: inset(0 100% 0 0); }
.js .ruler.in .ruler-bar { clip-path: inset(0); }
.ruler-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: clamp(16px, 2.2vw, 32px); margin-top: -30px; }
.rl { position: relative; padding-top: 58px; }
.rl-mark { position: absolute; left: 0; top: 0; width: 3px; height: 46px; background: var(--orange); }
.rl-mark::after { content: ""; position: absolute; left: -5px; bottom: -4px; width: 13px; height: 13px; border-radius: 50%; background: var(--orange); }
.rl h3 { font-weight: 800; font-stretch: 75%; font-size: clamp(1.8rem, 2.8vw, 2.6rem); line-height: 1; letter-spacing: -.02em; margin-bottom: 10px; }
.rl p { color: var(--muted); font-size: 1rem; max-width: 30ch; }
.js .rl { opacity: 0; transform: translateY(18px); }
.js .ruler.in .rl { animation: rlin .8s cubic-bezier(.2, .8, .2, 1) forwards; }
.js .ruler.in .rl:nth-child(1) { animation-delay: .3s; }
.js .ruler.in .rl:nth-child(2) { animation-delay: .7s; }
.js .ruler.in .rl:nth-child(3) { animation-delay: 1.1s; }
.js .ruler.in .rl:nth-child(4) { animation-delay: 1.5s; }
@keyframes rlin { to { opacity: 1; transform: none; } }

/* ---------- 7 Ablauf im Kontaktbereich (SP016B), ersetzt die Formularattrappe ---------- */
.contact-flow { grid-column: 7 / span 6; display: grid; gap: 20px; align-self: center; color: var(--ink); }
.cf-title { font-weight: 800; font-stretch: 75%; font-size: clamp(1.7rem, 2.8vw, 2.5rem); line-height: 1; }
.cf-steps { display: grid; gap: 14px; max-width: 46ch; list-style: none; padding: 0; margin: 0; }
.cf-steps li { display: grid; grid-template-columns: 38px 1fr; gap: 14px; align-items: center; font-weight: 600; font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.4; }
.cf-steps b { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: var(--orange); font-weight: 800; }

/* ---------- Tablet und Smartphone ---------- */
@media (max-width: 999px) {
  .fd-hero .mega { font-size: clamp(2.3rem, 12.4vw, 6.5rem); }
  .fd-hero .ln1 > span { text-wrap: balance; }
  .hero-inner > .fd-stage { grid-column: 1; grid-row: auto; margin-top: 8px; width: min(100%, 440px); justify-self: center; }

  .bd-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "stage" "copy"; row-gap: 14px; }
  .bd-svg { max-height: calc(100vh - var(--hdr) - 378px); max-width: 100%; }
  .bd-h { display: none; }
  .bd-copy { gap: 12px; }
  .bc strong { font-size: clamp(1.5rem, 6.2vw, 2rem); max-width: none; }
  .bc-sub { font-size: .9375rem; }
  .bd-count b { font-size: 1.8rem; }

  .mix-head { grid-template-columns: minmax(0, 1fr); }
  .mix-head .mega-s, .mix-head p { grid-column: 1; }
  .mix-body { grid-template-columns: minmax(0, 1fr); row-gap: 28px; }
  .mix-ctrl, .mix-stage { grid-column: 1; }
  .mix-text { min-height: 0; }

  .idea-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "stage" "paths" "limit"; }
  .id-stage { grid-row: auto; max-width: 440px; justify-self: center; width: 100%; }

  .laser-grid { grid-template-columns: minmax(0, 1fr); }
  .ls-copy, .ls-stage { grid-column: 1; }
  .ls-stage { max-width: 420px; }

  .ruler-list { grid-template-columns: minmax(0, 1fr); row-gap: 8px; }
  .rl { padding: 8px 0 22px 30px; }
  .rl-mark { top: 0; bottom: 0; height: auto; }
  .rl-mark::after { top: 14px; bottom: auto; }
  .ruler-list { margin-top: 0; }
  .ruler-bar { height: 22px; margin-bottom: 14px; }
  .contact-flow { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  .js .sk-p { stroke-dashoffset: 0; }
  .js .sk-solid { opacity: 1; }
  .js .sk-draft { opacity: .22; }
  .js .ruler-bar { clip-path: none; }
  .js .rl { opacity: 1; transform: none; }
}
