/* =============================================
   MAXOPY – Shared Design System
   HINWEIS: Google Fonts CDN sendet Nutzer-IPs an Google (DSGVO-relevant).
   Empfehlung: Fonts lokal hosten via https://gwfh.mranftl.com/fonts
   und diese @import-Zeile durch lokale @font-face-Blöcke ersetzen.
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@700;800;900&family=Outfit:wght@300;400;500;600&display=swap');

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

:root {
  --ink:        #0b0e1a;
  --ink-2:      #1a1f35;
  --ink-3:      #252c47;
  --cyan:       #00d9ff;
  --cyan-dim:   rgba(0, 217, 255, 0.12);
  --cyan-glow:  rgba(0, 217, 255, 0.25);
  --blue:       #0066ff;
  --slate:      #94a3c8;
  --slate-dim:  #5a6690;
  --white:      #f0f4ff;
  --white-dim:  rgba(240, 244, 255, 0.06);
  --white-dim2: rgba(240, 244, 255, 0.10);
  --border:     rgba(255, 255, 255, 0.07);
  --border-2:   rgba(0, 217, 255, 0.22);

  --font-display: 'Roboto Slab', serif;
  --font-body:    'Outfit', sans-serif;

  --ease:     cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--ink);
  color: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── Focus-visible (Keyboard-Zugänglichkeit) ── */
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}
/* Kein Outline bei Mausklick */
:focus:not(:focus-visible) { outline: none; }

/* ── Background Canvas ── */
.bg-canvas {
  position: fixed; inset: 0; z-index: -1; overflow: hidden;
  background: radial-gradient(ellipse 120% 80% at 70% -10%, #0d1535 0%, #0b0e1a 55%);
}
.bg-canvas::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 48px 48px;
}
.orb {
  position: absolute; border-radius: 50%;
  filter: blur(100px); opacity: 0.18;
  animation: orb-drift 40s ease-in-out infinite;
  will-change: transform;

  pointer-events: none;
}
.orb-a { width:700px; height:700px; background:var(--cyan);  top:-300px; right:-200px; animation-delay:0s; }
.orb-b { width:500px; height:500px; background:var(--blue);  bottom:-250px; left:-150px; animation-delay:-14s; }
.orb-c { width:400px; height:400px; background:#6d28d9;      top:45%; right:20%; opacity:.12; animation-delay:-28s; }

@keyframes orb-drift {
  0%,100% { transform: translate(0,0) scale(1); }
  33%      { transform: translate(80px,-80px) scale(1.08); }
  66%      { transform: translate(-60px,100px) scale(.94); }
}

/* ── Navbar ── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  padding: 0 2rem;
  background: rgba(11,14,26,.75);
  backdrop-filter: blur(18px) saturate(1.6);
  border-bottom: 1px solid var(--border);
  transition: background .3s var(--ease), box-shadow .3s var(--ease);
}
.navbar.scrolled {
  background: rgba(11,14,26,.95);
  box-shadow: 0 8px 40px rgba(0,0,0,.5);
}
.nav-inner {
  max-width: 1320px; margin: 0 auto;
  height: 68px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.45rem; font-weight: 800;
  color: transparent;
  background: linear-gradient(120deg, #fff 0%, var(--cyan) 55%, var(--blue) 100%);
  -webkit-background-clip: text; background-clip: text;
  text-decoration: none;
  display: flex; align-items: center; gap: .5rem;
  transition: filter .25s;
  /* Verhindert, dass der Text als auswählbar erscheint */
  user-select: none;
}
.nav-logo:hover { filter: brightness(1.2); }
.nav-logo-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 14px var(--cyan);
  animation: pulse-dot 2.4s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulse-dot {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:.5; transform:scale(1.4); }
}
.nav-links {
  display: flex; align-items: center; gap: 2rem;
  list-style: none;
}
.nav-links a {
  color: var(--slate); text-decoration: none;
  font-size: .92rem; font-weight: 500;
  position: relative; padding: .3rem 0;
  transition: color .2s;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 1.5px;
  background: var(--cyan);
  transition: width .25s var(--ease-out);
}
.nav-links a:hover,
.nav-links a.active { color: var(--white); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-cta {
  padding: .55rem 1.3rem;
  background: var(--cyan-dim);
  border: 1px solid var(--border-2);
  border-radius: 8px;
  color: var(--cyan) !important;
  font-weight: 500;
  transition: background .2s, box-shadow .2s !important;
}
.nav-cta:hover {
  background: rgba(0,217,255,.2) !important;
  box-shadow: 0 0 20px rgba(0,217,255,.25);
}
.nav-cta::after { display: none !important; }

/* Burger nur auf Mobile sichtbar */
.nav-burger {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--white);
  font-size: 1.2rem;
  padding: .4rem .7rem;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  /* Icon-Zeichenfolge in ::before steuern wir per JS */
  line-height: 1;
  min-width: 44px; /* WCAG: mind. 44×44px Touch-Target */
  min-height: 44px;
}
.nav-burger:hover {
  border-color: var(--cyan);
  background: var(--cyan-dim);
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .85rem 2rem; border-radius: 10px;
  font-family: var(--font-body); font-weight: 500; font-size: .97rem;
  text-decoration: none; border: none; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s;
  position: relative; overflow: hidden;
}
.btn::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(255,255,255,.12);
  opacity: 0; transition: opacity .2s;
}
.btn:hover::after { opacity: 1; }
.btn:hover       { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: var(--ink);
  box-shadow: 0 4px 24px rgba(0,217,255,.28);
}
.btn-primary:hover { box-shadow: 0 8px 36px rgba(0,217,255,.42); }

