/* ==========================================================================
   MONARI Constructions – Stylesheet
   Keine externen Ressourcen, System-Schriften (DSGVO-freundlich).
   ========================================================================== */

:root {
  /* Marke – Name wird in assets/js/main.js (BRAND) gepflegt */
  --brand-name: "MONARI Constructions";

  /* Farben */
  --c-bg-dark: #101316;
  --c-bg-dark-2: #171b20;
  --c-bg-dark-3: #1f252b;
  --c-line-dark: #2c333b;
  --c-text-on-dark: #eef1f4;
  --c-muted-on-dark: #a9b3bd;

  --c-bg-light: #f4f3f0;
  --c-surface: #ffffff;
  --c-line-light: #e1ded8;
  --c-text: #171a1d;
  --c-muted: #555c63;

  --c-accent: #ff7a2f;          /* Orange – auf Dunkel */
  --c-accent-strong: #a8400a;   /* dunkleres Orange für Text auf Hell (Kontrast AA, auch auf .section-tint) */
  --c-accent-contrast: #16110d; /* Text auf Orange-Buttons */

  /* Typografie */
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  /* Layout */
  --container: 1200px;
  --radius: 14px;
  --radius-sm: 8px;
  --header-h: 72px;
  --shadow: 0 1px 2px rgba(16, 19, 22, .06), 0 8px 24px rgba(16, 19, 22, .06);
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--c-text);
  background: var(--c-bg-light);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .6em; letter-spacing: -.015em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4.1rem); font-weight: 800; letter-spacing: -.03em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--c-accent-strong); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--c-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2rem);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 1000;
  background: var(--c-accent); color: var(--c-accent-contrast);
  padding: .6rem 1rem; border-radius: var(--radius-sm); font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* Platzhalter-Markierung */
mark.ph, .ph {
  background: rgba(255, 196, 0, .28);
  color: inherit;
  padding: 0 .3em;
  border-radius: 4px;
  border: 1px dashed rgba(200, 140, 0, .8);
  font-family: var(--font-mono);
  font-size: .92em;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--c-accent-strong);
  margin-bottom: .9rem;
}
.section-dark .eyebrow, .hero .eyebrow { color: var(--c-accent); }

