/* ============================================================
   wasserstrahltechnik.at - zentrales Stylesheet
   Industriell-utilitaristisch, dunkel. Stahlblau + Hochdruck-Cyan.
   Fonts lokal gehostet: Chakra Petch / IBM Plex Sans / IBM Plex Mono
   ============================================================ */

/* ---------- Fonts (lokal, DSGVO-konform) ---------- */
@font-face {
  font-family: 'Chakra Petch';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/chakra-petch-600-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Chakra Petch';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/chakra-petch-700-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('fonts/ibm-plex-sans-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/ibm-plex-mono-500-latin.woff2') format('woff2');
}

/* ---------- Design Tokens ---------- */
:root {
  --bg0: #0a0f17;
  --bg1: #0d1520;
  --panel: #111c2b;
  --panel-2: #0f1825;
  --line: #1e2e42;
  --line-soft: rgba(22, 36, 53, 0.34);
  --ink: #dde6f0;
  --muted: #93a5ba;
  --faint: #5f7186;
  --cyan: #38e1ff;
  --cyan-deep: #149fc0;
  --cyan-glow: rgba(56, 225, 255, 0.14);
  --warn: #ffc94d;
  --display: 'Chakra Petch', sans-serif;
  --sans: 'IBM Plex Sans', sans-serif;
  --mono: 'IBM Plex Mono', monospace;
  --maxw: 1180px;
}

/* ---------- Reset / Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--bg1);
  background-image:
    radial-gradient(1100px 480px at 85% -120px, var(--cyan-glow), transparent 70%),
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px),
    linear-gradient(rgba(30, 46, 66, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 46, 66, 0.16) 1px, transparent 1px);
  background-size: 100% 100%, 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  background-attachment: fixed;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--cyan); text-decoration: none; }
p a, li a, td a { border-bottom: 1px solid rgba(56, 225, 255, 0.35); transition: border-color .18s, color .18s; }
p a:hover, li a:hover, td a:hover { border-bottom-color: var(--cyan); color: #8fefff; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.15; letter-spacing: .01em; margin: 0 0 .6em; }
h1 { font-size: clamp(1.9rem, 4.4vw, 3.1rem); }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-top: 0; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1.1em; }
ul { padding-left: 1.25rem; }
li { margin-bottom: .35em; }
strong { color: #fff; font-weight: 600; }
::selection { background: var(--cyan); color: #04222b; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--cyan); color: #04222b; font-family: var(--mono);
  padding: .6rem 1rem; font-size: .85rem;
}
.skip-link:focus { left: 0; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }
.mono { font-family: var(--mono); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--mono); font-size: .78rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--cyan); margin: 0 0 1rem;
}
.eyebrow::before { content: ''; width: 26px; height: 1px; background: var(--cyan); }
.section { padding: 4.5rem 0; border-top: 1px solid var(--line); position: relative; }
.section--flush { border-top: 0; }

.rule-head { position: relative; padding-bottom: .85rem; margin-bottom: 1.4rem; }
.rule-head::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 120px; height: 7px;
  background:
    linear-gradient(var(--cyan), var(--cyan)) 0 50% / 100% 1px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) 0 0 / 1px 7px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) 100% 0 / 1px 7px no-repeat;
}

/* ---------- Header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 15, 23, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 64px;
}
.brand {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(.82rem, 1.6vw, 1.02rem);
  letter-spacing: .06em; color: var(--ink); white-space: nowrap;
}
.brand span { color: var(--cyan); }
.brand small {
  display: block; font-family: var(--mono); font-weight: 500;
  font-size: .58rem; letter-spacing: .3em; color: var(--faint); margin-top: 1px;
}
.site-nav { display: flex; align-items: center; gap: 1.35rem; }
.site-nav a {
  font-family: var(--mono); font-size: .8rem; letter-spacing: .04em;
  color: var(--muted); position: relative; padding: .35rem 0;
}
.site-nav a:hover, .site-nav a:focus-visible { color: var(--ink); }
.site-nav a::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 2px; background: var(--cyan); transition: right .22s ease;
}
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { right: 0; }
.site-nav a[aria-current="page"] { color: var(--cyan); }
.nav-cta {
  border: 1px solid var(--cyan); color: var(--cyan) !important;
  padding: .45rem .9rem !important;
  transition: background .18s, color .18s;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--cyan); color: #04222b !important; }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  color: var(--ink); font-family: var(--mono); font-size: .8rem;
  padding: .5rem .8rem; cursor: pointer;
}
.nav-toggle:hover { border-color: var(--cyan); color: var(--cyan); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-family: var(--mono); font-size: .92rem;
  letter-spacing: .04em; padding: .85rem 1.7rem; border: 1px solid var(--cyan);
  background: var(--cyan); color: #04222b; font-weight: 500;
  position: relative; transition: box-shadow .2s, transform .2s;
}
.btn:hover { box-shadow: 0 0 0 1px var(--cyan), 0 0 26px rgba(56, 225, 255, .35); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--cyan); }
.btn-ghost:hover { background: rgba(56, 225, 255, .08); }
.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.6rem; }

/* ---------- Hero ---------- */
.hero { padding: 4.5rem 0 3.5rem; position: relative; overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 3rem; align-items: center;
}
.hero .lead { font-size: 1.18rem; color: var(--muted); max-width: 56ch; }
.hero-art { position: relative; }
.kicker-note {
  font-family: var(--mono); font-size: .78rem; color: var(--faint);
  border-left: 2px solid var(--cyan); padding-left: .8rem; margin-top: 1.6rem;
}

