:root {
  /* Layout: dunkle Bühne in den Firmenfarben. Hero mit Text links und 3D-Netzwerk rechts,
     darunter drei Leistungskarten, ein 3D-Plattenstapel für die Komplettlösung,
     Hardware und Wartung, Kontakt. */
  --ink-950: #020d20;
  --ink-900: #041632;
  --ink-800: #0a2a5c;
  --blue: #0a5bb5;
  --sky: #3fa2ff;
  --silver: #b9c6d8;
  --text: #e8eef8;
  --muted: #9db0c9;
  --line: rgba(110, 165, 235, 0.2);
  --font-display: 'Saira', system-ui, sans-serif;
  --font-body: 'Hanken Grotesk', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink-950);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; margin: 0; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: 20px; }
.eyebrow {
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--sky);
}

/* Kopfzeile */
.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: rgba(2, 13, 32, 0.82); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 10px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.brand img { width: 54px; height: auto; display: block; flex: none; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; letter-spacing: 0.06em; line-height: 1; }
.brand-sub { display: block; font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.16em; color: var(--muted); margin-top: 5px; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a:not(.btn) { text-decoration: none; font-size: 0.95rem; color: var(--muted); transition: color .2s; }
.nav a:not(.btn):hover { color: var(--text); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px; font-weight: 600; font-size: 0.97rem;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  font-family: var(--font-body); transition: transform .2s, background .2s, border-color .2s;
}
.btn-primary { background: var(--sky); color: var(--ink-950); }
.btn-primary:hover { background: #6bb8ff; transform: translateY(-1px); }
.btn-ghost { border-color: var(--line); color: var(--text); background: rgba(10, 42, 92, 0.35); }
.btn-ghost:hover { border-color: var(--sky); transform: translateY(-1px); }
.btn-small { padding: 9px 16px; font-size: 0.9rem; }

/* Hero */
.hero { position: relative; overflow: hidden; padding-block: clamp(56px, 9vw, 110px); isolation: isolate;
  background: radial-gradient(900px 500px at 78% 40%, rgba(10, 91, 181, 0.35), transparent 70%), var(--ink-950); }
.scene {
  position: absolute; top: 0; bottom: 0; right: 0; width: min(64%, 820px); z-index: -1;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 22%);
  mask-image: linear-gradient(to right, transparent, #000 22%);
}
.scene canvas { width: 100%; height: 100%; display: block; }
.hero-copy { max-width: 36rem; display: flex; flex-direction: column; gap: 22px; animation: rise .9s ease-out backwards; }
.hero h1 { font-size: clamp(2.5rem, 6.2vw, 4.7rem); font-weight: 700; letter-spacing: -0.01em; }
.hero h1 span { color: var(--sky); display: block; }
.hero .lead { color: var(--silver); font-size: 1.12rem; max-width: 33rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 18px 0 0; padding: 0; list-style: none;
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.04em; color: var(--muted); }
.facts li::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--sky); margin-right: 9px; vertical-align: 1px; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Abschnitte */
section { padding-block: clamp(56px, 8vw, 104px); }
.head { max-width: 40rem; display: flex; flex-direction: column; gap: 14px; margin-bottom: 44px; }
.head h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 700; }
.head p { color: var(--muted); }

/* Leistungskarten */
#leistungen { background: var(--ink-900); border-block: 1px solid var(--line); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; perspective: 1400px; }
.card {
  position: relative; display: flex; flex-direction: column; gap: 16px; padding: 30px 26px 28px;
  border-radius: 18px; border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(10, 91, 181, 0.28), rgba(2, 13, 32, 0.9) 62%);
  transform-style: preserve-3d; transition: transform .25s ease-out, border-color .25s, box-shadow .25s;
  will-change: transform;
}
.card:hover { border-color: rgba(63, 162, 255, 0.6); box-shadow: 0 24px 60px -24px rgba(63, 162, 255, 0.45); }
.card .ico { width: 52px; height: 52px; color: var(--sky); transform: translateZ(34px); }
.card h3 { font-size: 1.45rem; font-weight: 600; transform: translateZ(22px); }
.card p { color: var(--muted); }
.tag { align-self: flex-start; margin-top: auto; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--silver); transform: translateZ(14px); }

