:root {
  /* Ai flow Basisfarben */
  --af-bg: #0d1117;
  --af-bg-alt: #11151c;
  --af-card: #111827;
  --af-border: rgba(255, 255, 255, 0.06);
  --af-primary: #00b4d8;
  --af-primary-soft: rgba(0, 180, 216, 0.12);
  --af-text: #e5e7eb;
  --af-text-muted: #9ca3af;
  --af-white: #ffffff;

  /* Navigation / Layout (KitCoins-Stil) */
  --bg: #0d1117;
  --text: #e6f1f8;
  --brand-cyan: #00b4d8;
  --nav-h: 72px;
  --nav-blur: 10px;
  --nav-bg: rgba(10, 14, 28, 0.8);
  --nav-border: rgba(255, 255, 255, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Grundlayout & globaler Hintergrund */

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  color: var(--af-text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  position: relative;
  background: #020617; /* Fallback-Farbe */
}

/* Cinematic-Background über die komplette Seite */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.95)),
    url("/img/hero-ai-flow.png");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

/* Cyan / Rot Glow-Layer */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 20%, rgba(0, 180, 216, 0.25), transparent 50%),
    radial-gradient(circle at 85% 60%, rgba(239, 68, 68, 0.25), transparent 55%);
  mix-blend-mode: screen;
  opacity: 0.7;
}

/* Layout */

.af-container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

.af-section {
  padding: 80px 0;
}

/* leicht transparente Alt-Sektionen, damit Hintergrund durchscheint */
.af-section-alt {
  background: rgba(17, 21, 28, 0.78);
}

.af-section-head {
  max-width: 720px;
  margin: 0 auto 40px;
  text-align: center;
}

.af-section-head h2 {
  font-size: 2.4rem;
  margin-bottom: 12px;
}

.af-section-head p {
  color: var(--af-text-muted);
}

/* Header-CTA (Text rechts neben Button im Header) */

.af-header-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.af-header-hint {
  font-size: 0.7rem;
  color: var(--af-text-muted);
}

/* Buttons */

.af-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease,
    transform 0.1s ease;
}

.af-btn-primary {
  background: var(--af-primary);
  color: #020617;
}

.af-btn-primary:hover {
  background: #22c5eb;
  transform: translateY(-1px);
}

.af-btn-secondary {
  background: transparent;
  color: var(--af-text);
  border-color: rgba(148, 163, 184, 0.5);
}

.af-btn-secondary:hover {
  border-color: var(--af-primary);
}

/* Hero – nur Layout, Hintergrund kommt global von body::before */

.af-hero {
  position: relative;
  min-height: 80vh;
  padding: 120px 0 80px; /* Platz für Nav-Pill oben */
  display: flex;
  align-items: center;
  z-index: 1;
  overflow: visible;
}

/* vorheriger Hero-Background wird deaktiviert */
.af-hero::before,
.af-hero::after {
  content: none !important;
}

.af-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.2fr);
  gap: 40px;
  align-items: center;
}

.af-hero-content h1 {
  font-size: 2.7rem;
  line-height: 1.1;
  margin-bottom: 16px;
}

.af-hero-sub {
  color: var(--af-text-muted);
  margin-bottom: 16px;
  max-width: 560px;
}

.af-hero-highlights {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  color: var(--af-text-muted);
}

.af-hero-highlights li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 6px;
}

.af-hero-highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--af-primary);
}

.af-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.af-hero-note {
  font-size: 0.8rem;
  color: var(--af-text-muted);
}

/* Hero visual */

.af-hero-visual {
  position: relative;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.af-hero-orb {
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #00b4d8 0, transparent 60%);
  opacity: 0.35;
  filter: blur(6px);
}

.af-hero-card {
  position: relative;
  background: radial-gradient(circle at top, #1f2937 0, #020617 80%);
  border-radius: 24px;
  padding: 22px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.8);
  max-width: 320px;
}

.af-hero-card h2 {
  font-size: 1.2rem;
  margin-top: 0;
}

.af-hero-card p {
  font-size: 0.9rem;
  color: var(--af-text-muted);
  margin-bottom: 10px;
}

.af-hero-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.5);
  font-size: 0.75rem;
  color: var(--af-primary);
}