/* ---------- Stats / Maschinen-Display ---------- */
.stat-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line); background: var(--panel-2);
  margin-top: 1rem;
}
.stat {
  padding: 1.4rem 1.2rem 1.2rem; position: relative;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: 0; }
.stat::before {
  content: ''; position: absolute; top: 0; left: 1.2rem; width: 18px; height: 3px;
  background: var(--cyan);
}
.stat-num {
  font-family: var(--mono); font-weight: 500;
  font-size: clamp(1.45rem, 3vw, 2.1rem); color: #fff; line-height: 1.05;
  text-shadow: 0 0 18px rgba(56, 225, 255, .35);
}
.stat-num small { font-size: .55em; color: var(--cyan); margin-left: .15em; }
.stat-label {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); margin-top: .45rem;
}

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }
.card {
  position: relative; padding: 1.6rem 1.5rem;
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line);
  transition: border-color .2s, transform .2s;
}
.card::before, .card::after {
  content: ''; position: absolute; width: 14px; height: 14px; pointer-events: none;
  transition: width .2s, height .2s;
}
.card::before { top: -1px; left: -1px; border-top: 2px solid var(--cyan); border-left: 2px solid var(--cyan); }
.card::after { bottom: -1px; right: -1px; border-bottom: 2px solid var(--cyan); border-right: 2px solid var(--cyan); }
.card:hover { border-color: #2a4159; transform: translateY(-2px); }
.card:hover::before, .card:hover::after { width: 26px; height: 26px; }
.card h3 { color: #fff; margin-top: 0; }
.card p { color: var(--muted); font-size: .97rem; margin-bottom: 0; }
.card .mono-tag {
  display: inline-block; font-family: var(--mono); font-size: .7rem;
  letter-spacing: .14em; color: var(--cyan); margin-bottom: .7rem;
  text-transform: uppercase;
}
.card p + p, .card ul { margin-top: .8em; }

/* ---------- Zweispaltiges Inhaltslayout ---------- */
.split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 3rem; align-items: start; }
.sidebox {
  border: 1px solid var(--line); background: var(--panel-2);
  padding: 1.5rem; position: sticky; top: 90px;
}
.sidebox h3 { margin-top: 0; }
.spec-list { list-style: none; padding: 0; margin: 0; font-family: var(--mono); font-size: .85rem; }
.spec-list li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .55rem 0; border-bottom: 1px dashed var(--line); margin: 0;
}
.spec-list li:last-child { border-bottom: 0; }
.spec-list .k { color: var(--faint); }
.spec-list .v { color: #fff; text-align: right; }

/* ---------- Tabellen ---------- */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; background: var(--panel-2); }
caption { caption-side: bottom; font-family: var(--mono); font-size: .75rem; color: var(--faint); padding: .7rem; text-align: left; }
th, td { padding: .8rem 1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th {
  font-family: var(--mono); font-weight: 500; font-size: .75rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--cyan);
  background: var(--panel); border-bottom: 1px solid var(--cyan-deep);
}
tr:last-child td { border-bottom: 0; }
td { color: var(--muted); }
td:first-child { color: var(--ink); font-weight: 600; }