/* Komplettlösung mit 3D-Stapel */
.solution { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.stack { height: 430px; perspective: 1300px; display: flex; align-items: center; justify-content: center; }
.stack-3d {
  position: relative; width: 250px; height: 250px; transform-style: preserve-3d;
  transform: rotateX(62deg) rotateZ(-38deg); animation: swing 12s ease-in-out infinite alternate;
}
@keyframes swing { from { transform: rotateX(62deg) rotateZ(-42deg); } to { transform: rotateX(58deg) rotateZ(-14deg); } }
.plate {
  position: absolute; inset: 0; border-radius: 20px; border: 1.5px solid rgba(63, 162, 255, 0.75);
  background:
    repeating-linear-gradient(0deg, rgba(63, 162, 255, 0.12) 0 1px, transparent 1px 25px),
    repeating-linear-gradient(90deg, rgba(63, 162, 255, 0.12) 0 1px, transparent 1px 25px),
    linear-gradient(135deg, rgba(10, 91, 181, 0.62), rgba(4, 22, 50, 0.7));
  transform: translateZ(calc(var(--i) * 58px));
  box-shadow: 0 0 0 1px rgba(2, 13, 32, 0.6), 0 0 36px rgba(63, 162, 255, 0.25);
  transition: border-color .25s, box-shadow .25s, background-color .25s;
}
.plate::after { content: ''; position: absolute; right: 22px; bottom: 22px; width: 22px; height: 22px; border-radius: 50%; background: var(--sky); box-shadow: 0 0 18px var(--sky); opacity: .85; }
.plate.on { border-color: #bfe0ff; box-shadow: 0 0 0 1px rgba(2, 13, 32, 0.6), 0 0 60px rgba(120, 190, 255, 0.7); }
.layers { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.layers li { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 4px 20px; padding: 18px 8px; border-bottom: 1px solid var(--line); cursor: default; transition: background .2s; }
.layers li:hover, .layers li:focus-within { background: rgba(10, 91, 181, 0.16); }
.layers strong { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; }
.layers span { color: var(--muted); }

/* Hardware und Wartung */
#hardware { background: var(--ink-900); border-block: 1px solid var(--line); }
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.panel { border: 1px solid var(--line); border-radius: 18px; padding: 30px 28px; background: rgba(2, 13, 32, 0.6); display: flex; flex-direction: column; gap: 22px; }
.panel h3 { font-size: 1.6rem; font-weight: 600; }
.choice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.opt { border-radius: 12px; padding: 18px 16px; border: 1px solid var(--line); background: rgba(10, 42, 92, 0.3); display: flex; flex-direction: column; gap: 6px; }
.opt b { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; color: var(--sky); }
.opt span { color: var(--muted); font-size: 0.95rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chips li { font-family: var(--font-mono); font-size: 0.78rem; padding: 7px 12px; border-radius: 8px; border: 1px dashed rgba(63, 162, 255, 0.5); color: var(--silver); }
.note { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

/* Kontakt */
#kontakt { background: radial-gradient(800px 420px at 20% 100%, rgba(10, 91, 181, 0.35), transparent 70%), var(--ink-950); }
.contact { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.contact h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 700; }
.contact .lead { color: var(--silver); margin-top: 16px; max-width: 30rem; }
.rows { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.rows li { display: grid; grid-template-columns: 6rem minmax(0, 1fr) auto; align-items: center; gap: 4px 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.rows .k { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.rows .v { font-size: 1.08rem; overflow-wrap: anywhere; }
.copy { font-family: var(--font-mono); font-size: 0.72rem; padding: 6px 12px; border-radius: 8px; border: 1px solid var(--line); background: transparent; color: var(--silver); cursor: pointer; }
.copy:hover { border-color: var(--sky); color: var(--text); }
.contact .cta-row { margin-top: 26px; }

footer { border-top: 1px solid var(--line); padding-block: 30px; background: var(--ink-950); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 32px; color: var(--muted); font-size: 0.86rem; }
footer p { min-width: 0; }

@media (max-width: 960px) {
  .cards { grid-template-columns: minmax(0, 1fr); perspective: none; }
  .solution, .contact, .duo { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .scene { width: 100%; opacity: 0.5; -webkit-mask-image: none; mask-image: none; }
  .stack { height: 360px; }
}
@media (max-width: 720px) {
  .nav a:not(.btn) { display: none; }
  .brand-sub { display: none; }
  .layers li { grid-template-columns: minmax(0, 1fr); }
  .choice { grid-template-columns: minmax(0, 1fr); }
  .rows li { grid-template-columns: minmax(0, 1fr) auto; }
  .rows .k { grid-column: 1 / -1; }
  .stack-3d { width: 210px; height: 210px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-copy, .stack-3d { animation: none; }
  .card { transition: none; }
}

/* Kontaktformular */
.contact-info .rows { margin-top: 30px; }
.rows .v a { text-decoration: none; }
.rows .v a:hover { text-decoration: underline; text-underline-offset: 3px; }
.panel.form { gap: 18px; }
.form h3 { font-size: 1.5rem; font-weight: 600; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field label { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text);
  background: rgba(10, 42, 92, 0.32); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px;
}
.field textarea { resize: vertical; min-height: 130px; }
.field select option { background: var(--ink-900); color: var(--text); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 3px rgba(63, 162, 255, 0.22); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.check { display: flex; gap: 12px; align-items: flex-start; }
.check input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--sky); flex: none; }
.check label { font-size: 0.9rem; color: var(--silver); }
.check a, .legal a { color: var(--sky); }
.form .btn { align-self: flex-start; }
.form .btn[disabled] { opacity: 0.6; cursor: progress; transform: none; }
.status { min-height: 1.5em; font-size: 0.97rem; }
.status.ok { color: #7fe3ae; }
.status.err { color: #ff9ca5; }

/* Fußzeile mit Rechtstexten */
footer .legal-nav { display: flex; gap: 22px; align-items: flex-start; }
footer .legal-nav a { color: var(--silver); text-decoration: none; }
footer .legal-nav a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

/* Impressum und Datenschutz */
.legal { padding-block: clamp(40px, 7vw, 84px); }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 700; }
.legal .stand { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.08em; color: var(--muted); margin-top: 10px; }
.legal h2 { font-size: 1.45rem; font-weight: 600; margin-top: 40px; margin-bottom: 10px; }
.legal h3 { font-size: 1.12rem; font-weight: 600; margin-top: 22px; margin-bottom: 6px; }
.legal p, .legal li { color: var(--silver); }
.legal p + p { margin-top: 12px; }
.legal ul { margin: 10px 0 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 6px; }
.legal a { overflow-wrap: anywhere; }
.legal .box { margin-top: 12px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: rgba(10, 42, 92, 0.25); }
.top .back { font-size: 0.95rem; color: var(--muted); text-decoration: none; }
.top .back:hover { color: var(--text); }
@media (max-width: 720px) { .grid2 { grid-template-columns: minmax(0, 1fr); } footer .legal-nav { gap: 18px; } }