.btn-ghost {
  background: var(--white-dim);
  border: 1px solid var(--border);
  color: var(--white);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { border-color: var(--cyan); background: var(--cyan-dim); }

/* ── Section base ── */
.section {
  max-width: 1320px; margin: 0 auto;
  padding: 5.5rem 2rem;
}
.section-header {
  text-align: center; margin-bottom: 3.5rem;
}
.section-label {
  display: inline-block;
  font-size: .78rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--cyan);
  margin-bottom: .9rem;
}
.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 700; line-height: 1.15;
  color: var(--white); margin-bottom: 1rem;
}
.section-header p {
  color: var(--slate); font-size: 1.05rem;
  max-width: 600px; margin: 0 auto; line-height: 1.75;
}

/* ── Cards ── */
.card {
  background: var(--white-dim);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  transition: border-color .25s, box-shadow .25s, transform .25s var(--ease);
  position: relative; overflow: hidden;
}
.card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,217,255,.04), transparent);
  opacity: 0; transition: opacity .25s;
}
.card:hover {
  border-color: rgba(0,217,255,.3);
  box-shadow: 0 12px 40px rgba(0,0,0,.35), 0 0 0 1px rgba(0,217,255,.1);
  transform: translateY(-4px);
}
.card:hover::before { opacity: 1; }

/* ── Form ── */
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block; color: var(--slate); font-size: .88rem;
  font-weight: 500; margin-bottom: .45rem; letter-spacing: .02em;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: .8rem 1rem;
  background: var(--white-dim); border: 1px solid var(--border);
  border-radius: 10px; color: var(--white);
  font-family: var(--font-body); font-size: .95rem;
  transition: border-color .2s, box-shadow .2s, background .2s;
  appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(0,217,255,.45);
  background: rgba(0,217,255,.06);
  box-shadow: 0 0 0 3px rgba(0,217,255,.1);
}
.form-group select option { background: #1a1f35; }
.form-group textarea { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }

/* gibts nicht mehr - trotzdem erstmal drin lassen */
#form-success {
  display: none;
  padding: 1rem 1.25rem;
  border-radius: 10px;
  background: rgba(0,217,255,.1);
  border: 1px solid var(--border-2);
  color: var(--cyan);
  font-size: .92rem;
  margin-top: 1rem;
}

/* ── Footer ── */
footer {
  background: rgba(0,0,0,.35);
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: 1320px; margin: 0 auto;
  padding: 3.5rem 2rem 2rem;
}
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem; margin-bottom: 3rem;
}
.footer-brand p { color: var(--slate-dim); font-size: .9rem; line-height: 1.7; margin-top: .75rem; }
.footer-col h5 {
  font-family: var(--font-display); font-size: .82rem;
  font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--slate); margin-bottom: 1rem;
}
.footer-col a {
  display: block; color: var(--slate-dim); text-decoration: none;
  font-size: .9rem; margin-bottom: .55rem;
  transition: color .2s, padding-left .2s;
}
.footer-col a:hover { color: var(--cyan); padding-left: 4px; }
.footer-bottom {
  padding-top: 2rem; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
}
.footer-bottom p { color: var(--slate-dim); font-size: .85rem; }
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { color: var(--slate-dim); text-decoration: none; font-size: .85rem; transition: color .2s; }
.footer-legal a:hover { color: var(--cyan); }

