/* =========================================================
   Grunddesign / RESET – Dark Theme passend zum Logo
   ========================================================= */

:root {
  --color-bg: #020617;           /* sehr dunkles Blau/Schwarz */
  --color-bg-alt: #02081b;       /* leicht heller Bereich */
  --color-surface: #020b1f;      /* Karten / Boxen */
  --color-primary: #22d3ee;      /* Neon-Cyan wie im Logo */
  --color-primary-dark: #0891b2;
  --color-text: #e5e7eb;         /* helles Grau */
  --color-text-muted: #9ca3af;
  --color-border: #1f2937;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.9);
}

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

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
  background: radial-gradient(circle at top, #020d21 0, #020617 45%, #000 100%);
  color: var(--color-text);
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* =========================================================
   Header & Navigation
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(2, 6, 23, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.9);
}

.header-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

/* Logo als Bild, sauber skalieren */
.logo {
  display: inline-flex;
  align-items: center;
  height: 40px;
}

.logo img {
  height: 100%;
  width: auto;
}

/* Navigation Desktop */
.main-nav {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.main-nav a {
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  transition: background 0.12s ease, color 0.12s ease;
}

.main-nav a:hover {
  background: rgba(15, 23, 42, 0.9);
  color: var(--color-primary);
}

.main-nav .active {
  font-weight: 600;
  color: var(--color-primary);
}

.nav-cta {
  padding: 0.45rem 1rem;
  background: var(--color-primary);
  color: #020617 !important;
  border-radius: 999px;
  font-weight: 500;
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.45);
}

.nav-cta:hover {
  background: #5eead4;
}

/* Mobile Toggle Button */
.nav-toggle {
  display: none;
  border: none;
  background: transparent;
  font-size: 1.7rem;
  cursor: pointer;
  color: var(--color-text);
}

/* =========================================================
   Sections / Layout
   ========================================================= */

.section {
  padding: 4rem 0;
}

.section-alt {
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.85), rgba(2, 6, 23, 0.9));
}

.section-title {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.section-intro {
  max-width: 640px;
  color: var(--color-text-muted);
  margin-bottom: 2.5rem;
}

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #38bdf8;
  margin-bottom: 0.5rem;
}

.two-col {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
}

/* =========================================================
   Hero
   ========================================================= */

.hero {
  padding-top: 5.5rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.75rem;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(2.4rem, 4vw, 3.5rem);
  line-height: 1.1;
  margin: 0 0 1rem;
}

.hero-text p {
  color: var(--color-text-muted);
  max-width: 58ch;
  margin: 0 0 1.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--color-primary);
  color: #020617;
  box-shadow: 0 0 26px rgba(34, 211, 238, 0.45);
}

.btn-primary:hover {
  background: #5eead4;
}

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

.btn-secondary:hover {
  border-color: rgba(34, 211, 238, 0.6);
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.25);
}

.hero-highlights {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.6rem;
  color: var(--color-text-muted);
}

.hero-highlights li {
  padding-left: 1.15rem;
  position: relative;
}

.hero-highlights li::before {
  content: "▹";
  position: absolute;
  left: 0;
  color: var(--color-primary);
}

