/* ============ Local Fonts (DSGVO-konform, kein CDN) ============ */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/Inter-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/Inter-Medium.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/Inter-SemiBold.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/Inter-Bold.woff2') format('woff2');
}

/* ============ Tokens ============ */
:root {
  --nexyo-teal: #00BFA6;
  --nexyo-teal-dark: #00a892;
  --nexyo-dark: #0F0F1E;
  --surface-light: #FAFAFA;
  --surface-white: #FFFFFF;
  --text-primary: #0F0F1E;
  --text-muted: #5A6477;
  --border-subtle: #E0E5EC;
  --mono-bg: #1A1F2E;
  --grade-a: #10B981;
  --grade-b: #F59E0B;
  --grade-c: #EF4444;

  --shadow-card: 0 1px 2px rgba(15,15,30,.04), 0 8px 24px rgba(15,15,30,.06);
  --shadow-card-hover: 0 1px 2px rgba(15,15,30,.06), 0 16px 40px rgba(15,15,30,.10);
  --radius: 12px;
  --radius-sm: 6px;
  --radius-pill: 999px;

  --container: 1200px;
  --pad-section: 80px;

  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* ============ Reset ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-primary);
  background: var(--surface-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding-left: 1.2em; }
a { color: var(--nexyo-teal); text-decoration: none; }
a:hover { color: var(--nexyo-teal-dark); text-decoration: underline; }

/* ============ Layout ============ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--pad-section) 0;
}
.section--alt { background: var(--surface-light); }

.section__head {
  max-width: 880px;
  margin: 0 0 56px;
}
.section__head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section__title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  color: var(--nexyo-teal);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.005em;
}

.lead {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-primary);
}
.muted { color: var(--text-muted); }
.small { font-size: 13px; }
.mono { font-family: var(--font-mono); }

/* ============ Nav ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 76px;
}
.nav__brand {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  color: var(--text-primary);
  text-decoration: none;
  flex-shrink: 0;
}
.nav__brand:hover { text-decoration: none; }
.nav__logo {
  display: block;
  height: 42px;
  width: auto;
}
.nav__brand-sub {
  font-size: 17px;
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: -0.005em;
  line-height: 1;
  padding-bottom: 8px;
}

.nav__links {
  display: flex;
  gap: 24px;
  margin-left: auto;
}
.nav__links a {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
}
.nav__links a:hover { color: var(--nexyo-teal); text-decoration: none; }

.nav__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 6px 24px 6px 10px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'><path d='M2 4l3 3 3-3' stroke='%235A6477' stroke-width='1.5' fill='none'/></svg>");
  background-repeat: no-repeat;
  background-position: right 6px center;
}
.lang:focus { outline: 2px solid var(--nexyo-teal); outline-offset: 2px; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background-color .12s ease, box-shadow .12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary {
  background: var(--nexyo-teal);
  color: #fff;
  box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 8px 24px rgba(0,191,166,.25);
}
.btn--primary:hover { background: var(--nexyo-teal-dark); color: #fff; }
.btn--ghost {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-subtle);
}
.btn--ghost:hover { background: var(--surface-light); color: var(--text-primary); }
.btn--sm { padding: 8px 14px; font-size: 13px; }
.btn--lg { padding: 16px 28px; font-size: 16px; }

/* ============ Hero ============ */
.hero {
  padding: 80px 0 96px;
  background:
    radial-gradient(circle at 85% 20%, rgba(0,191,166,.08) 0%, transparent 50%),
    linear-gradient(180deg, var(--surface-white) 0%, var(--surface-light) 100%);
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero__title {
  font-size: clamp(36px, 5.4vw, 60px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 14px 0 24px;
}
.hero__cta { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.hero__visual img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-subtle);
  background: var(--surface-white);
}

/* ============ Grid / Cards ============ */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--gov { margin-top: 48px; }

.card {
  background: var(--surface-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 1px 2px rgba(15,15,30,.03);
  transition: box-shadow .15s ease, transform .15s ease;
}
.section--alt .card { background: var(--surface-white); }
.card:hover { box-shadow: var(--shadow-card-hover); }

.card__title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.card__bullet {
  margin-top: 14px;
  padding: 12px 14px;
  background: var(--surface-light);
  border-left: 3px solid var(--nexyo-teal);
  border-radius: var(--radius-sm);
  font-size: 15px;
  color: var(--text-primary);
}
.section--alt .card__bullet { background: var(--surface-light); }

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
}
.tags li {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 10px;
  background: var(--mono-bg);
  color: var(--nexyo-teal);
  border-radius: var(--radius-pill);
}

.card--access .mono { color: var(--text-muted); margin: 4px 0 12px; }
.card--access .code {
  margin: 16px 0 0;
  background: var(--mono-bg);
  color: #cdd9e5;
  padding: 14px;
  border-radius: var(--radius-sm);
  overflow-x: auto;
  font-size: 12px;
  line-height: 1.5;
}
.card--access .code code { background: none; color: inherit; padding: 0; }

/* ============ Diagram ============ */
.diagram {
  margin-top: 40px;
  padding: 32px;
  background: var(--surface-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
.section--alt .diagram { background: var(--surface-white); }
.diagram--wide { padding: 16px; }

/* ============ Split ============ */
.split {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: start;
}
.split__visual img {
  border-radius: var(--radius);
  border: 1px solid var(--border-subtle);
  background: var(--surface-white);
  box-shadow: var(--shadow-card);
}
.defs { margin-top: 4px; }
.defs dt {
  font-weight: 600;
  font-size: 15px;
  margin-top: 14px;
  color: var(--text-primary);
}
.defs dt:first-child { margin-top: 0; }
.defs dd {
  margin: 2px 0 0;
  font-size: 14px;
  color: var(--text-muted);
}

/* ============ Lists ============ */
.list { padding-left: 1.1em; }
.list li { margin-bottom: 8px; font-size: 15px; }
.list li strong { color: var(--text-primary); }
.list--muted li { color: var(--text-muted); }
.list--plain { list-style: none; padding: 0; }
.list--plain li { margin-bottom: 8px; font-size: 14px; }

/* ============ Stats ============ */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 880px;
  margin: 0 auto 48px;
}
.stat {
  background: var(--surface-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--shadow-card);
}
.stat__num {
  display: block;
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--nexyo-dark);
  font-variant-numeric: tabular-nums;
}
.stat__label {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* ============ CTA ============ */
.cta {
  background:
    radial-gradient(circle at 50% 0%, rgba(0,191,166,.06) 0%, transparent 60%),
    var(--surface-white);
  text-align: center;
}
.cta__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============ Credits (Mission KI / beebucket) ============ */
.credits {
  background: var(--surface-light);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 32px 0;
}
.credits__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 980px;
}
.credits__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--surface-white);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--nexyo-teal);
}
.credits__text { flex: 1; }
.credits__lead {
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-primary);
}
.credits__lead strong { font-weight: 600; color: var(--nexyo-dark); }
.credits__source {
  font-size: 13px;
  color: var(--text-muted);
  margin: 6px 0 0;
}
.credits__source a { font-weight: 500; }
.credits__thanks {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}
.credits__thanks a { font-weight: 500; }

