/* Farb-/Layout-Variablen kompatibel zu deiner Hauptseite */
:root {
  --primary-color: #000;
  --secondary-color: #00D9FF;
  --text-light: #fff;
  --text-gray: #ababab;
  --bg-dark: #080808;
  --bg-card: #131313;
  --border: #2b2b2b;
  --border-soft: rgba(255, 255, 255, .08);
  --shadow: 0 18px 50px rgba(0, 0, 0, .38);
  --shadow-glow: 0 0 0 1px rgba(0, 217, 255, .12), 0 18px 45px rgba(0, 217, 255, .14);

  /* Identisch zur Hauptseite */
  --navbar-bg: rgba(0, 0, 0, 0.95);
  --shadow-md: 0 5px 20px rgba(0, 217, 255, 0.2);
  --glow-secondary: 0 0 20px rgba(0, 217, 255, 0.4), 0 0 40px rgba(0, 217, 255, 0.2);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text-light);
  background:
    radial-gradient(circle at top left, rgba(0, 217, 255, .08), transparent 30%),
    radial-gradient(circle at top right, rgba(255, 255, 255, .04), transparent 28%),
    var(--bg-dark);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
  background-size: 42px 42px;
  -webkit-mask-image: radial-gradient(circle at center, rgba(0, 0, 0, .85), transparent 75%);
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, .85), transparent 75%);
  opacity: .18;
}

/* ========================================
   NAVIGATION - Identisch zu style.css
   ======================================== */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: clamp(14px, 2vw, 20px) clamp(8%, 9vw, 10%);
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  background: var(--navbar-bg);
  z-index: 1000;
  transition: all 0.3s ease;
}

nav.scrolled {
  box-shadow: var(--shadow-md);
}

.logo {
  font-size: clamp(24px, 2.5vw, 28px);
  font-weight: 700;
  color: var(--secondary-color);
  text-decoration: none;
}

nav ul {
  display: flex;
  list-style: none;
  gap: clamp(24px, 3.2vw, 40px);
}

nav ul li a {
  text-decoration: none;
  color: var(--text-light);
  font-size: clamp(15px, 1.3vw, 16px);
  font-weight: 500;
  position: relative;
  transition: color .3s;
}

nav ul li a::after {
  content: '';
  width: 0;
  height: 3px;
  background: var(--secondary-color);
  position: absolute;
  left: 0;
  bottom: -6px;
  transition: width .3s;
}

nav ul li a:hover {
  color: var(--secondary-color);
}

nav ul li a:hover::after {
  width: 100%;
}

/* MOBILE MENU - Identisch zu style.css */
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 16px;
  background: rgba(255, 255, 255, .04);
  cursor: pointer;
  transition: transform .25s ease, background .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.menu-toggle:hover {
  transform: translateY(-1px);
  background: rgba(0, 217, 255, .08);
  border-color: rgba(0, 217, 255, .35);
  box-shadow: var(--glow-secondary);
}

.menu-toggle span {
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: var(--secondary-color);
  transition: .3s;
}

.menu-toggle.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(6, 8, 12, .55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
  z-index: 998;
}

.nav-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.page-head h1 {
  font-size: clamp(30px, 5vw, 54px);
  margin: 0 0 10px;
  line-height: 1.05;
}

.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  margin: 2vmin;
}

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

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

.card {
  grid-column: span 4;
  display: block;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .01)), var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 24px;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
  min-height: 100%;
}

@media (max-width:1100px) {
  .card {
    grid-column: span 4;
  }
}

@media (max-width:640px) {
  .card {
    grid-column: span 4;
  }
}

.card:hover,
.card:focus-visible {
  transform: translateY(-6px);
  border-color: rgba(0, 217, 255, .35);
  box-shadow: var(--shadow-glow);
}

.card:focus-visible {
  outline: none;
}

.card::after {
  content: "";
  position: absolute;
  inset: auto 18px 18px auto;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .18), rgba(255, 255, 255, 0) 60%), rgba(0, 217, 255, .08);
  border: 1px solid rgba(0, 217, 255, .18);
  opacity: 0;
  transform: scale(.9);
  transition: opacity .2s ease, transform .2s ease;
}

.card:hover::after,
.card:focus-visible::after {
  opacity: 1;
  transform: scale(1);
}

.card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 100%;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(0, 217, 255, .08);
  border: 1px solid rgba(0, 217, 255, .16);
  color: var(--secondary-color);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.card-arrow {
  color: var(--secondary-color);
  font-size: 15px;
}

.title {
  font-size: clamp(20px, 2.2vw, 24px);
  font-weight: 800;
  margin: 0;
  line-height: 1.15;
}

.desc {
  color: var(--text-gray);
  font-size: 15px;
  line-height: 1.65;
  margin: 0;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.chip {
  font-size: 12px;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, .03);
}

.card-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--secondary-color);
  font-weight: 800;
  letter-spacing: .02em;
}

.card-link::after {
  content: "→";
  transition: transform .2s ease;
}

.card:hover .card-link::after,
.card:focus-visible .card-link::after {
  transform: translateX(4px);
}

/* ========================================
   RESPONSIVE - Mobile Menu identisch zu style.css
   ======================================== */
@media (max-width: 768px) {
  nav {
    padding: clamp(12px, 1.8vw, 15px) 5%;
  }

  .menu-toggle {
    display: inline-flex;
  }

  nav ul.nav-menu {
    position: fixed;
    top: 18px;
    right: 18px;
    width: min(320px, calc(100vw - 36px));
    height: calc(100vh - 36px);
    background: rgba(10, 12, 16, .96);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 28px;
    flex-direction: column;
    justify-content: flex-start;
    gap: 14px;
    padding: 92px 22px 22px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
    transform: translateX(120%);
    opacity: 0;
    visibility: hidden;
    transition: transform .3s ease, opacity .3s ease, visibility .3s ease;
    z-index: 999;
  }

  nav ul.nav-menu.active {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
  }

  nav ul.nav-menu li a {
    display: block;
    padding: 12px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .03);
  }

  nav ul.nav-menu li a:hover {
    background: rgba(0, 217, 255, .08);
  }

  .grid {
    margin-top: 22px;
  }
}

@media (max-width: 640px) {
  .container {
    padding-inline: 4.5vw;
  }

  .page-head h1 {
    font-size: clamp(28px, 9vw, 38px);
  }

  .card-body {
    padding: 20px;
  }
}