* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(125% 120% at 50% 0%, #0a0f1d 0%, #06070f 52%, #020205 100%);
  background-attachment: fixed;
  color: #e8eaf4;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
}
#bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.wrap { position: relative; z-index: 1; }

/* ---------- preloader ---------- */
#preloader { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(120% 120% at 50% 40%, #0a0f1d 0%, #05060c 60%, #020205 100%);
  transition: opacity .7s ease; }
#preloader.done { opacity: 0; pointer-events: none; }
#preloader .loader { position: relative; width: 132px; height: 132px; }
#preloader svg { width: 100%; height: 100%; transform: rotate(-90deg); }
#preloader .track { fill: none; stroke: #ffffff14; stroke-width: 3; }
#preloader .bar { fill: none; stroke: #22d3ee; stroke-width: 3; stroke-linecap: round;
  filter: drop-shadow(0 0 6px #22d3ee99); transition: stroke-dashoffset .12s linear; }
#preloader .pct { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: 'IBM Plex Mono', monospace; font-size: 22px; letter-spacing: 0.04em; color: #e8eaf4; }

/* ---------- nav ---------- */
nav { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(20px, 5vw, 64px);
  background: linear-gradient(180deg, rgba(6,7,15,0.72), rgba(6,7,15,0.1));
  backdrop-filter: blur(9px); }
.logo { display: flex; align-items: center; gap: 9px; font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 18px; letter-spacing: -0.02em; text-decoration: none; color: #fff; }
#logo { display: block; }
.navlinks { display: flex; gap: 26px; font-size: 14px; color: #aab0c8; align-items: center; }
.navlinks a { color: inherit; text-decoration: none; transition: color .2s; }
.navlinks a:hover, .navlinks a.active { color: #fff; }
.cta-pill { font-size: 14px; padding: 9px 17px; border-radius: 999px; border: 1px solid #ffffff26; background: #ffffff0a; color: #fff; text-decoration: none; transition: background .2s; white-space: nowrap; }
.cta-pill:hover { background: #ffffff1a; }
.hamburger { display: none; flex-direction: column; gap: 5px; width: 38px; height: 32px; padding: 7px; background: none; border: none; cursor: pointer; }
.hamburger span { display: block; height: 2px; width: 100%; background: #e8eaf4; border-radius: 2px; transition: transform .25s, opacity .25s; }
#nav.open .hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#nav.open .hamburger span:nth-child(2) { opacity: 0; }
#nav.open .hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; z-index: 1; min-height: 100dvh; display: flex; flex-direction: column; justify-content: flex-end; padding: 0 clamp(20px, 5vw, 64px) 6vh;
  background: linear-gradient(to top, rgba(2,4,10,0.92) 0%, rgba(2,4,10,0.5) 20%, rgba(2,4,10,0) 46%); }
.hero-inner { width: 100%; max-width: 940px; }
.eyebrow { font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; letter-spacing: 0.24em; text-transform: uppercase; color: #7dd3fc; margin-bottom: 20px; }
h1 { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: clamp(34px, 6.2vw, 70px); line-height: 1.03; letter-spacing: -0.03em; margin: 0 0 22px; }
h1 .muted { color: #868bab; }
.sub { font-size: clamp(15px, 1.8vw, 18px); line-height: 1.6; color: #bbc0d4; max-width: 600px; margin: 0 0 34px; }
.actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn { font-size: 15px; padding: 13px 22px; border-radius: 12px; text-decoration: none; font-weight: 500; transition: filter .2s, background .2s; display: inline-block; }
.btn-primary { background: linear-gradient(135deg, #22d3ee, #818cf8); color: #04060f; box-shadow: 0 10px 34px -10px #4f8cffaa; border: none; cursor: pointer; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { border: 1px solid #ffffff2b; color: #e8eaf4; }
.btn-ghost:hover { background: #ffffff10; }
.scrollhint { padding: 18px clamp(20px, 5vw, 64px) 0; font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: 0.1em; color: #6a708f; }

/* ---------- content / sections ---------- */
.content { position: relative; z-index: 2;
  background: linear-gradient(180deg, rgba(5,6,11,0) 0%, rgba(5,6,11,0.94) 7%, rgba(5,6,11,0.96) 100%); }
section[id] { scroll-margin-top: 74px; }
.section { padding: 60px clamp(20px, 5vw, 64px); }
.section-inner { max-width: 1000px; margin: 0 auto; }
.section .eyebrow { margin-bottom: 14px; }
.section h2 { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: clamp(24px, 3.6vw, 36px); letter-spacing: -0.02em; margin: 0 0 12px; }
.section .lead { color: #9aa0bd; font-size: 15.5px; line-height: 1.6; max-width: 560px; margin: 0; }

/* leistungen */
.leistungen { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1px; background: #ffffff10; border: 1px solid #ffffff12; border-radius: 16px; overflow: hidden; }
.leistungen li { background: #0a0d18; padding: 22px; }
.leistungen li b { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 16px; display: block; margin-bottom: 6px; letter-spacing: -0.01em; }
.leistungen li span { font-size: 13.5px; color: #9aa0bd; line-height: 1.5; }

/* cards */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 30px; }
.card { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 13px; padding: 26px; border: 1px solid #ffffff14; border-radius: 18px; background: linear-gradient(160deg, #0e1322 0%, #0a0d18 100%); text-decoration: none; color: inherit; transition: border-color .2s, transform .2s, box-shadow .2s; }
.card:hover { border-color: #22d3ee55; transform: translateY(-3px); box-shadow: 0 18px 50px -24px #22d3ee55; }
.card .accent { position: absolute; top: 0; left: 0; height: 3px; width: 100%; background: linear-gradient(90deg, #22d3ee, #818cf8); opacity: 0; transition: opacity .2s; }
.card:hover .accent { opacity: 1; }
.card .tag { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: #7dd3fc; }
.card h3 { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 22px; margin: 0; letter-spacing: -0.02em; }
.card p { font-size: 14.5px; line-height: 1.6; color: #aeb4c9; margin: 0; flex: 1; }
.card .url { display: flex; align-items: center; justify-content: space-between; font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; color: #cfd4e6; margin-top: 6px; }
.card .url .arrow { transition: transform .2s; }
.card:hover .url .arrow { transform: translateX(4px); }

/* experience */
.exp { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 30px; }
.exp .item { border: 1px solid #ffffff12; border-radius: 16px; padding: 24px; background: #0a0d18; }
.exp .item h3 { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 18px; margin: 0 0 8px; letter-spacing: -0.01em; }
.exp .item p { font-size: 14px; line-height: 1.6; color: #aeb4c9; margin: 0; }

/* contact form */
.form { max-width: 560px; margin-top: 28px; display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 13px; color: #b8bdd2; font-family: 'IBM Plex Mono', monospace; letter-spacing: 0.04em; }
.field input, .field textarea { background: #0a0d18; border: 1px solid #ffffff1c; border-radius: 11px; padding: 13px 14px; color: #e8eaf4; font-family: inherit; font-size: 15px; transition: border-color .2s; }
.field input:focus, .field textarea:focus { outline: none; border-color: #22d3ee88; }
.field textarea { min-height: 130px; resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 13px; color: #8b90ab; margin: 4px 0 0; }
.form-msg { font-size: 14px; color: #7dd3fc; margin: 6px 0 0; min-height: 18px; }
.contact-alt { margin-top: 24px; font-size: 14px; color: #9aa0bd; }
.contact-alt a { color: #cfd4e6; }

/* page header (legal pages) */
.pagehead { position: relative; z-index: 1; padding: clamp(48px, 9vw, 96px) clamp(20px, 5vw, 64px) 8px; max-width: 1000px; margin: 0 auto; }
.pagehead .eyebrow { margin-bottom: 16px; }
.pagehead h1 { font-size: clamp(32px, 5.5vw, 56px); margin-bottom: 16px; }
.pagehead .lead { color: #b8bdd2; font-size: clamp(15px, 1.8vw, 18px); line-height: 1.6; max-width: 620px; margin: 0; }
.pagebody { position: relative; z-index: 1; padding: 32px clamp(20px, 5vw, 64px) 80px; max-width: 1000px; margin: 0 auto; }

/* legal */
.legal h2 { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 19px; margin: 30px 0 8px; letter-spacing: -0.01em; }
.legal p, .legal li { font-size: 14.5px; line-height: 1.7; color: #b8bdd2; }
.legal .ph { color: #f0abfc; font-family: 'IBM Plex Mono', monospace; font-size: 13.5px; }
.legal .hint { font-size: 13px; color: #8b90ab; border-left: 2px solid #ffffff22; padding-left: 12px; margin: 10px 0 0; }

/* footer */
footer { position: relative; z-index: 2; background: #04050a; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 22px clamp(20px, 5vw, 64px); font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: #6a708f; border-top: 1px solid #ffffff0d; }
.foot-links { display: flex; gap: 20px; }
.foot-links a { color: #8b90ab; text-decoration: none; }
.foot-links a:hover { color: #fff; }

a:focus-visible, .btn:focus-visible, .card:focus-visible, input:focus-visible, textarea:focus-visible, button:focus-visible { outline: 2px solid #7dd3fc; outline-offset: 3px; border-radius: 8px; }

/* ---------- responsive ---------- */
@media (max-width: 760px) {
  .hamburger { display: flex; }
  .cta-pill { display: none; }
  .navlinks { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; align-items: stretch;
    background: rgba(8,9,16,0.98); backdrop-filter: blur(10px); border-top: 1px solid #ffffff14; padding: 6px 0; }
  #nav.open .navlinks { display: flex; }
  .navlinks a { padding: 13px clamp(20px, 5vw, 64px); font-size: 16px; }
  .grid, .exp { grid-template-columns: 1fr; }
  footer { justify-content: flex-start; }
}