/* ---------- Schritt-Liste (Ablauf) ---------- */
.steps { list-style: none; padding: 0; margin: 2rem 0 0; counter-reset: step; display: grid; gap: 1rem; }
.steps li {
  counter-increment: step; position: relative;
  padding: 1.4rem 1.5rem 1.4rem 5.2rem;
  border: 1px solid var(--line); background: var(--panel-2); margin: 0;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 1.3rem; top: 1.25rem;
  font-family: var(--mono); font-size: 1.5rem; color: var(--cyan);
  text-shadow: 0 0 14px rgba(56, 225, 255, .4);
}
.steps li::after {
  content: ''; position: absolute; left: 3.9rem; top: 1.3rem; bottom: 1.3rem;
  width: 1px; background: var(--line);
}
.steps h3 { margin: 0 0 .3rem; }
.steps p { margin: 0; color: var(--muted); font-size: .97rem; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: .8rem; }
details { border: 1px solid var(--line); background: var(--panel-2); }
summary {
  cursor: pointer; list-style: none; padding: 1.1rem 3rem 1.1rem 1.3rem;
  font-family: var(--display); font-weight: 600; font-size: 1.02rem;
  color: var(--ink); position: relative;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: '+'; position: absolute; right: 1.2rem; top: 50%;
  transform: translateY(-50%); font-family: var(--mono);
  color: var(--cyan); font-size: 1.3rem;
}
details[open] summary::after { content: '\2212'; }
details[open] summary { border-bottom: 1px dashed var(--line); color: var(--cyan); }
details .faq-body { padding: 1rem 1.3rem 1.2rem; color: var(--muted); }
details .faq-body p:last-child { margin-bottom: 0; }

/* ---------- Hinweis-Boxen ---------- */
.note {
  border: 1px dashed var(--warn); background: rgba(255, 201, 77, .05);
  padding: 1rem 1.3rem; font-size: .92rem; color: var(--muted); margin: 1.5rem 0;
}
.note strong { color: var(--warn); font-family: var(--mono); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }
.callout {
  border: 1px solid var(--cyan-deep); background: rgba(56, 225, 255, .05);
  padding: 1.6rem 1.7rem; margin: 2rem 0;
}
.callout h3 { color: var(--cyan); margin-top: 0; }
.callout p:last-of-type { margin-bottom: 0; }

/* ---------- CTA-Band ---------- */
.cta-band {
  border-top: 1px solid var(--cyan-deep); border-bottom: 1px solid var(--cyan-deep);
  background:
    linear-gradient(rgba(56, 225, 255, .05), rgba(56, 225, 255, .02)),
    repeating-linear-gradient(-45deg, transparent 0 14px, rgba(56, 225, 255, .04) 14px 15px);
  padding: 3.5rem 0;
}
.cta-band h2 { margin-bottom: .4rem; }
.cta-band p { color: var(--muted); max-width: 62ch; }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.contact-card .big {
  font-family: var(--mono); font-size: clamp(1.05rem, 2.4vw, 1.45rem);
  color: #fff; display: inline-block; margin: .3rem 0 .6rem;
  border-bottom: 1px solid rgba(56,225,255,.35);
}
.contact-card .big:hover { color: var(--cyan); border-bottom-color: var(--cyan); }