/* Cards / Grid */

.af-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 32px;
}

.af-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.af-card {
  background: var(--af-card);
  border-radius: 18px;
  padding: 16px 18px;
  border: 1px solid var(--af-border);
}

.af-card h3 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.af-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--af-text-muted);
}

/* Split */

.af-section-split {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 32px;
  align-items: flex-start;
}

.af-list {
  list-style: none;
  padding: 0;
  margin: 16px 0;
  color: var(--af-text-muted);
  font-size: 0.95rem;
}

.af-list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 6px;
}

.af-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--af-primary);
}

.af-ghost-panel {
  border-radius: 18px;
  padding: 18px;
  border: 1px dashed rgba(148, 163, 184, 0.5);
  background: radial-gradient(
    circle at top,
    rgba(0, 180, 216, 0.08),
    rgba(15, 23, 42, 0.9)
  );
  font-size: 0.9rem;
}

/* Info / Small */

.af-info-box {
  margin-top: 24px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.45);
  font-size: 0.86rem;
  color: var(--af-text-muted);
}

.af-info-box a {
  color: var(--af-primary);
  text-decoration: none;
}

.af-info-box a:hover {
  text-decoration: underline;
}

.af-small {
  font-size: 0.85rem;
  color: var(--af-text-muted);
}

/* Roadmap */

.af-roadmap {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.af-roadmap-item {
  border-radius: 18px;
  border: 1px solid var(--af-border);
  background: var(--af-card);
  padding: 16px 18px;
}

.af-roadmap-item h3 {
  margin-top: 0;
  margin-bottom: 6px;
}

.af-roadmap-item ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
  color: var(--af-text-muted);
}

.af-roadmap-item li {
  margin-bottom: 4px;
}

/* Contact */

.af-contact-box {
  border-radius: 18px;
  padding: 18px;
  border: 1px solid var(--af-border);
  background: var(--af-card);
  font-size: 0.9rem;
}

.af-contact-box a {
  color: var(--af-primary);
  text-decoration: none;
}

/* Team */

.af-team-grid {
  margin-top: 28px;
}

/* Footer (alte Ai-flow-Variante – aktuell von k-footer überlagert) */

.af-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  background: #020617;
  padding: 16px 0;
  font-size: 0.8rem;
  color: var(--af-text-muted);
}

.af-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.af-footer a {
  color: var(--af-primary);
  text-decoration: none;
}

.af-footer a:hover {
  text-decoration: underline;
}

.af-footer-sep {
  margin: 0 6px;
}

/* Nav toggle (mobile) – für die alte .af-nav Struktur (falls noch im Einsatz) */

.af-nav-toggle {
  display: none;
  width: 38px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.9);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  padding: 0;
  cursor: pointer;
}

.af-nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--af-text);
}

/* Responsive */

@media (max-width: 960px) {
  .af-hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .af-hero-visual {
    order: -1;
    margin-bottom: 20px;
  }

  .af-section-split {
    grid-template-columns: minmax(0, 1fr);
  }

  .af-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .af-roadmap {
    grid-template-columns: minmax(0, 1fr);
  }

  .af-header-inner {
    gap: 12px;
  }

  .af-header-cta {
    display: none;
  }

  /* alte .af-nav Mobile-Variante – falls noch irgendwo verwendet */
  .af-nav {
    position: fixed;
    inset: 58px 16px auto 16px;
    flex-direction: column;
    padding: 12px 14px;
    background: rgba(15, 23, 42, 0.98);
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    transform-origin: top;
    transform: scaleY(0.6);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
  }

  .af-nav a {
    padding: 6px 0;
  }

  .af-header.af-nav-open .af-nav {
    opacity: 1;
    pointer-events: auto;
    transform: scaleY(1);
  }

  .af-nav-toggle {
    display: inline-flex;
  }
}

