:root {
  --bg: #050509;
  --bg-alt: #0b0b12;
  --card: rgba(255, 255, 255, 0.04);
  --card-strong: rgba(255, 255, 255, 0.08);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --accent: #a855ff;
  --accent-soft: rgba(168, 85, 255, 0.25);
  --text: #f9fafb;
  --muted: #9ca3af;
  --danger: #f97373;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --shadow-soft: 0 24px 80px rgba(0, 0, 0, 0.6);
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
}

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

html,
body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at top, #1f2937 0, #02010a 45%, #000 100%);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.section-alt {
  background: radial-gradient(circle at top left, #111827 0, #02010a 55%);
}

.section-header {
  text-align: left;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: 2.4rem;
  letter-spacing: -0.04em;
  margin: 8px 0 10px;
}

.section-subtitle {
  max-width: 520px;
  color: var(--muted);
  font-size: 0.98rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: linear-gradient(to bottom, rgba(5, 5, 9, 0.9), rgba(5, 5, 9, 0.6), transparent);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
}

.logo {
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.logo span {
  color: var(--accent);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 32px;
}

.main-nav {
  display: flex;
  gap: 20px;
  font-size: 0.9rem;
}

.main-nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 6px 0;
  position: relative;
  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: var(--text);
}

.info-link {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: radial-gradient(circle at top left, rgba(168, 85, 255, 0.18), transparent);
}

.social-links {
  display: flex;
  gap: 14px;
  align-items: center;
}

.social-link {
  width: 20px;
  height: 20px;
  color: var(--muted);
  transition: color 0.2s ease, transform 0.2s ease;
}

.social-link:hover {
  color: var(--accent);
  transform: translateY(-2px);
}

.social-link svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 100;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

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

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

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

/* Hero */
.hero {
  padding: 80px 0 60px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.7rem;
  color: var(--muted);
}

.hero-text h1 {
  font-size: 3.1rem;
  line-height: 1.05;
  letter-spacing: -0.06em;
  margin: 10px 0 16px;
}

.hero-subtitle {
  color: var(--muted);
  max-width: 520px;
  font-size: 0.98rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 26px 0 24px;
}

.btn {
  border-radius: 999px;
  padding: 10px 22px;
  font-size: 0.9rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: 0.12s ease;
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent), #6366f1);
  color: #fff;
}

.btn.ghost {
  background: rgba(15, 23, 42, 0.7);
  border-color: rgba(148, 163, 184, 0.4);
  color: var(--text);
}

.hero-meta {
  display: flex;
  gap: 24px;
}

.meta-label {
  font-weight: 600;
  font-size: 1.1rem;
}

.meta-text {
  font-size: 0.8rem;
  color: var(--muted);
}

/* Visuals */
.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.glass-card {
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at top left, rgba(168, 85, 255, 0.22), rgba(15, 23, 42, 0.96));
  border: 1px solid var(--border-subtle);
  padding: 22px;
  position: relative;
  overflow: hidden;
}

.glass-card.large {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 220px;
}

.glass-card-image img {
  width: 130px;
  filter: drop-shadow(0 0 15px rgba(168, 85, 255, 0.3));
}

.glass-card.small {
  background: radial-gradient(circle at top, rgba(37, 99, 235, 0.18), rgba(15, 23, 42, 0.96));
  padding: 18px;
}

.glass-stack {
  display: grid;
  gap: 12px;
}

/* Grids */
.grid {
  display: grid;
  gap: 24px;
}

.services-grid,
.work-grid {
  grid-template-columns: repeat(3, 1fr);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

/* Cards */
.card {
  background: var(--card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  padding: 20px;
}

.bullet-list {
  list-style: none;
  padding: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.bullet-list li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 4px;
}

.bullet-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* --- WORK CARDS (REVISED) --- */
.work-card {
  background: var(--card-strong);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  /* Zeigt Klickbarkeit an */
  transition: transform 0.3s ease;
}

.work-img {
  width: 100%;
  height: 240px;
  overflow: hidden;
}

.work-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  /* SCHWARZ-WEISS STANDARD */
  transition: filter 0.5s ease, transform 0.5s ease;
}

.work-card:hover {
  transform: translateY(-5px);
}

.work-card:hover .work-img img {
  filter: grayscale(0%);
  /* FARBE BEIM HOVERN */
  transform: scale(1.05);
}

.work-content {
  padding: 18px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.work-tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2px 8px;
  border-radius: 99px;
  width: fit-content;
  margin-bottom: 10px;
}

.work-meta {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: auto;
}

/* --- LIGHTBOX (NEW) --- */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 5, 9, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  max-width: 85%;
  max-height: 80vh;
  position: relative;
}

.lightbox-content img {
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 30px;
  font-size: 2.5rem;
  color: #fff;
  cursor: pointer;
  z-index: 1001;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  padding: 20px;
  cursor: pointer;
  border-radius: 50%;
  font-size: 1.2rem;
  transition: background 0.2s;
  z-index: 1001;
}

.lightbox-nav:hover {
  background: var(--accent);
}

.lightbox-nav.prev {
  left: 40px;
}

.lightbox-nav.next {
  right: 40px;
}

/* Stats & Form */
.stat-block {
  background: var(--card);
  border-radius: var(--radius-md);
  padding: 12px;
  margin-bottom: 10px;
  border: 1px solid var(--border-subtle);
}

.contact-form {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--border-subtle);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.field input,
.field textarea {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-subtle);
  color: #fff;
  padding: 12px;
  border-radius: 12px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 20px 0;
  margin-top: 40px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--muted);
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal.delay-1 {
  transition-delay: 0.1s;
}

.reveal.delay-2 {
  transition-delay: 0.2s;
}

/* Responsive */
@media (max-width: 960px) {
  .menu-toggle {
    display: flex;
  }

  .header-right {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(5, 5, 9, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 99;
  }

  .header-right.active {
    right: 0;
  }

  .main-nav {
    flex-direction: column;
    align-items: center;
    font-size: 1.5rem;
    gap: 30px;
  }

  .social-links {
    margin-top: 40px;
    justify-content: center;
    gap: 24px;
  }

  .social-links .social-link {
    width: 28px;
    height: 28px;
  }

  .hero-inner,
  .grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .services-grid,
  .work-grid {
    grid-template-columns: 1fr;
  }

  .work-img img {
    filter: grayscale(0%);
  }

  /* Always show color on mobile */

  .lightbox-content {
    max-width: 100%;
    max-height: 100vh;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .lightbox-content img {
    border-radius: 0;
    max-height: 100vh;
    width: 100%;
    object-fit: contain;
  }

  .lightbox-nav {
    top: auto;
    bottom: 30px;
    transform: none;
    background: rgba(255, 255, 255, 0.15);
  }

  .lightbox-nav.prev {
    left: 30px;
  }

  .lightbox-nav.next {
    right: 30px;
  }

  .lightbox-close {
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.5);
    padding: 5px 15px;
    border-radius: 50%;
  }
}