/* NEXTAPP GmbH – CI: Poppins, dunkler Hintergrund, Verlauf #00ff00 → #1376c7 */

@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/poppins-500.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/poppins-600.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/poppins-700.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 800; font-display: swap; src: url("fonts/poppins-800.woff2") format("woff2"); }

:root {
  --bg: #0c0f16;
  --bg-elev: #13161d;
  --surface: rgba(255, 255, 255, 0.03);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f2f4f7;
  --muted: #9aa1ad;
  --green: #00ff00;
  --blue: #1376c7;
  --gradient: linear-gradient(to right, var(--green), var(--blue));
  --radius: 16px;
  --max: 1120px;
  color-scheme: dark;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }

::selection { background: var(--green); color: #000; }

:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 6px; }

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

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Hintergrund ---------- */

.backdrop { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }

.backdrop::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 100%);
}

.orb { position: absolute; border-radius: 50%; filter: blur(110px); opacity: 0.28; }
.orb--green { width: 520px; height: 520px; background: var(--green); top: -180px; left: -140px; opacity: 0.16; animation: drift 18s ease-in-out infinite alternate; }
.orb--blue { width: 620px; height: 620px; background: var(--blue); bottom: -260px; right: -180px; animation: drift 22s ease-in-out infinite alternate-reverse; }

@keyframes drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(60px, 40px, 0); }
}

/* ---------- Header ---------- */

.site-header { padding: 28px 0; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo img { height: 26px; width: auto; }

.header-link {
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: var(--muted);
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.header-link:hover { color: var(--text); border-color: var(--border-strong); }

/* ---------- Hero ---------- */

.hero { flex: 1; display: flex; align-items: center; padding: 64px 0 96px; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px 6px 12px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  margin-bottom: 32px;
}

.status__dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.status__dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s ease-out infinite;
}

@keyframes pulse {
  from { transform: scale(1); opacity: 0.7; }
  to { transform: scale(3); opacity: 0; }
}

.hero h1 {
  margin: 0 0 24px;
  font-size: clamp(2.6rem, 8vw, 5.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.lead { max-width: 580px; margin: 0 0 40px; font-size: clamp(1rem, 2.2vw, 1.15rem); color: var(--muted); }
.lead strong { color: var(--text); font-weight: 600; }

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  background: var(--bg);
  isolation: isolate;
  transition: transform 0.2s;
  max-width: 100%;
}
.btn::before {
  content: "";
  position: absolute;
  inset: -1.5px;
  z-index: -2;
  border-radius: inherit;
  background: var(--gradient);
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--bg);
  transition: opacity 0.25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:hover::after { opacity: 0.82; }
.btn svg { flex-shrink: 0; transition: transform 0.2s; }
.btn:hover svg { transform: translateX(3px); }
.btn span { overflow-wrap: anywhere; }

/* ---------- Leistungen ---------- */

.services { padding: 0 0 112px; }

.eyebrow {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
}

.section-title { margin: 0 0 40px; font-size: clamp(1.6rem, 4vw, 2.25rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }

.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

.card {
  position: relative;
  padding: 28px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.25s, transform 0.25s, background 0.25s;
}
.card:hover { border-color: var(--border-strong); background: rgba(255, 255, 255, 0.05); transform: translateY(-3px); }

.card__num { display: block; margin-bottom: 20px; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; }
.card h3 { margin: 0 0 8px; font-size: 1.1rem; font-weight: 600; }
.card p { margin: 0; font-size: 14px; line-height: 1.65; color: var(--muted); }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--border); padding: 32px 0; font-size: 14px; color: var(--muted); }
.site-footer .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.site-footer address { font-style: normal; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer a { text-decoration: none; transition: color 0.2s; }
.site-footer a:hover, .site-footer a[aria-current="page"] { color: var(--text); }

/* ---------- Rechtstexte ---------- */

.legal { flex: 1; padding: 48px 0 112px; }
.legal .container { max-width: 780px; }

.back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 32px; font-size: 14px; color: var(--muted); text-decoration: none; }
.back:hover { color: var(--text); }

.legal h1 { margin: 0 0 40px; font-size: clamp(2rem, 6vw, 3rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; overflow-wrap: break-word; hyphens: auto; }
.legal h2 { margin: 48px 0 12px; font-size: 1.35rem; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; hyphens: auto; }
.legal h3 { margin: 32px 0 8px; font-size: 1.05rem; font-weight: 600; line-height: 1.4; }
.legal p, .legal li { color: #c3c8d1; overflow-wrap: break-word; }
.legal p { margin: 0 0 16px; }
.legal ul, .legal ol { margin: 0 0 16px; padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--text); text-decoration-color: var(--green); text-underline-offset: 3px; }
.legal a:hover { color: var(--green); }
.legal .h2-first { margin-top: 0; }
.legal .source { margin-top: 48px; font-size: 13px; color: var(--muted); }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .site-header { padding: 20px 0; }
  .logo img { height: 22px; }
  .hero { padding: 40px 0 72px; }
  .grid { grid-template-columns: 1fr; }
  .btn { padding: 14px 22px; font-size: 15px; }
  .site-footer .container { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