@media (max-width: 700px) {
  .credits__inner { flex-direction: column; align-items: flex-start; gap: 14px; }
}

/* ============ Footer ============ */
.footer {
  background: var(--nexyo-dark);
  color: #cdd9e5;
  padding: 48px 0 32px;
}
.footer a { color: #cdd9e5; }
.footer a:hover { color: var(--nexyo-teal); text-decoration: none; }
.footer__top {
  margin-bottom: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer__brand { display: inline-block; }
.footer__brand img { height: 32px; width: auto; display: block; }
.footer__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.footer__heading {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 14px;
}
.footer__note p { font-size: 13px; color: #8a96aa; }
.footer__note .muted { color: #5a6477; }

/* ============ Modal ============ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal[hidden] { display: none; }
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15,15,30,.55);
  backdrop-filter: blur(4px);
}
.modal__panel {
  position: relative;
  background: #fff;
  max-width: 640px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: 0 24px 64px rgba(0,0,0,.25);
}
.modal__panel h2 { font-size: 24px; font-weight: 700; margin-bottom: 16px; }
.modal__panel h3 { font-size: 16px; font-weight: 600; margin: 24px 0 8px; }
.modal__panel p { font-size: 14px; color: var(--text-muted); margin-bottom: 8px; }
.modal__panel p strong { color: var(--text-primary); }
.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: none;
  background: var(--surface-light);
  border-radius: var(--radius-sm);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: var(--text-muted);
}
.modal__close:hover { background: var(--border-subtle); color: var(--text-primary); }

/* ============ Responsive ============ */
@media (max-width: 1000px) {
  :root { --pad-section: 64px; }
  .hero { padding: 56px 0 72px; }
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
  .nav__links { display: none; }
}
@media (max-width: 600px) {
  :root { --pad-section: 48px; }
  .container { padding: 0 18px; }
  .stats { grid-template-columns: 1fr; gap: 12px; }
  .stat__num { font-size: 32px; }
  .footer__grid { grid-template-columns: 1fr; }
  .modal__panel { padding: 28px 22px; }
  .nav__inner { height: 64px; }
  .nav__logo { height: 32px; }
  .nav__brand-sub { display: none; }
}

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