/* =========================================================
   AS-Prozesstechnik – Stylesheet v2
   ========================================================= */

@font-face {
  font-family: "Saira";
  src: url("../fonts/saira-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 800; font-style: normal; font-display: swap;
}

:root {
  --ink: #121417;
  --anthracite: #17191d;
  --graphite: #1e2126;
  --steel: #2c3036;
  --line-dark: rgba(255,255,255,.08);
  --line-light: #dcdfe3;
  --mid: #7d838a;
  --soft: #aeb4bb;
  --light: #e6e8eb;
  --paper: #f2f3f5;
  --white: #ffffff;
  --text: #272a2e;
  --text-muted: #5d636a;

  --orange: #565c63;
  --orange-hi: #ffffff;

  --font-display: "Saira", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  --font-body: "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "PingFang SC", "Microsoft YaHei", ui-monospace, "SF Mono", Menlo, monospace;

  --ease: cubic-bezier(.22,.61,.36,1);
  --container: 1280px;
  --gutter: clamp(16px, 4vw, 44px);
  --header-h: 76px;
  --notch: polygon(0 0, calc(100% - 13px) 0, 100% 13px, 100% 100%, 0 100%);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) - 1px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--text);
  font-family: var(--font-body); font-size: 16.5px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.svg-fill { fill: currentColor; stroke: none; }
h1,h2,h3,h4 { font-family: var(--font-display); margin: 0; }
p { margin: 0; }
fieldset { border: 0; padding: 0; margin: 0; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 300; background: var(--orange); color: #fff; padding: 8px 14px; }
.skip-link:focus { left: 12px; }

/* ---------- Typo helpers ---------- */
.tag {
  display: block; font-family: var(--font-mono); font-weight: 500; font-size: 12.5px;
  letter-spacing: .18em; text-transform: uppercase; color: var(--text-muted);
  margin-bottom: 20px;
}
.tag::before { content: "// "; color: var(--orange); letter-spacing: 0; }
.tag--light { color: var(--soft); }
.eyebrow { display: block; font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--soft); margin-bottom: 16px; }
.eyebrow::before { content: "// "; color: var(--orange); }