.accent { color: var(--c-accent); }
.nowrap { white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  white-space: nowrap; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px;
  padding: .75rem 1.5rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font: inherit; font-weight: 700; font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-primary { background: var(--c-accent); color: var(--c-accent-contrast); }
.btn-primary:hover { background: #ff9152; }
.btn-ghost { border-color: rgba(238, 241, 244, .35); color: var(--c-text-on-dark); }
.btn-ghost:hover { border-color: var(--c-text-on-dark); background: rgba(255,255,255,.06); }
.btn-sm { min-height: 40px; padding: .45rem 1.1rem; font-size: .95rem; }

/* ---------- Header / Navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(16, 19, 22, .88);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.07);
  color: var(--c-text-on-dark);
}
.header-inner {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.logo {
  display: inline-flex; align-items: center; gap: .65rem;
  color: var(--c-text-on-dark); text-decoration: none;
}
.logo-mark { width: 34px; height: 34px; color: var(--c-accent); flex: none; }
.logo-text {
  font-weight: 800; letter-spacing: .06em; text-transform: uppercase; font-size: 1rem;
  white-space: nowrap;
}

.site-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; gap: .35rem;
}
.site-nav a:not(.btn) {
  display: block;
  white-space: nowrap;
  padding: .5rem .8rem;
  color: var(--c-muted-on-dark);
  text-decoration: none;
  font-weight: 550; font-size: .97rem;
  border-radius: var(--radius-sm);
  transition: color .2s, background-color .2s;
}
.site-nav a:not(.btn):hover { color: var(--c-text-on-dark); background: rgba(255,255,255,.06); }
.site-nav a[aria-current="page"] { color: var(--c-text-on-dark); box-shadow: inset 0 -2px 0 var(--c-accent); border-radius: 0; }
@media (max-width: 900px) {
  .site-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--c-accent); padding-left: .9rem !important; }
}
.site-nav li:last-child { margin-left: .5rem; }

.nav-toggle {
  display: none;
  width: 48px; height: 48px;
  background: transparent; border: 1px solid rgba(255,255,255,.18); border-radius: 10px;
  color: var(--c-text-on-dark); cursor: pointer;
  position: relative;
}
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  position: absolute; left: 50%; width: 22px; height: 2px;
  background: currentColor; border-radius: 2px;
  transform: translateX(-50%);
  transition: transform .25s, opacity .2s, top .25s;
}
.nav-toggle-bar { top: 50%; margin-top: -1px; }
.nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; left: 0; transform: none; }
.nav-toggle-bar::before { top: -7px; }
.nav-toggle-bar::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { top: 0; transform: rotate(45deg); background: var(--c-text-on-dark); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { top: 0; transform: rotate(-45deg); background: var(--c-text-on-dark); }

@media (max-width: 900px) {
  .nav-toggle { display: inline-block; }
  .js .site-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--c-bg-dark);
    border-bottom: 1px solid var(--c-line-dark);
    box-shadow: 0 20px 40px rgba(0,0,0,.35);
    display: none;
  }
  .js .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: .75rem clamp(1.1rem, 4vw, 2rem) 1.25rem; }
  .site-nav a:not(.btn) { padding: .9rem .25rem; border-bottom: 1px solid var(--c-line-dark); border-radius: 0; font-size: 1.05rem; }
  .site-nav li:last-child { margin: 1rem 0 0; }
  .site-nav .btn { width: 100%; min-height: 48px; }
  /* Ohne JS: Navigation einfach umbrechen */
  html:not(.js) .site-header { height: auto; }
  html:not(.js) .nav-toggle { display: none; }
  html:not(.js) .header-inner { flex-wrap: wrap; padding-block: .75rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--c-text-on-dark);
  background:
    radial-gradient(ellipse 60% 55% at 78% 45%, rgba(255, 122, 47, .16), transparent 70%),
    radial-gradient(ellipse 50% 60% at 0% 100%, rgba(80, 120, 160, .12), transparent 70%),
    var(--c-bg-dark);
  margin-top: calc(var(--header-h) * -1);
  padding-top: var(--header-h);
}
.hero::before {
  /* technisches Raster */
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 60% 40%, #000 30%, transparent 85%);
  mask-image: radial-gradient(ellipse 90% 80% at 60% 40%, #000 30%, transparent 85%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
  padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(3.5rem, 7vw, 5.5rem);
  min-height: min(820px, calc(100vh - var(--header-h)));
}
.hero h1 { margin-bottom: .45em; }
.hero h1 .accent { display: inline-block; }
.lead {
  font-size: clamp(1.08rem, 1.5vw, 1.25rem);
  color: var(--c-muted-on-dark);
  max-width: 38rem;
  margin-bottom: 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-bottom: 2.75rem; }

.hero-facts {
  list-style: none; margin: 0; padding: 1.4rem 0 0;
  border-top: 1px solid var(--c-line-dark);
  display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 1rem 2.4rem;
}
.hero-facts li { display: flex; flex-direction: column; }
.hero-facts strong { font-size: 1.3rem; font-weight: 750; color: var(--c-text-on-dark); letter-spacing: -.01em; white-space: nowrap; }
.hero-facts span { font-size: .85rem; color: var(--c-muted-on-dark); font-family: var(--font-mono); letter-spacing: .04em; }

.hero-visual { position: relative; }
.hero-visual-caption {
  margin: .5rem 0 0; text-align: center;
  font-family: var(--font-mono); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--c-muted-on-dark);
}

/* Würfel-SVG */
.cube { width: 100%; height: auto; overflow: visible; }
.cube .cube-edge { fill: none; stroke: #d7dde3; stroke-width: 1.6; stroke-linejoin: round; }
.cube .cube-hidden path { fill: none; stroke: #6b7580; stroke-width: 1.2; stroke-dasharray: 5 6; }
.cube .cube-floor { fill: rgba(255,255,255,.035); stroke: none; }
.cube .cube-grid { fill: none; stroke: rgba(255,255,255,.08); stroke-width: 1; }
.cube .cube-dot { fill: var(--c-accent); }
.cube .part-body { fill: url(#bodyGrad); stroke: var(--c-accent); stroke-width: 1.5; }
.cube .part-layers { fill: none; stroke: rgba(255, 150, 90, .55); stroke-width: 1; }
.cube .part-top { fill: rgba(255, 122, 47, .22); stroke: var(--c-accent); stroke-width: 1.5; }
.cube .nozzle path { fill: #cfd6dd; stroke: none; }
.cube .nozzle .gantry { fill: none; stroke: #8a95a0; stroke-width: 6; stroke-linecap: round; }
.cube .nozzle .gantry-link { fill: none; stroke: #8a95a0; stroke-width: 3; }
.cube .nozzle-glow { fill: var(--c-accent); opacity: .85; filter: drop-shadow(0 0 8px rgba(255,122,47,.9)); }
.cube .dim path { fill: none; stroke: var(--c-accent); stroke-width: 1.2; }
.cube .dim text { fill: var(--c-muted-on-dark); font-family: var(--font-mono); font-size: 13px; letter-spacing: .05em; }

@media (prefers-reduced-motion: no-preference) {
  .cube .nozzle-glow { animation: pulse 2.4s ease-in-out infinite; }
  @keyframes pulse { 50% { opacity: .35; } }
}

/* ---------- USP-Band ---------- */
.usp-band {
  background: var(--c-bg-dark-2);
  color: var(--c-text-on-dark);
  border-top: 1px solid var(--c-line-dark);
  border-bottom: 1px solid var(--c-line-dark);
}
.usp-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.usp { padding: 2rem 2rem 1.6rem; border-left: 1px solid var(--c-line-dark); }
.usp:first-child { border-left: 0; padding-left: 0; }
.usp .usp-title { font-size: 1.1rem; font-weight: 750; line-height: 1.15; letter-spacing: -.015em; color: var(--c-text-on-dark); margin: 0 0 .4rem; display: flex; align-items: center; gap: .6rem; }
.usp-title::before { content: ""; width: 10px; height: 10px; background: var(--c-accent); border-radius: 2px; flex: none; }
.usp p { color: var(--c-muted-on-dark); font-size: .98rem; margin: 0; }

/* ---------- Sektionen ---------- */
.section { padding-block: clamp(4rem, 9vw, 7rem); }
.section-light { background: var(--c-bg-light); color: var(--c-text); }
.section-dark { background: var(--c-bg-dark); color: var(--c-text-on-dark); }
.section-dark a { color: var(--c-accent); }

.section-head { max-width: 46rem; margin-bottom: clamp(2.25rem, 5vw, 3.5rem); }
.section-intro { font-size: 1.12rem; color: var(--c-muted); margin: 0; }
.section-dark .section-intro { color: var(--c-muted-on-dark); }

/* ---------- Karten ---------- */
.cards { display: grid; gap: 1.25rem; }
.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card {
  background: var(--c-surface);
  border: 1px solid var(--c-line-light);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-3px); border-color: #d4cfc6; box-shadow: 0 2px 4px rgba(16,19,22,.06), 0 16px 32px rgba(16,19,22,.09); }
.card p { color: var(--c-muted); margin: 0; }
.card-icon {
  width: 46px; height: 46px; margin-bottom: 1.1rem;
  padding: 9px;
  background: #fff1e8; border-radius: 12px;
  fill: none; stroke: var(--c-accent-strong); stroke-width: 2.6; stroke-linejoin: round; stroke-linecap: round;
}
.card-cta {
  background: var(--c-bg-dark);
  border-color: var(--c-bg-dark);
  color: var(--c-text-on-dark);
  display: flex; flex-direction: column; align-items: flex-start;
}
.card-cta p { color: var(--c-muted-on-dark); margin-bottom: 1.4rem; }
.card-cta .btn { margin-top: auto; }

.audience {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem;
}
.audience-title { flex: 1 1 100%; margin: 0; font-size: 1rem; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--c-muted); font-weight: 600; }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.tags li {
  padding: .4rem .9rem;
  border: 1px solid var(--c-line-light);
  background: var(--c-surface);
  border-radius: 999px;
  font-size: .93rem; font-weight: 550;
}

/* ---------- Maschine & Materialien ---------- */
.machine-grid {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.5fr);
  gap: 1.25rem;
  align-items: stretch;
}
.spec-panel, .material {
  background: var(--c-bg-dark-2);
  border: 1px solid var(--c-line-dark);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.spec-panel {
  background:
    linear-gradient(180deg, rgba(255,122,47,.09), transparent 40%),
    var(--c-bg-dark-2);
}
.spec-panel h3 { margin-bottom: 1.1rem; }
.specs { margin: 0; }
.specs div {
  display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem;
  padding: .8rem 0;
  border-top: 1px solid var(--c-line-dark);
}
.specs dt { color: var(--c-muted-on-dark); font-family: var(--font-mono); font-size: .85rem; letter-spacing: .04em; padding-top: .15rem; }
.specs dd { margin: 0; font-weight: 650; }

.materials { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.material p { color: var(--c-muted-on-dark); }
.material-head { display: flex; flex-direction: column; align-items: flex-start; gap: .75rem; margin-bottom: .8rem; }
.material-head h3 { margin: 0; }
.material-badge {
  font-family: var(--font-mono); font-weight: 700; font-size: .8rem; letter-spacing: .1em;
  padding: .3rem .7rem; border-radius: 6px;
  background: var(--c-accent); color: var(--c-accent-contrast);
}
.material-badge-alt { background: #e9edf1; color: #14181c; }
.checklist { list-style: none; margin: 0 0 1.2rem; padding: 0; }
.checklist li { position: relative; padding: .3rem 0 .3rem 1.7rem; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .78em;
  width: 11px; height: 6px;
  border-left: 2px solid var(--c-accent); border-bottom: 2px solid var(--c-accent);
  transform: rotate(-45deg);
}
.material-use { font-size: .95rem; margin: 0; padding-top: 1rem; border-top: 1px solid var(--c-line-dark); }
.material-use strong { color: var(--c-text-on-dark); }
.note { margin: 1.5rem 0 0; color: var(--c-muted-on-dark); font-size: .95rem; }

/* ---------- Referenzen ---------- */
.ref-card {
  background: var(--c-surface);
  border: 1px solid var(--c-line-light);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.img-placeholder {
  aspect-ratio: 4 / 3;
  display: grid; place-items: center;
  background:
    repeating-linear-gradient(135deg, rgba(0,0,0,.035) 0 12px, transparent 12px 24px),
    #d9dcdf;
  color: #4a5159;
  border-bottom: 1px solid var(--c-line-light);
}
.img-placeholder span {
  font-family: var(--font-mono); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .85rem;
  padding: .5rem 1rem; border: 2px dashed #8a929a; border-radius: 8px; background: rgba(255,255,255,.55);
}
.ref-card img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; }
.ref-body { padding: 1.5rem 1.6rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.ref-meta { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--c-accent-strong); font-weight: 600; margin-bottom: .5rem; }
.ref-body p { color: var(--c-muted); }
.ref-size {
  margin: auto 0 0 !important; padding-top: .9rem; border-top: 1px solid var(--c-line-light);
  font-family: var(--font-mono); font-size: .9rem; font-weight: 600; color: var(--c-text) !important;
}

/* ---------- Ablauf ---------- */
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 1.75rem 1.5rem 1.5rem;
  background: var(--c-bg-dark-2);
  border: 1px solid var(--c-line-dark);
  border-radius: var(--radius);
}
.step::after {
  /* Verbindungslinie */
  content: ""; position: absolute; top: 2.6rem; right: -1.25rem; width: 1.25rem; height: 2px;
  background: var(--c-accent);
}
.step:last-child::after { display: none; }
.step-no {
  display: inline-block; margin-bottom: 1rem;
  font-family: var(--font-mono); font-weight: 700; font-size: 1.6rem; line-height: 1;
  color: var(--c-accent);
}
.step p { color: var(--c-muted-on-dark); margin: 0; font-size: .98rem; }
.lead-time {
  margin: 2rem 0 0; padding: 1rem 1.25rem;
  border-left: 3px solid var(--c-accent);
  background: var(--c-bg-dark-2);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--c-muted-on-dark);
}
.lead-time-label { font-weight: 700; color: var(--c-text-on-dark); }
.section-dark mark.ph { background: rgba(255, 196, 0, .18); border-color: rgba(255, 196, 0, .7); color: #ffe7a3; }

/* ---------- Kontakt ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.contact-info > p:not(.eyebrow) { color: var(--c-muted); font-size: 1.08rem; }
.contact-list { list-style: none; margin: 2rem 0; padding: 0; }
.contact-list li {
  display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; align-items: baseline;
  padding: .9rem 0; border-top: 1px solid var(--c-line-light);
}
.contact-list li:last-child { border-bottom: 1px solid var(--c-line-light); }
.contact-label { font-family: var(--font-mono); font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--c-muted); }
.contact-list a { font-weight: 650; }
.file-hint {
  background: #fff1e8; border: 1px solid #f6d3bd; border-radius: var(--radius);
  padding: 1.2rem 1.35rem;
}
.file-hint p { margin: .35rem 0 0; color: #4d4540; font-size: .96rem; }

.form-wrap {
  background: var(--c-surface);
  border: 1px solid var(--c-line-light);
  border-radius: calc(var(--radius) + 4px);
  padding: clamp(1.4rem, 3.5vw, 2.4rem);
  box-shadow: var(--shadow);
}
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.1rem; }
.field { margin-bottom: 1.15rem; }
.field label { display: block; font-weight: 650; font-size: .95rem; margin-bottom: .4rem; }
.req { color: var(--c-accent-strong); }
.optional { font-weight: 400; color: var(--c-muted); }
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field textarea {
  width: 100%;
  font: inherit; font-size: 1rem; color: var(--c-text);
  padding: .8rem .95rem;
  background: #fbfaf8;
  border: 1.5px solid #cfcac2;
  border-radius: var(--radius-sm);
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field textarea { resize: vertical; min-height: 9rem; }
.field input:focus, .field textarea:focus {
  outline: none; background: #fff;
  border-color: var(--c-accent-strong);
  box-shadow: 0 0 0 4px rgba(255, 122, 47, .2);
}
.field ::placeholder { color: #7b8288; }
.field-hint { font-size: .88rem; color: var(--c-muted); margin: .45rem 0 0; }
.field-file input[type="file"] {
  display: block; width: 100%;
  font: inherit; font-size: .95rem; color: var(--c-text);
  padding: .7rem .8rem;
  background: #fbfaf8;
  border: 1.5px dashed #cfcac2;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field-file input[type="file"]:hover { border-color: var(--c-accent-strong); background: #fff; }
.field-file input[type="file"]:focus-visible { outline: none; border-color: var(--c-accent-strong); box-shadow: 0 0 0 4px rgba(255, 122, 47, .2); }
.field-file input[type="file"]::file-selector-button {
  font: inherit; font-weight: 650; font-size: .9rem;
  margin-right: .9rem; padding: .5rem .95rem;
  color: var(--c-text); background: #fff;
  border: 1.5px solid #cfcac2; border-radius: var(--radius-sm);
  cursor: pointer;
}
.field-file input[type="file"].is-invalid { border-color: #d64545; border-style: solid; background: #fff8f8; }
.field-error { font-size: .9rem; font-weight: 600; color: #9b1c1c; margin: .5rem 0 0; }
.field-check { display: grid; grid-template-columns: auto 1fr; gap: .75rem; align-items: start; }
.field-check input { width: 20px; height: 20px; margin: .2rem 0 0; accent-color: var(--c-accent-strong); }
.field-check label { font-weight: 400; font-size: .93rem; color: var(--c-muted); margin: 0; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.4rem; }
.form-required { margin: 0; font-size: .88rem; color: var(--c-muted); }

/* Honeypot */
.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.form-status {
  margin-bottom: 1.25rem; padding: 1rem 1.2rem; border-radius: var(--radius-sm);
  font-weight: 600;
}
.form-status.is-success { background: #e7f5ec; border: 1px solid #9fd3b1; color: #14532d; }
.form-status.is-error { background: #fdecec; border: 1px solid #f0a8a8; color: #7f1d1d; }

/* ---------- Footer ---------- */
.site-footer { background: #0b0d0f; color: var(--c-muted-on-dark); padding-block: 2.75rem; font-size: .95rem; }
.footer-inner { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, .8fr); gap: 1.5rem 2.5rem; align-items: start; }
.footer-brand .logo-text { color: var(--c-text-on-dark); }
.footer-brand p { margin: .5rem 0 0; max-width: 34rem; }
.footer-nav { display: flex; flex-direction: column; gap: .45rem; }
.footer-nav-title { margin: 0 0 .2rem; font-family: var(--font-mono); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--c-muted-on-dark); }
.footer-nav a { color: var(--c-text-on-dark); text-decoration: none; }
.footer-nav a:hover { color: var(--c-accent); text-decoration: underline; }
.footer-copy { grid-column: 1 / -1; margin: 0; padding-top: 1.25rem; border-top: 1px solid #1f252b; font-size: .85rem; }

/* ---------- Rechtstexte (Impressum / Datenschutz) ---------- */
.legal-header { position: static; }
.legal { padding-block: clamp(3rem, 7vw, 5rem); }
.legal .container { max-width: 820px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.legal h2 { font-size: 1.35rem; margin-top: 2.2rem; }
.legal h3 { font-size: 1.08rem; margin-top: 1.5rem; }
.legal p, .legal li { color: #2f3439; }
.legal address { font-style: normal; margin-bottom: 1em; }
.legal-notice {
  background: #fff6db; border: 1px solid #ecd28a; border-left: 4px solid #d9a400;
  padding: 1rem 1.2rem; border-radius: var(--radius-sm); margin-bottom: 2rem; color: #4a3b0b;
}
.back-link { display: inline-block; margin-bottom: 1.5rem; font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .machine-grid { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step:nth-child(2)::after { display: none; }
}
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; min-height: 0; padding-top: 3rem; }
  .hero-visual { max-width: 480px; margin-inline: auto; width: 100%; }
  .cards-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .usp-grid { grid-template-columns: 1fr; }
  .usp { border-left: 0; border-top: 1px solid var(--c-line-dark); padding: 1.4rem 0; }
  .usp:first-child { border-top: 0; }
  .materials { grid-template-columns: 1fr; }
  .hero-facts { grid-template-columns: repeat(2, auto); gap: 1rem 2.5rem; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .cards-3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step::after { display: none; }
  .form-row-2 { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 100%; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .contact-list li { grid-template-columns: 1fr; gap: .15rem; }
  .specs div { grid-template-columns: 6rem 1fr; }
  .logo-text { font-size: .9rem; letter-spacing: .04em; }
  .legal-header .btn { display: none; }
}
@media (max-width: 370px) {
  .logo-text { font-size: .8rem; }
  .footer-inner { grid-template-columns: minmax(0, 1fr); }
}

@media print {
  .site-header, .nav-toggle, .hero-actions, .form-wrap { display: none; }
  .hero, .section-dark { background: #fff; color: #000; }
}

/* ==========================================================================
   Illustrationen (isometrisch, Inline-SVG)
   ========================================================================== */
.illu { width: 100%; height: auto; overflow: visible; }
.illu .slab-top { fill: #3a424a; stroke: #6d7780; stroke-width: 1; }
.illu .slab-left { fill: #262c32; stroke: #4c555e; stroke-width: 1; }
.illu .slab-right { fill: #1c2126; stroke: #4c555e; stroke-width: 1; }
.illu .slab-vein { fill: none; stroke: rgba(220, 226, 232, .16); stroke-width: 1.3; }
.illu .cut-done { fill: none; stroke: var(--c-accent); stroke-width: 2.4; stroke-linejoin: round; }
.illu .cut-todo { fill: none; stroke: #9aa4ad; stroke-width: 1.3; stroke-dasharray: 5 5; }
.illu .jet { stroke: #e9f6ff; stroke-width: 2.2; }
.illu .jet-glow { stroke: rgba(140, 200, 255, .35); stroke-width: 9; stroke-linecap: round; }
.illu .jet-hit { fill: var(--c-accent); filter: drop-shadow(0 0 6px rgba(255, 122, 47, .9)); }
.illu .spray { fill: rgba(190, 225, 255, .7); }
.illu .tool-body { fill: #cfd6dd; }
.illu .tool-dark { fill: #6f7a85; }
.illu .tool-hose { fill: none; stroke: #6f7a85; stroke-width: 5; stroke-linecap: round; }
.illu .pocket-rim { fill: #15191d; }
.illu .pocket-floor { fill: #2b3239; }
.illu .toolpath { fill: none; stroke: rgba(255, 150, 90, .6); stroke-width: 1.1; }
.illu .pocket-edge { fill: none; stroke: var(--c-accent); stroke-width: 1.8; }
.illu .endmill { fill: #e2e7ec; }
.illu .endmill-flute { stroke: #7d8893; stroke-width: 1.2; }
.illu .chip { fill: #aab3bb; }
.illu .cube-edge { fill: none; stroke: #d7dde3; stroke-width: 1.5; stroke-linejoin: round; }
.illu .cube-hidden { fill: none; stroke: #6b7580; stroke-width: 1.1; stroke-dasharray: 5 6; }
.illu .cube-floor { fill: rgba(255, 255, 255, .035); }
.illu .cube-grid { fill: none; stroke: rgba(255, 255, 255, .08); stroke-width: 1; }
.illu .part-body { fill: rgba(255, 122, 47, .2); stroke: var(--c-accent); stroke-width: 1.4; }
.illu .part-layers { fill: none; stroke: rgba(255, 150, 90, .55); stroke-width: 1; }
.illu .part-top { fill: rgba(255, 122, 47, .25); stroke: var(--c-accent); stroke-width: 1.4; }
.illu .illu-label { fill: var(--c-muted-on-dark); font-family: var(--font-mono); font-size: 13px; letter-spacing: .12em; }

/* ==========================================================================
   Landing: Verfahren-Karten, Tint-Sektion, Spezifikationen, Materialien
   ========================================================================== */
.section-tint { background: #e9e6e0; color: var(--c-text); }
.cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.hero-landing h1 { font-size: clamp(2.2rem, 4.6vw, 3.7rem); }
.hero-landing .hero-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.hero-landing .hero-visual .illu { max-width: 600px; margin-inline: auto; }

.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.pillar {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--c-surface);
  border: 1px solid var(--c-line-light);
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.pillar:hover, .pillar:focus-within {
  transform: translateY(-4px);
  border-color: var(--c-accent);
  box-shadow: 0 2px 4px rgba(16,19,22,.06), 0 22px 44px rgba(16,19,22,.14);
}
.pillar-visual {
  aspect-ratio: 16 / 10;
  display: grid; place-items: center;
  padding: 1.25rem 1.5rem;
  background:
    radial-gradient(ellipse 70% 70% at 50% 60%, rgba(255,122,47,.14), transparent 70%),
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px) 0 0 / 28px 28px,
    var(--c-bg-dark);
}
.pillar-visual .illu { width: auto; height: 100%; max-height: 210px; max-width: 100%; }
.pillar-body { padding: 1.6rem 1.75rem 1.75rem; display: flex; flex-direction: column; flex: 1; }
.pillar-no { font-family: var(--font-mono); font-weight: 700; color: var(--c-accent-strong); margin: 0 0 .4rem; letter-spacing: .08em; }
.pillar h3 { font-size: 1.45rem; margin-bottom: .35rem; }
.pillar-claim { font-size: 1.05rem; font-weight: 600; color: var(--c-text); margin-bottom: 1rem; }
.pillar .checklist { margin-bottom: 1.5rem; }
.pillar .checklist li { color: var(--c-muted); font-size: .98rem; }
.pillar .checklist li::before { border-color: var(--c-accent-strong); }
.pillar-link { margin-top: auto; align-self: flex-start; }
.pillar-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.pillar-link:focus-visible { outline-offset: 4px; }

/* Anlage & technische Daten */
.spec-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 1.25rem; align-items: stretch; }
.specs-wide div { grid-template-columns: 9.5rem 1fr; }
.why-panel .checklist { margin: 0; }
.why-panel .checklist li { color: var(--c-muted-on-dark); padding-block: .45rem; }

/* Materialien */
.mat-card h3 { margin-bottom: .45rem; }
.mat-tag {
  display: inline-block; margin: 0 0 .9rem !important;
  font-family: var(--font-mono); font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--c-accent-strong) !important; background: #fff1e8; border-radius: 6px; padding: .25rem .6rem;
}
.note-light { color: var(--c-muted); }

/* Auswahlfeld */
.select-wrap { position: relative; }
.select-wrap::after {
  content: ""; position: absolute; right: 1rem; top: 50%; width: 9px; height: 9px; margin-top: -7px;
  border-right: 2px solid var(--c-muted); border-bottom: 2px solid var(--c-muted); transform: rotate(45deg);
  pointer-events: none;
}
.field select {
  width: 100%; appearance: none; -webkit-appearance: none;
  font: inherit; font-size: 1rem; color: var(--c-text);
  padding: .8rem 2.5rem .8rem .95rem;
  background: #fbfaf8; border: 1.5px solid #cfcac2; border-radius: var(--radius-sm);
  cursor: pointer;
}
.field select:focus { outline: none; background: #fff; border-color: var(--c-accent-strong); box-shadow: 0 0 0 4px rgba(255,122,47,.2); }
.field select:invalid { color: #6b7278; }

@media (max-width: 1080px) {
  .cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pillars { grid-template-columns: 1fr; max-width: 640px; margin-inline: auto; }
  .pillar { flex-direction: row; }
  .pillar-visual { aspect-ratio: auto; width: 42%; flex: none; }
  .spec-grid { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .hero-landing .hero-inner { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .cards-4 { grid-template-columns: 1fr; }
  .pillar { flex-direction: column; }
  .pillar-visual { width: auto; aspect-ratio: 16 / 10; }
  .specs-wide div { grid-template-columns: 1fr; gap: .15rem; }
  .pillar-link { align-self: stretch; }
}

/* Kompakte Hero-Überschrift mit Unterzeile */
.hero-compact h1 { font-size: clamp(2.1rem, 4.2vw, 3.3rem); hyphens: manual; }
.h1-sub { display: block; font-size: .7em; line-height: 1.15; margin-top: .3em; letter-spacing: -.02em; }
.illu-landing .illu-label { font-size: 19px; font-weight: 600; fill: #c4ccd4; }

/* Wasserstrahl: Reinwasser-Feature & Anlagenvergleich */
.feature-panel {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem);
  background:
    radial-gradient(ellipse 60% 80% at 100% 0%, rgba(255,122,47,.16), transparent 70%),
    var(--c-bg-dark);
  color: var(--c-text-on-dark);
  border-radius: calc(var(--radius) + 6px);
  border-left: 5px solid var(--c-accent);
  padding: clamp(1.75rem, 4.5vw, 3.25rem);
  box-shadow: 0 20px 50px rgba(16,19,22,.18);
}
.feature-panel .eyebrow { color: var(--c-accent); }
.feature-copy > p { color: var(--c-muted-on-dark); font-size: 1.08rem; }
.feature-copy .checklist li { color: var(--c-text-on-dark); }
.feature-side {
  align-self: center;
  background: var(--c-bg-dark-2); border: 1px solid var(--c-line-dark); border-radius: var(--radius);
  padding: 1.5rem;
}
.feature-side-title { font-family: var(--font-mono); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--c-muted-on-dark); margin-bottom: .9rem; }
.tags-dark li { background: rgba(255,122,47,.12); border-color: rgba(255,122,47,.45); color: var(--c-text-on-dark); }
.feature-side-note { color: var(--c-muted-on-dark); font-size: .93rem; margin: 1.1rem 0 1.25rem; }

.table-wrap {
  overflow-x: auto;
  background: var(--c-bg-dark-2);
  border: 1px solid var(--c-line-dark);
  border-radius: var(--radius);
}
.spec-table { width: 100%; border-collapse: collapse; font-size: .98rem; }
.spec-table th, .spec-table td { text-align: left; padding: .85rem 1.25rem; border-top: 1px solid var(--c-line-dark); vertical-align: top; }
.spec-table thead th {
  border-top: 0; font-size: 1.08rem; font-weight: 750; color: var(--c-text-on-dark);
  background: linear-gradient(180deg, rgba(255,122,47,.10), transparent);
  padding-top: 1.2rem; padding-bottom: 1rem;
}
.spec-table thead th:first-child { color: var(--c-muted-on-dark); font-family: var(--font-mono); font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; vertical-align: bottom; }
.th-sub { display: block; font-family: var(--font-mono); font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--c-accent); margin-bottom: .2rem; }
.spec-table tbody th { font-family: var(--font-mono); font-weight: 500; font-size: .85rem; color: var(--c-muted-on-dark); letter-spacing: .03em; width: 30%; }
.spec-table td { font-weight: 600; color: var(--c-text-on-dark); width: 35%; }
.spec-table tbody tr:hover { background: rgba(255,255,255,.025); }
.yes { display: inline-block; padding: .1rem .6rem; border-radius: 999px; background: rgba(74, 222, 128, .14); color: #86efac; font-size: .9rem; }
.feature-tiles { margin-top: 1.25rem; }
.feature-tiles .material h3 { margin-bottom: .5rem; }
.feature-tiles .material p { margin: 0; }

@media (max-width: 960px) {
  .feature-panel { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .spec-table { font-size: .9rem; }
  .spec-table th, .spec-table td { padding: .7rem .6rem; }
  .spec-table tbody th { width: 28%; font-size: .75rem; }
  .spec-table thead th { font-size: .95rem; }
  .feature-panel { border-left-width: 4px; }
}

/* Anlagenvergleich auf kleinen Bildschirmen gestapelt */
@media (max-width: 640px) {
  .table-wrap { overflow: visible; }
  .spec-table, .spec-table tbody { display: block; }
  .spec-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .spec-table tr { display: grid; grid-template-columns: 1fr 1fr; gap: .25rem .9rem; padding: .85rem 1rem; border-top: 1px solid var(--c-line-dark); }
  .spec-table tbody tr:first-child { border-top: 0; }
  .spec-table th, .spec-table td { display: block; padding: 0; border: 0; width: auto !important; }
  .spec-table tbody th { grid-column: 1 / -1; margin-bottom: .2rem; }
  .spec-table td::before {
    content: attr(data-label); display: block;
    font-family: var(--font-mono); font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
    color: var(--c-accent); margin-bottom: .1rem;
  }
  .spec-table .td-span { grid-column: 1 / -1; }
}

/* Eckdaten im Hero: umbrechen statt überlaufen */
.hero-facts { display: flex; flex-wrap: wrap; gap: 1rem 2rem; }
.hero-facts span { white-space: nowrap; }
@media (max-width: 760px) {
  .hero-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.5rem; }
  .hero-facts span { white-space: normal; }
}

/* ---------- Kantenprofile (Fräsen) ---------- */
.profile-card { margin: 0; }
.profile-card img { aspect-ratio: 4 / 3; width: 100%; height: auto; object-fit: cover; display: block; }
.profile-card .img-placeholder { border-bottom: 0; }
.profile-card .ref-body { padding: 1rem 1.2rem 1.1rem; }
@media (max-width: 640px) {
  .profile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
  .profile-grid .img-placeholder span { font-size: .68rem; letter-spacing: .06em; padding: .4rem .55rem; text-align: center; }
}

/* zwei dunkle Abschnitte direkt hintereinander (z. B. wenn Referenzen ausgeblendet sind) */
.section-dark + .section-dark { border-top: 1px solid var(--c-line-dark); }

/* ==========================================================================
   Einsatzgebiet (Region) + „Weitere Verfahren“ (interne Verlinkung)
   ========================================================================== */
.region-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.region-grid-single { grid-template-columns: minmax(0, 1fr); }
.region-copy { max-width: 46rem; }
.region-copy .section-head { margin-bottom: 1.5rem; }
.region-copy > p { color: var(--c-muted); font-size: 1.05rem; }
.region-copy > p a { font-weight: 650; }
.region-tags { margin-top: 1.6rem; }
.region-related { display: grid; gap: 1rem; }
.region-related-title { margin: 0 0 .25rem; font-size: .85rem; font-family: var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--c-muted); font-weight: 600; }
.related-card { padding: 1.4rem 1.5rem; }
.related-card h3 { font-size: 1.12rem; margin-bottom: .4rem; }
.related-card h3 a { color: var(--c-text); text-decoration: none; }
.related-card h3 a::after { content: " →"; color: var(--c-accent-strong); }
.related-card h3 a:hover { color: var(--c-accent-strong); text-decoration: underline; }
@media (max-width: 900px) {
  .region-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Startseite: längere H1 („Lohnfertigung in Berlin-Brandenburg: …“) – etwas kleiner, Teil nach dem Doppelpunkt als Unterzeile */
.hero-landing.hero-compact h1 { font-size: clamp(1.95rem, 3.5vw, 3rem); overflow-wrap: break-word; }
.hero-landing .h1-sub { font-size: .66em; margin-top: .35em; }
@media (max-width: 370px) {
  .hero-landing.hero-compact h1 { font-size: 1.65rem; }
  .hero-landing .h1-sub { font-size: .72em; }
}

/* Sehr schmale Displays (≤ 370 px): lange Wörter umbrechen, Innenabstände etwas kleiner */
.feature-panel h2, .spec-panel, .specs dd { overflow-wrap: break-word; }
h1, h2, h3 { overflow-wrap: break-word; }
.contact-grid > * { min-width: 0; }
@media (max-width: 420px) {
  h1, h2, h3, .btn { hyphens: auto; -webkit-hyphens: auto; }
}
@media (max-width: 400px) {
  .hero-facts { display: flex; flex-wrap: wrap; gap: .9rem 1.6rem; }
}
@media (max-width: 370px) {
  .specs dd .nowrap { white-space: normal; }
  .btn { white-space: normal; text-align: center; }
  .legal h1 { font-size: 1.75rem; }
  .spec-panel, .material { padding: 1.25rem; }
  .specs div { grid-template-columns: 5.25rem minmax(0, 1fr); gap: .75rem; }
  .feature-panel { padding: 1.4rem 1.15rem; }
  .feature-side { padding: 1.15rem; }
}