/* ── Page Header (Unterseiten) ── */
.page-header {
  padding: 9rem 2rem 4rem;
  text-align: center;
}
.page-header-inner { max-width: 800px; margin: 0 auto; }
.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 800; line-height: 1.1;
  background: linear-gradient(135deg, #fff 0%, var(--cyan) 60%, var(--blue) 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; margin-bottom: 1.25rem;
}
.page-header p { color: var(--slate); font-size: 1.1rem; line-height: 1.75; }

/* ── Prose (Impressum, Datenschutz, AGB) ── */
.prose {
  max-width: 820px; margin: 0 auto;
  padding: 2rem 2rem 6rem;
  color: var(--slate);
  line-height: 1.8; font-size: .97rem;
}
.prose h2 {
  font-family: var(--font-display); font-size: 1.35rem; font-weight: 700;
  color: var(--white); margin: 2.5rem 0 .75rem;
}
.prose h3 { color: var(--white); font-size: 1.05rem; margin: 1.5rem 0 .5rem; }
.prose p  { margin-bottom: 1rem; }
.prose a  { color: var(--cyan); text-decoration: none; }
.prose a:hover { text-decoration: underline; }
.prose ul { padding-left: 1.4rem; margin-bottom: 1rem; }
.prose li { margin-bottom: .4rem; }
.prose strong { color: var(--white); font-weight: 500; }
.prose .divider { height: 1px; background: var(--border); margin: 2rem 0; }

/* ── Scroll to top ── */
.scroll-top {
  position: fixed; bottom: 2rem; right: 2rem;
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  border: none; color: var(--ink); font-size: 1.2rem; cursor: pointer;
  display: none; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(0,217,255,.3);
  transition: transform .25s var(--ease), box-shadow .25s, opacity .25s;
  z-index: 800;
}
.scroll-top.visible { display: flex; }
.scroll-top:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 30px rgba(0,217,255,.45);
}

/* ── Animations ── */
@keyframes fade-up {
  from { opacity:0; transform:translateY(24px); }
  to   { opacity:1; transform:translateY(0); }
}
.animate-fade-up { animation: fade-up .7s var(--ease-out) both; }
.delay-1 { animation-delay: .1s; }
.delay-2 { animation-delay: .2s; }
.delay-3 { animation-delay: .3s; }
.delay-4 { animation-delay: .45s; }
.delay-5 { animation-delay: .6s; }

/* ── Responsive ── */
@media (max-width: 960px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  /* Burger sichtbar machen */
  .nav-burger { display: flex; align-items: center; justify-content: center; }

  /* Dropdown-Menü */
  .nav-links {
    display: none;
    flex-direction: column;
    gap: 0;
    /* Absolut positioniert relativ zur fixed Navbar */
    position: absolute;
    top: 68px;       /* Höhe der Navbar */
    left: 0; right: 0;
    background: rgba(11,14,26,.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: .5rem 0 1rem;
    /* BUGFIX: z-index sicherstellen, damit das Menü über dem Seiteninhalt liegt */
    z-index: 899;
    /* Sanfte Einblend-Animation */
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .2s var(--ease-out), transform .2s var(--ease-out);
  }
  .nav-links.open {
    display: flex;
    opacity: 1;
    transform: translateY(0);
  }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: .85rem 2rem;
    border-bottom: 1px solid var(--border);
    /* Breiteres Touch-Target auf Mobile */
    min-height: 48px;
    display: flex;
    align-items: center;
  }
  .nav-links li:last-child a { border-bottom: none; }
  .nav-links a::after { left: 2rem; }

  /* Kontakt-Button im Mobile-Menü */
  .nav-cta {
    margin: .5rem 2rem 0;
    padding: .75rem 1.3rem;
    text-align: center;
    justify-content: center;
    border-radius: 8px;
  }

  .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .section { padding: 4rem 1.5rem; }
}

/* Reduced-motion: Animationen deaktivieren */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
}