.h2 {
  font-size: clamp(30px, 4.4vw, 54px); line-height: 1.04; font-weight: 700;
  color: var(--anthracite); max-width: 20ch; text-transform: uppercase; letter-spacing: -.01em;
}
.dark .h2 { color: var(--white); }
.lead { font-size: clamp(16.5px, 1.35vw, 18.5px); color: var(--text-muted); margin-top: 22px; max-width: 58ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: 56px; padding: 0 30px; clip-path: var(--notch);
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
  letter-spacing: .07em; text-transform: uppercase;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn svg { width: 18px; height: 18px; stroke-width: 2; flex: none; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--primary { background: var(--anthracite); color: #fff; }
.hero .btn--primary { background: #fff; color: var(--ink); }
.hero .btn--primary:hover { background: #dfe2e5; }
.btn--primary:hover { background: var(--steel); transform: translateY(-2px); }
.btn--ghost { color: #fff; border: 1px solid rgba(255,255,255,.4); background: rgba(18,20,23,.25); backdrop-filter: blur(6px); }
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.1); }
.btn--full { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  transition: background .35s var(--ease), box-shadow .35s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(18,20,23,.9); backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px);
  box-shadow: 0 1px 0 var(--line-dark);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; min-width: 0; }
.brand-mark { height: 40px; width: auto; }
.brand-word { font-family: var(--font-display); font-weight: 700; font-size: 16px; letter-spacing: .1em; white-space: nowrap; }

.main-nav ul { list-style: none; display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; }
.main-nav a {
  position: relative; display: block; padding: 10px 14px; color: rgba(255,255,255,.78);
  font-family: var(--font-mono); font-weight: 500; font-size: 13px; letter-spacing: .1em; text-transform: uppercase;
  transition: color .2s;
}
.main-nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 5px; height: 1.5px; background: var(--orange);
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.main-nav a:hover, .main-nav a.active { color: #fff; }
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }
.main-nav .nav-cta { margin-left: 12px; background: #fff; color: var(--ink); padding: 11px 22px; clip-path: var(--notch); transition: background .25s; }
.main-nav .nav-cta:hover { background: #d9dcdf; color: var(--ink); }
.main-nav a.nav-cta, .main-nav a.nav-cta.active, .main-nav a.nav-cta:hover { color: var(--ink); }

.header-tools { display: flex; align-items: center; gap: 14px; }
.lang { display: flex; align-items: center; gap: 2px; font-family: var(--font-mono); font-size: 12.5px; color: rgba(255,255,255,.55); }
.lang i { font-style: normal; opacity: .4; }
.lang button { padding: 6px 7px; letter-spacing: .05em; color: rgba(255,255,255,.6); transition: color .2s; }
.lang button:hover { color: #fff; }
.lang button.active { color: var(--orange-hi); font-weight: 700; }

.nav-toggle { display: none; width: 44px; height: 44px; position: relative; }
.nav-toggle span { position: absolute; left: 10px; right: 10px; height: 2px; background: #fff; transition: transform .3s var(--ease), top .3s var(--ease); }
.nav-toggle span:first-child { top: 18px; }
.nav-toggle span:last-child { top: 26px; }
.nav-open .nav-toggle span:first-child { top: 22px; transform: rotate(45deg); }
.nav-open .nav-toggle span:last-child { top: 22px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; color: #fff; background: var(--ink); overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; transform: scale(1.05); animation: heroZoom 16s var(--ease) forwards; filter: grayscale(.3) contrast(1.08) brightness(.92); }
@keyframes heroZoom { to { transform: scale(1); } }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(14,16,18,.96) 0%, rgba(14,16,18,.82) 36%, rgba(14,16,18,.3) 78%, rgba(14,16,18,.5) 100%),
    linear-gradient(180deg, rgba(14,16,18,.55) 0%, transparent 28%, transparent 55%, rgba(14,16,18,.9) 100%);
}
.hero-grid {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .55;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(115deg, #000 0%, transparent 65%); -webkit-mask-image: linear-gradient(115deg, #000 0%, transparent 65%);
}

.hero-content { flex: 1; display: flex; flex-direction: column; justify-content: center; padding-top: calc(var(--header-h) + 50px); padding-bottom: 70px; }
.hero-title { display: flex; flex-direction: column; font-weight: 700; text-transform: uppercase; letter-spacing: -.02em; line-height: .96; font-size: clamp(46px, 8.6vw, 122px); }
.hero-title .line { display: block; }
.hero-title .line--outline { color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.75); margin-left: .6em; }
.hero-title .line--orange { color: #fff; margin-left: 1.2em; }
.hero-sub { margin-top: 30px; font-size: clamp(16.5px, 1.6vw, 20px); color: rgba(255,255,255,.75); max-width: 50ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 42px; }

.hero-bar { border-top: 1px solid rgba(255,255,255,.14); background: rgba(14,16,18,.42); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.hero-bar-inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.hero-bar-item {
  display: flex; align-items: center; gap: 14px; padding: 22px 0;
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.85);
  transition: color .2s;
}
.hero-bar-item:hover { color: var(--orange-hi); }
.hero-bar-item + .hero-bar-item { padding-left: 28px; border-left: 1px solid rgba(255,255,255,.14); }
.hero-bar-item .num { color: #9aa1a8; font-weight: 600; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; background: var(--ink); border-bottom: 1px solid var(--line-dark); padding: 26px 0; }
.marquee-track { display: flex; align-items: center; gap: 48px; width: max-content; animation: mq 32s linear infinite; }
.mq-word {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(38px, 5vw, 68px);
  text-transform: uppercase; letter-spacing: .01em; white-space: nowrap; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.28);
}
.mq-word--fill { color: #272b30; -webkit-text-stroke: 0; }
.mq-sep { color: rgba(255,255,255,.3); font-size: 30px; font-weight: 300; line-height: 1; }
@keyframes mq { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(84px, 11vw, 150px) 0; position: relative; overflow: hidden; }
.dark { background: var(--anthracite); color: var(--soft); }
.sec-no {
  position: absolute; top: clamp(24px, 4vw, 48px); right: var(--gutter);
  font-family: var(--font-display); font-weight: 700; font-size: clamp(60px, 9vw, 130px); line-height: 1;
  color: transparent; -webkit-text-stroke: 1px var(--line-light); pointer-events: none; user-select: none;
}
.dark .sec-no, .cfg .sec-no { -webkit-text-stroke-color: rgba(255,255,255,.1); }
.cfg .sec-no { -webkit-text-stroke-color: #dadde1; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: clamp(44px, 6vw, 76px); flex-wrap: wrap; }
.section-intro { max-width: 40ch; color: var(--text-muted); font-size: 16.5px; }
.dark .section-intro { color: var(--soft); }

/* ---------- About ---------- */
.about { background: var(--white); }
.about-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(48px, 7vw, 110px); align-items: center; }
.about-media { position: relative; }
.frame { margin: 0; overflow: hidden; aspect-ratio: 4 / 4.5; position: relative; clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.about-media::before { content: ""; position: absolute; top: -16px; left: -16px; width: 110px; height: 110px; border-top: 2px solid var(--anthracite); border-left: 2px solid var(--anthracite); }
.about-media::after {
  content: ""; position: absolute; right: -14px; bottom: 110px; width: 60px; height: 60px;
  border-right: 2px solid var(--line-light); border-bottom: 2px solid var(--line-light);
}
.about-badge {
  position: absolute; left: 20px; bottom: 20px; right: 20px; display: flex; align-items: center; gap: 14px;
  background: rgba(18,20,23,.88); backdrop-filter: blur(8px); color: #fff; padding: 14px 18px;
  border-left: 2px solid rgba(255,255,255,.45);
}
.about-badge img { width: 56px; height: auto; }
.about-badge strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: 16.5px; }
.about-badge span { font-size: 12.5px; font-family: var(--font-mono); letter-spacing: .06em; color: var(--soft); text-transform: uppercase; }

.focus-list { list-style: none; padding: 0; margin: 38px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 36px; }
.focus-list li { display: flex; gap: 16px; align-items: flex-start; padding: 18px 0; border-top: 1px solid var(--light); }
.focus-list li:last-child { grid-column: 1 / -1; }
.fx-no { flex: none; font-family: var(--font-mono); font-weight: 600; font-size: 18px; color: var(--orange); line-height: 1.3; }
.focus-list strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: 16.5px; color: var(--anthracite); line-height: 1.3; margin-bottom: 2px; }
.focus-list em { font-style: normal; font-size: 14px; color: var(--text-muted); line-height: 1.5; }

/* ---------- Services (Index-Zeilen) ---------- */
.services { background: radial-gradient(1100px 480px at 88% 0%, #22262c 0%, transparent 60%), var(--anthracite); }
.svc-index { border-top: 1px solid var(--line-dark); }
.svc-row {
  display: grid; grid-template-columns: 72px 1fr 220px 52px; gap: clamp(20px, 3vw, 44px); align-items: center;
  padding: 30px 0; border-bottom: 1px solid var(--line-dark); position: relative;
  transition: background .3s, padding-left .3s var(--ease);
}
.svc-row:hover { background: rgba(255,255,255,.025); padding-left: 14px; }
.svc-no { font-family: var(--font-mono); font-size: 14px; color: #9aa1a8; letter-spacing: .05em; }
.svc-main h3 { color: #fff; font-size: clamp(21px, 2.2vw, 28px); font-weight: 600; text-transform: uppercase; letter-spacing: .01em; margin-bottom: 6px; transition: color .2s; }
.svc-row:hover .svc-main h3 { color: var(--orange-hi); }
.svc-main p { font-size: 14.5px; line-height: 1.6; color: var(--soft); max-width: 64ch; }
.svc-thumb { display: block; aspect-ratio: 16 / 10; overflow: hidden; clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%); }
.svc-thumb img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.8) brightness(.85); transform: scale(1.02); transition: filter .5s, transform .8s var(--ease); }
.svc-row:hover .svc-thumb img { filter: grayscale(0) brightness(1); transform: scale(1.08); }
.svc-arrow { display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid var(--line-dark); border-radius: 50%; color: #fff; transition: background .3s, border-color .3s, transform .3s var(--ease); }
.svc-arrow svg { width: 20px; height: 20px; stroke-width: 1.8; }
.svc-row:hover .svc-arrow { background: #fff; border-color: #fff; color: var(--ink); transform: rotate(-45deg); }
.svc-row--more .svc-main h3 { text-transform: none; font-size: clamp(19px, 2vw, 24px); }
.svc-cta { font-family: var(--font-mono); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: #c6cbd0; white-space: nowrap; justify-self: end; }

/* ---------- Why ---------- */
.why { background: var(--paper); }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-left: 1px solid var(--line-light); }
.why-col { padding: 10px 28px 6px; border-right: 1px solid var(--line-light); position: relative; }
.why-col::before { content: ""; position: absolute; left: -1px; top: 0; width: 1px; height: 46px; background: var(--anthracite); }
.why-num {
  display: block; font-family: var(--font-display); font-size: clamp(44px, 4.6vw, 64px); line-height: 1; font-weight: 700;
  color: transparent; -webkit-text-stroke: 1.1px #c3c8cd; margin-bottom: 26px; transition: -webkit-text-stroke-color .3s;
}
.why-col:hover .why-num { -webkit-text-stroke-color: var(--anthracite); }
.why-col h3 { font-size: 18.5px; font-weight: 600; color: var(--anthracite); line-height: 1.3; margin-bottom: 10px; text-transform: uppercase; letter-spacing: .01em; }
.why-col p { font-size: 14.5px; color: var(--text-muted); line-height: 1.6; }

/* ---------- Gallery ---------- */
.gallery { background: var(--ink); }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 240px; gap: 10px; grid-auto-flow: dense; }
.g-item { position: relative; overflow: hidden; padding: 0; background: var(--graphite); }
.g-wide { grid-column: span 2; }
.g-tall { grid-row: span 2; }
.g-full { grid-column: 1 / -1; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease), filter .5s; filter: grayscale(.35) brightness(.88); }
.g-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(12,13,15,.88) 100%); }
.g-item:hover img { transform: scale(1.05); filter: grayscale(0) brightness(1); }
.g-cap {
  position: absolute; left: 18px; bottom: 15px; z-index: 1; display: flex; align-items: center; gap: 10px; color: #fff;
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase;
}
.g-cap::before { content: ""; width: 16px; height: 1.5px; background: #fff; transition: width .35s var(--ease); }
.g-item:hover .g-cap::before { width: 30px; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(10,11,13,.95); display: flex; align-items: center; justify-content: center; padding: 60px 72px; opacity: 0; transition: opacity .3s var(--ease); }
.lightbox.open { opacity: 1; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 1400px; width: 100%; }
.lightbox img { max-height: 80vh; width: auto; margin: 0 auto; }
.lightbox figcaption { text-align: center; color: var(--soft); margin-top: 16px; font-family: var(--font-mono); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.lb-close { position: absolute; top: 18px; right: 22px; font-size: 38px; line-height: 1; color: #fff; width: 48px; height: 48px; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border: 1px solid rgba(255,255,255,.25); color: #fff; font-size: 30px; line-height: 1; transition: background .25s, border-color .25s; }
.lb-nav:hover, .lb-close:hover { background: #fff; border-color: #fff; color: var(--ink); }
.lb-prev { left: 16px; } .lb-next { right: 16px; }

/* ---------- Konfigurator ---------- */
.cfg { background: var(--paper); }
.cfg-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(44px, 6vw, 90px); align-items: start; }

.cfg-step { padding: 26px 0; border-top: 1px solid var(--line-light); }
.cfg-step:first-child { border-top: 0; padding-top: 0; }
.step-title {
  display: flex; align-items: baseline; gap: 14px; margin: 0; padding: 0 0 18px;
  font-family: var(--font-display); font-weight: 600; font-size: 19px; color: var(--anthracite);
}
.step-no { font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--orange); letter-spacing: .05em; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 13.5px; letter-spacing: .03em;
  padding: 12px 18px; border: 1px solid #c6cad0; background: var(--white); color: var(--text);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
  transition: border-color .2s, background .2s, color .2s, transform .2s var(--ease);
}
.chip::before { content: "+"; color: var(--orange); font-weight: 600; transition: transform .25s var(--ease); }
.chip:hover { border-color: var(--anthracite); transform: translateY(-1px); }
.chip.sel { background: var(--anthracite); border-color: var(--anthracite); color: #fff; }
.chip.sel::before { content: "×"; transform: rotate(0); color: var(--orange-hi); }

.cfg-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.cfg-input {
  width: 100%; font: inherit; font-size: 16px; color: var(--anthracite);
  background: transparent; border: 0; border-bottom: 1.5px solid #c6cad0; padding: 14px 2px 10px;
  outline: none; transition: border-color .2s; border-radius: 0; appearance: none;
}
.cfg-input::placeholder { color: var(--mid); }
.cfg-input:focus { border-color: var(--anthracite); }
.cfg-input--area { grid-column: 1 / -1; resize: vertical; min-height: 70px; }
.cfg-input.invalid { border-color: #c4472f; }

.cfg-right { position: sticky; top: calc(var(--header-h) + 24px); display: flex; flex-direction: column; gap: 18px; }
.cfg-panel { background: var(--anthracite); clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%); }
.cfg-panel-head {
  display: flex; align-items: center; gap: 10px; padding: 14px 20px; border-bottom: 1px solid var(--line-dark);
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--soft);
}
.cfg-panel-head .dot { width: 8px; height: 8px; border-radius: 50%; background: #9aa1a8; animation: pulse 2.4s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.cfg-preview {
  margin: 0; padding: 22px 20px 26px; min-height: 240px;
  font-family: var(--font-mono); font-size: 13.5px; line-height: 1.75; color: #dfe3e7;
  white-space: pre-wrap; word-break: break-word;
}
.cfg-preview.is-empty { color: var(--mid); }
.cfg-preview::after { content: "▌"; color: #9aa1a8; animation: pulse 1.2s infinite; }

.cfg-err { font-size: 14px; color: #c4472f; font-weight: 500; }
.cfg-send { display: flex; flex-direction: column; gap: 10px; }
.cfg-hint { font-family: var(--font-mono); font-size: 11.5px; line-height: 1.6; color: var(--mid); margin-top: 4px; }
.cfg-direct { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; padding-top: 16px; border-top: 1px solid var(--line-light); font-size: 14.5px; }
.cfg-direct-label { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--mid); }
.cfg-direct a { font-weight: 500; color: var(--anthracite); border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.cfg-direct a:hover { color: var(--ink); border-color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--mid); padding: 76px 0 0; font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.3fr 1fr; gap: 40px; padding-bottom: 56px; }
.footer-brand img { width: 170px; height: auto; }
.footer-brand p { margin-top: 18px; font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--soft); }
.site-footer h4 { color: #fff; font-family: var(--font-mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; margin-bottom: 18px; }
.site-footer h4::before { content: "// "; color: var(--mid); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { transition: color .2s; word-break: break-word; }
.site-footer a:hover { color: var(--orange-hi); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 24px var(--gutter); border-top: 1px solid var(--line-dark); font-size: 13px; font-family: var(--font-mono); }
.to-top { display: inline-flex; align-items: center; gap: 8px; color: var(--soft); }
.to-top:hover { color: var(--orange-hi); }
.to-top svg { width: 15px; height: 15px; stroke-width: 2; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); border-left: 0; }
  .why-col { border-left: 1px solid var(--line-light); padding: 10px 24px 30px; margin-bottom: 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .svc-row { grid-template-columns: 56px 1fr 170px 52px; }
  .cfg-grid { grid-template-columns: 1fr; }
  .cfg-right { position: static; }
}
@media (max-width: 900px) {
  :root { --header-h: 66px; }
  .nav-toggle { display: block; z-index: 2; }
  .main-nav {
    position: fixed; inset: 0; background: rgba(16,18,20,.98); backdrop-filter: blur(10px);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s;
  }
  .nav-open .main-nav { opacity: 1; visibility: visible; }
  .main-nav ul { flex-direction: column; gap: 10px; }
  .main-nav a { font-size: 20px; padding: 12px 20px; }
  .main-nav a:not(.nav-cta)::after { display: none; }
  .main-nav .nav-cta { margin: 16px 0 0; padding: 14px 34px; }
  .nav-open { overflow: hidden; }

  .about-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 560px; }
  .hero-bar-inner { grid-template-columns: 1fr 1fr; }
  .hero-bar-item + .hero-bar-item { padding-left: 0; border-left: 0; }
  .svc-row { grid-template-columns: 48px 1fr 52px; }
  .svc-thumb { display: none; }
  .svc-cta { display: none; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
}
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .brand-word { display: none; }
  .brand-mark { height: 36px; }
  .hero-title .line--outline { margin-left: .3em; }
  .hero-title .line--orange { margin-left: .6em; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-bar-inner { grid-template-columns: 1fr; }
  .hero-bar-item { padding: 12px 0; }
  .hero-bar-item + .hero-bar-item { padding-left: 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.12); }
  .focus-list { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .why-col { padding: 10px 20px 26px; }
  .svc-row:hover { padding-left: 0; }
  .svc-main p { font-size: 13.5px; }
  .svc-arrow { width: 42px; height: 42px; }
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .g-wide, .g-full { grid-column: auto; } .g-tall { grid-row: auto; }
  .cfg-fields { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-media::before { top: -10px; left: -10px; width: 70px; height: 70px; }
  .lightbox { padding: 60px 12px; }
  .lb-nav { top: auto; bottom: 18px; transform: none; }
  .sec-no { font-size: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none !important; }
}

/* ---------- Legal pages ---------- */
.legal-hero { background: var(--anthracite); color: #fff; padding: calc(var(--header-h) + 70px) 0 60px; position: relative; overflow: hidden; }
.legal-hero h1 { font-size: clamp(34px, 5vw, 58px); font-weight: 700; text-transform: uppercase; }
.hero-lines { position: absolute; top: 0; right: 0; width: 46vw; height: 100%; pointer-events: none; overflow: hidden; }
.hero-lines i { position: absolute; top: -10%; width: 3px; height: 70%; background: rgba(255,255,255,.3); transform-origin: top; transform: rotate(-40deg); opacity: .85; }
.hero-lines i:first-child { right: 18%; }
.hero-lines i:last-child { right: 4%; opacity: .5; }
.legal-body { padding: 70px 0 110px; }
.legal-body .container { max-width: 860px; }
.legal-lead { font-size: 1.06em; color: var(--text) !important; padding-bottom: 8px; }
.legal-body ul { padding-left: 22px; margin: 0 0 14px; }
.legal-body li { margin-bottom: 4px; }
.legal-body strong { color: var(--anthracite); font-weight: 600; }
.legal-body h2 { font-size: 22px; color: var(--anthracite); margin: 44px 0 12px; font-weight: 600; }
.legal-body p, .legal-body li { color: var(--text-muted); margin-bottom: 10px; }
.legal-body a { color: var(--orange); }
.todo { background: #eef0f2; border: 1px dashed #9aa1a8; color: #4a5056; padding: 2px 8px; font-size: .92em; }
.legal-note { background: var(--white); border-left: 3px solid var(--anthracite); padding: 18px 22px; }

/* ---------- KI-Bild-Kennzeichnung ---------- */
.gal-note { margin-top: 18px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .06em; color: var(--mid); }
.g-item.is-ki::before {
  content: "KI"; position: absolute; top: 10px; right: 10px; z-index: 2;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em;
  padding: 3px 9px; background: rgba(18,20,23,.82); color: #fff; border: 1px solid rgba(255,255,255,.35);
}
html[lang="en"] .g-item.is-ki::before, html[lang="zh-CN"] .g-item.is-ki::before { content: "AI"; }

.nf-actions { margin-top: 28px; }
.legal-body .btn--primary { color: #fff; }