/* ---------- Kontaktformular ---------- */
.form-panel {
  position: relative; max-width: 860px;
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line);
  padding: 2.2rem 2rem 2rem;
}
.form-panel::before, .form-panel::after {
  content: ''; position: absolute; width: 18px; height: 18px; pointer-events: none;
}
.form-panel::before { top: -1px; left: -1px; border-top: 2px solid var(--cyan); border-left: 2px solid var(--cyan); }
.form-panel::after { bottom: -1px; right: -1px; border-bottom: 2px solid var(--cyan); border-right: 2px solid var(--cyan); }
.form-panel h2 { margin-top: 0; }
.form-intro { color: var(--muted); font-size: .97rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem 1.4rem; margin-top: 1.5rem; }
.form-field--full { grid-column: 1 / -1; }
.form-field label {
  display: block; font-family: var(--mono); font-size: .72rem;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: .45rem;
}
.req { color: var(--cyan); }
.form-field input, .form-field textarea {
  width: 100%; background: var(--bg0); border: 1px solid var(--line);
  border-radius: 0; color: var(--ink);
  font-family: var(--sans); font-size: 1rem; line-height: 1.5;
  padding: .75rem .9rem;
  transition: border-color .18s, box-shadow .18s;
}
.form-field textarea { resize: vertical; min-height: 150px; }
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--faint); }
.form-field input:focus, .form-field textarea:focus {
  outline: none; border-color: var(--cyan);
  box-shadow: 0 0 0 1px var(--cyan), 0 0 18px rgba(56, 225, 255, .14);
}
.form-field.invalid input, .form-field.invalid textarea { border-color: #ff6b5e; }
.field-error {
  font-family: var(--mono); font-size: .75rem; letter-spacing: .03em;
  color: #ff9286; margin: .45rem 0 0;
}
.hp-wrap {
  position: absolute; left: -9999px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
}
.form-consent { margin-top: 1.5rem; }
.check-label {
  display: flex; align-items: flex-start; gap: .7rem;
  font-size: .92rem; color: var(--muted); cursor: pointer;
}
.check-label input[type="checkbox"] {
  flex: 0 0 auto; width: 18px; height: 18px; margin: .2rem 0 0;
  accent-color: var(--cyan); cursor: pointer;
}
.form-consent.invalid .check-label { color: #ff9286; }
.form-submit { margin-top: 1.6rem; cursor: pointer; }
.form-submit:disabled {
  opacity: .65; cursor: wait;
  transform: none; box-shadow: none;
}
.form-status { margin: 1.4rem 0 0; font-size: .92rem; }
.form-status--error {
  border: 1px dashed #ff6b5e; background: rgba(255, 107, 94, .06);
  color: #ffb3aa; padding: .9rem 1.1rem;
}
.form-success {
  border: 1px solid var(--cyan-deep); background: rgba(56, 225, 255, .06);
  padding: 1.8rem 1.7rem; margin-top: 1.5rem;
}
.form-success h3 { color: var(--cyan); margin-top: 0; }
.form-success p { color: var(--muted); margin-bottom: 0; }
.form-noscript {
  border: 1px dashed var(--warn); background: rgba(255, 201, 77, .05);
  padding: .9rem 1.1rem; font-size: .92rem; color: var(--muted);
}

/* ---------- Footer ---------- */
.site-foot {
  border-top: 1px solid var(--line); background: var(--bg0);
  margin-top: 4rem; padding: 3rem 0 2rem;
  font-size: .92rem; color: var(--muted);
}
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; }
.site-foot h3 {
  font-family: var(--mono); font-weight: 500; font-size: .72rem;
  letter-spacing: .2em; text-transform: uppercase; color: var(--faint);
  margin-bottom: 1rem;
}
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li { margin-bottom: .45rem; }
.site-foot a { color: var(--muted); }
.site-foot a:hover { color: var(--cyan); }
.foot-brand { font-family: var(--display); font-weight: 700; color: var(--ink); font-size: .95rem; letter-spacing: .05em; margin-bottom: .8rem; }
.foot-brand span { color: var(--cyan); }
.foot-bottom {
  border-top: 1px solid var(--line); margin-top: 2.5rem; padding-top: 1.4rem;
  font-family: var(--mono); font-size: .75rem; color: var(--faint);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
}
.foot-bottom a { color: var(--muted); }
.foot-bottom a:hover { color: var(--cyan); }
address { font-style: normal; line-height: 1.7; }

/* ---------- SVG-Illustrationen ---------- */
.art-frame {
  border: 1px solid var(--line); background: var(--panel-2);
  padding: 1.2rem; position: relative;
}
.art-frame::before {
  content: attr(data-label); position: absolute; top: -10px; left: 14px;
  background: var(--bg1); padding: 0 .6rem;
  font-family: var(--mono); font-size: .68rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--cyan);
}
.art-frame svg { display: block; width: 100%; height: auto; }

/* ---------- Reveal-Animationen ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; animation: rise .7s cubic-bezier(.16, 1, .3, 1) forwards; }
  .d1 { animation-delay: .05s; } .d2 { animation-delay: .15s; }
  .d3 { animation-delay: .25s; } .d4 { animation-delay: .35s; }
  .d5 { animation-delay: .45s; } .d6 { animation-delay: .55s; }
  @keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
  .jet-line { stroke-dasharray: 4 6; animation: jetflow 1.2s linear infinite; }
  @keyframes jetflow { to { stroke-dashoffset: -20; } }
  .pulse-dot { animation: pulse 2.4s ease-in-out infinite; }
  @keyframes pulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg0); border-bottom: 1px solid var(--line);
    padding: .5rem 1.25rem 1.25rem;
  }
  .site-nav a { padding: .8rem .25rem; border-bottom: 1px solid var(--line); font-size: .9rem; }
  .site-nav a::after { display: none; }
  .nav-cta { margin-top: .9rem; text-align: center; }
  .site-head.nav-open .site-nav { display: flex; }
  .nav-toggle { display: block; }
}
@media (max-width: 900px) {
  .hero-grid, .split { grid-template-columns: 1fr; gap: 2rem; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
  .card-grid, .card-grid--2 { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: 2rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .sidebox { position: static; }
  .form-grid { grid-template-columns: 1fr; }
  .form-panel { padding: 1.7rem 1.25rem 1.5rem; }
  .section { padding: 3.2rem 0; }
  .hero { padding: 3rem 0 2.5rem; }
}