@media (max-width: 640px) {
  .af-section {
    padding: 64px 0;
  }

  .af-hero {
    padding-top: 100px;
  }

  .af-grid-4,
  .af-grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .af-footer-inner {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }
}

/* Logo in normalen Content-Bereichen (nicht Header-Pill) */

.af-logo-wrap {
  display: flex;
  align-items: center;
}

.af-logo-img {
  height: 72px;
  width: auto;
  display: block;
}

/* ============================
   NAVIGATION – KITCOINS STYLE
   ============================ */

/* Nav-Container */

.k-nav {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1240px, calc(100% - 32px));
  z-index: 9000;
}

.k-nav__wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  height: var(--nav-h);
  padding: 10px 18px;
  border-radius: 18px;
  backdrop-filter: saturate(120%) blur(var(--nav-blur));
  background: var(--nav-bg);
  outline: 1px solid var(--nav-border);
}

/* Brand/Logo im Nav-Pill */

.k-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
  font-weight: 900;
  letter-spacing: 0.4px;
}

.k-logo {
  width: 80px;
  height: 80px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 4px;
}

.k-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Links */

.k-nav__links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.k-nav__links a {
  text-decoration: none;
  position: relative;
  color: #fff;
  opacity: 0.9;
  padding: 6px 4px;
  font-size: 0.95rem;
}

.k-nav__links a:hover {
  opacity: 1;
}

.k-nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #00c6ff, #7a5cff);
  opacity: 0;
  transform: scaleX(0.6);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.k-nav__links a:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

/* CTA rechts */

.k-nav__cta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.k-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.k-btn--primary {
  background: linear-gradient(135deg, #00b4d8, #7a2d87);
  color: #0d1117;
  box-shadow: 0 8px 24px rgba(0, 180, 216, 0.35);
}

.k-btn--primary:hover {
  box-shadow: 0 10px 30px rgba(0, 180, 216, 0.45);
  transform: translateY(-1px);
}

/* Burger */

.k-burger {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--nav-border);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  position: relative;
}

.k-burger__bar {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.2s;
}

.k-burger__bar:nth-child(1) {
  top: 13px;
}
.k-burger__bar:nth-child(2) {
  top: 20px;
}
.k-burger__bar:nth-child(3) {
  top: 27px;
}

/* Burger aktiv */

.k-nav.is-open .k-burger__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.k-nav.is-open .k-burger__bar:nth-child(2) {
  opacity: 0;
}
.k-nav.is-open .k-burger__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile-Menü */

@media (max-width: 1100px) {
  :root {
    --nav-h: 60px;
  }

  .k-nav__links {
    position: absolute;
    top: calc(100% + 8px);
    left: 16px;
    right: 16px;
    display: grid;
    gap: 6px;
    padding: 10px;
    background: #10151d;
    border: 1px solid #182233;
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
    transform: translateY(-6px) scale(0.98);
    transform-origin: top;
    opacity: 0;
    pointer-events: none;
    text-align: center;
    z-index: 6100;
  }

  .k-nav__links.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  .k-burger {
    display: block;
  }
}

/* ===== FOOTER (KitCoins-Stil) ===== */

.k-footer {
  background: #0f141b;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: #b9c4d1;
  padding: 32px 0;
  margin-top: 80px;
}

.k-footer .wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.k-footer__grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: flex-start;
}

.k-footer__logo {
  margin-bottom: 10px;
}

.k-footer__brand > div,
.k-footer__brand > small {
  line-height: 1.5;
}

.k-footer__copy {
  display: block;
  opacity: 0.7;
  margin-top: 6px;
}

.k-footer a {
  color: #8fb4ff;
  text-decoration: none;
}

.k-footer a:hover {
  text-decoration: underline;
}

.k-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-content: flex-start;
}

.k-footer__nav a {
  padding: 6px 0;
  font-weight: 600;
  color: #d7e2ef;
  opacity: 0.9;
}

.k-footer__nav a:hover {
  opacity: 1;
  text-decoration: underline;
}

@media (max-width: 860px) {
  .k-footer__grid {
    grid-template-columns: 1fr;
  }
}