.hero-visual .card {
  background: rgba(2, 11, 31, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: var(--shadow-soft);
}

.card h2 {
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.6rem;
}

.card p {
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.card-link {
  color: var(--color-primary);
  font-weight: 600;
}

/* =========================================================
   Footer
   ========================================================= */

.site-footer {
  padding: 2rem 0;
  border-top: 1px solid rgba(148, 163, 184, 0.15);
  background: rgba(2, 6, 23, 0.85);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--color-text-muted);
}

.footer-links {
  display: flex;
  gap: 1rem;
}

.footer-links a {
  color: var(--color-text-muted);
}

.footer-links a:hover {
  color: var(--color-primary);
}

/* =========================================================
   Responsive / Mobile Navigation (Dropdown)
   ========================================================= */

@media (max-width: 900px) {

  .header-inner {
    height: 56px;
  }

  .two-col,
  .hero-inner,
  .project-card,
  .project-header,
  .project-layout {
    grid-template-columns: 1fr;
  }

  /* Mobile Navigation als Dropdown unter dem Header */
  .main-nav {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    padding: 1rem 1.5rem 1.25rem;
    background: #020617;
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
    z-index: 100;
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.95);
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    color: #e5e7eb;
    font-size: 1.05rem;
  }

  .main-nav .nav-cta {
    width: 100%;
    text-align: center;
    background: var(--color-primary);
    color: #020617 !important;
    padding: 0.8rem 1rem;
    margin-top: 0.5rem;
  }

  /* Toggle sichtbar */
  .nav-toggle {
    display: block;
  }
  /* =========================================================
   Projekt-Galerie
   ========================================================= */

.project-gallery {
  margin: 2rem 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.project-gallery-item {
  background: #020b1f;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  padding: 0.75rem;
  box-shadow: 0 0 30px rgba(15, 23, 42, 0.9);
}

.project-gallery-item img {
  width: 100%;
  border-radius: 0.75rem;
  display: block;
}

.project-gallery-item figcaption {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 0.5rem;
}

/* breite Varianten für wichtige Screens */
.project-gallery-item--wide {
  grid-column: span 2;
}

@media (max-width: 700px) {
  .project-gallery-item--wide {
    grid-column: span 1;
  }
}

}
/* Neon Canvas Background */
#neon-bg {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

/* Stelle sicher, dass Content über dem Canvas liegt */
.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}
/* --- Mobile Nav Overlay Fix --- */
@media (max-width: 900px) {
  /* Toggle Button immer über allem */
  .nav-toggle {
    position: relative;
    z-index: 10002;
  }

  /* Header über Content/Canvas */
  .site-header {
    position: relative;
    z-index: 10001;
  }

  /* Standard: Menü auf Mobile verstecken */
  .main-nav {
    display: none;
  }

  /* Wenn geöffnet: Fullscreen Overlay */
  .main-nav.is-open,
  .main-nav.open,
  .main-nav.active,
  .main-nav.show {
    display: flex;
    flex-direction: column;
    gap: 18px;

    position: fixed;
    inset: 0;
    padding: 96px 24px 24px;

    background: rgba(5, 5, 16, 0.92);
    backdrop-filter: blur(10px);

    z-index: 10000;
  }

  /* Klicks auf Content verhindern, wenn Menü offen */
  body.nav-open {
    overflow: hidden;
  }
}
/* ===== Mobile Nav Overlay (Hard Fix) ===== */
@media (max-width: 900px) {
  /* Header + Button über Inhalt */
  .site-header { position: relative; z-index: 10001; }
  .nav-toggle { position: relative; z-index: 10003; }

  /* Standard: Menü verstecken (closed) */
  .main-nav {
    display: none;
  }

  /* Offen: Fullscreen Overlay (greift bei verschiedenen Toggle-Klassen) */
  .main-nav.is-open,
  .main-nav.open,
  .main-nav.active,
  .main-nav.show {
    display: flex !important;
    flex-direction: column !important;
    gap: 18px !important;

    position: fixed !important;
    inset: 0 !important;

    /* Platz für Header */
    padding: 96px 24px 24px !important;

    background: rgba(5, 5, 16, 0.92) !important;
    backdrop-filter: blur(10px) !important;

    z-index: 10002 !important;
  }

  /* Inline-Margins in deinem Nav (Login/Kundenportal) neutralisieren */
  .main-nav.is-open a,
  .main-nav.open a,
  .main-nav.active a,
  .main-nav.show a {
    margin-left: 0 !important;
  }

  /* Scroll sperren wenn Menü offen */
  body.nav-open {
    overflow: hidden !important;
    touch-action: none;
  }
}

/* =========================================================
   FINAL: Mobile Navigation als Fullscreen-Overlay (Bugfix)
   - Verhindert, dass das Menü den Content "verschiebt"
   - Legt ein Backdrop über die Seite
   - Scroll-Lock wenn offen
   ========================================================= */

.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 16, 0.55);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
  z-index: 10000; /* über Content, unter Header/Nav */
}

body.nav-open .nav-backdrop {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 900px) {
  /* Toggle sichtbar + immer klickbar */
  .nav-toggle {
    display: block !important;
    position: relative;
    z-index: 10003;
  }

  /* Header über Backdrop */
  .site-header {
    position: sticky;
    top: 0;
    z-index: 10002;
  }

  /* Menü standardmäßig verstecken */
  .main-nav {
    display: none !important;
  }

  /* Offen: Fullscreen Overlay */
  .main-nav.is-open {
    display: flex !important;
    flex-direction: column !important;
    gap: 18px !important;

    position: fixed !important;
    inset: 0 !important;

    /* Platz für den Header + angenehme Ränder */
    padding: 96px 24px 24px !important;

    background: rgba(5, 5, 16, 0.92) !important;
    backdrop-filter: blur(10px) !important;

    z-index: 10001 !important; /* unter Header/Toggle, über Backdrop */
  }

  /* Inline-Margins (Login/Kundenportal) auf Mobile neutralisieren */
  .main-nav.is-open a {
    margin-left: 0 !important;
  }

  /* Scroll sperren wenn Menü offen */
  body.nav-open {
    overflow: hidden !important;
    touch-action: none;
  }
}