/* ============================================================
   NOVATREX – Shared Stylesheet
   Used by: index.html, impressum.html, datenschutz.html
   ============================================================ */

/* ── RESET & VARIABLES ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:    #3b4fff;
  --cyan:    #00c8ff;
  --purple:  #a855f7;
  --dark:    #07080f;
  --darker:  #04050a;
  --card-bg: rgba(255,255,255,0.03);
  --border:  rgba(255,255,255,0.07);
  --text:    #c9cfe8;
  --muted:   #6870a0;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--darker);
  color: var(--text);
  overflow-x: hidden;
  min-height: 100vh;
}

/* ── GRID BACKGROUND ── */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(59,79,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,79,255,.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp  { from { opacity:0; transform: translateY(24px); } to { opacity:1; transform: translateY(0); } }
@keyframes pulse   { from { transform: translate(-50%,-55%) scale(1); } to { transform: translate(-50%,-55%) scale(1.12); } }
@keyframes blink   { 0%,100%{opacity:1} 50%{opacity:.2} }
@keyframes spin    { to { transform: rotate(360deg); } }

/* ── NAVIGATION ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 6vw; height: 72px;
  background: rgba(4,5,10,0.85);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: "Michroma", sans-serif;
  font-weight: 600; 
  font-size: 1.75rem; 
  letter-spacing: 0.05em;
  display: inline-block;
  background: linear-gradient(90deg, var(--blue), var(--purple));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  text-decoration: none;
}

@media (max-width: 1024px) { .nav-logo{ font-size: 1rem; } }

/* index.html nav */
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a {
  font-size: .85rem; font-weight: 500;
  color: var(--text); text-decoration: none;
  letter-spacing: .06em; text-transform: uppercase;
  transition: color .25s;
}
.nav-links a:hover { color: #fff; }

@media (max-width: 768px) { .nav-links{ display: none; } }

.nav-cta {
  font-family: 'Exo 2', sans-serif; font-weight: 700;
  font-size: .82rem; letter-spacing: .08em; text-transform: uppercase;
  padding: .55rem 1.4rem;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: #fff; border: none; border-radius: 6px;
  cursor: pointer; text-decoration: none;
  transition: opacity .25s, transform .2s;
}
.nav-cta:hover { opacity: .85; transform: translateY(-1px); }

/* legal pages nav */
.nav-back {
  font-family: 'Exo 2', sans-serif; font-weight: 600;
  font-size: .82rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); text-decoration: none;
  display: flex; align-items: center; gap: .5rem;
  transition: color .2s;
}
.nav-back:hover { color: #fff; }

/* ── BUTTONS ── */
.btn-primary {
  font-family: 'Exo 2', sans-serif; font-weight: 700;
  font-size: .9rem; letter-spacing: .07em; text-transform: uppercase;
  padding: .85rem 2.2rem;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: #fff; border: none; border-radius: 8px;
  cursor: pointer; text-decoration: none;
  box-shadow: 0 0 30px rgba(59,79,255,.35);
  transition: transform .2s, box-shadow .2s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 45px rgba(59,79,255,.5); }

.btn-ghost {
  font-family: 'Exo 2', sans-serif; font-weight: 600;
  font-size: .9rem; letter-spacing: .07em; text-transform: uppercase;
  padding: .85rem 2.2rem;
  background: transparent; color: #fff;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 8px; cursor: pointer; text-decoration: none;
  transition: border-color .2s, background .2s;
}
.btn-ghost:hover { border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.04); }

/* ── FOOTER (shared) ── */
footer {
  position: relative; z-index: 1;
  border-top: 1px solid var(--border);
  padding: 2.5rem 6vw;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
}

.footer-brand {
  font-family: 'Michroma', sans-serif; font-weight: 900; font-size: 0.85rem;
  background: linear-gradient(90deg, var(--blue), var(--purple));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { font-size: .78rem; color: var(--muted); text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: #fff; }
.footer-copy { font-size: .78rem; color: #444b72; }

/* ══════════════════════════════════════════════════════════
   INDEX PAGE (index.html)
   ══════════════════════════════════════════════════════════ */

/* Hero */
#hero {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 120px 6vw 80px;
  overflow: hidden;
}

#hero::after {
  content: '';
  position: absolute; width: 700px; height: 700px; border-radius: 50%;
  background: radial-gradient(circle, rgba(59,79,255,.22) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -55%);
  pointer-events: none;
  animation: pulse 6s ease-in-out infinite alternate;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--cyan); border: 1px solid rgba(0,200,255,.25);
  border-radius: 100px; padding: .35rem 1rem; margin-bottom: 2.2rem;
  position: relative; z-index: 1;
  animation: fadeUp .8s ease both;
}
.hero-badge::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan); animation: blink 1.4s ease infinite;
}

h1 {
  font-family: 'Exo 2', sans-serif;
  font-weight: 900; font-size: clamp(2.8rem, 7vw, 5.5rem);
  line-height: 1.05; letter-spacing: -.02em; color: #fff;
  position: relative; z-index: 1;
  animation: fadeUp .9s .1s ease both;
}

h1 span {
  background: linear-gradient(90deg, var(--blue) 0%, var(--cyan) 40%, var(--purple) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.hero-sub {
  max-width: 600px; margin: 1.8rem auto 0;
  font-size: 1.05rem; font-weight: 300; line-height: 1.75;
  color: #8891b5; position: relative; z-index: 1;
  animation: fadeUp .9s .2s ease both;
}

.hero-btns {
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
  margin-top: 2.8rem; position: relative; z-index: 1;
  animation: fadeUp .9s .3s ease both;
}

/* Stats Bar */
.stats-bar {
  display: flex; justify-content: center; gap: 0; flex-wrap: wrap;
  background: rgba(255,255,255,.025);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}

.stat {
  flex: 1; min-width: 160px; max-width: 240px;
  text-align: center; padding: 2rem 1.5rem;
  border-right: 1px solid var(--border);
}
.stat:last-child { border-right: none; }

.stat-num {
  font-family: 'Exo 2', sans-serif; font-weight: 900; font-size: 2.4rem;
  background: linear-gradient(90deg, var(--blue), var(--purple));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.stat-label { font-size: .78rem; font-weight: 400; color: #6870a0; letter-spacing: .08em; text-transform: uppercase; margin-top: .25rem; }

/* Sections */
section { position: relative; z-index: 1; }

.section-inner { max-width: 1180px; margin: 0 auto; padding: 100px 6vw; }

.section-tag {
  font-size: .72rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 1rem;
}

h2 {
  font-family: 'Exo 2', sans-serif;
  font-weight: 800; font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: #fff; line-height: 1.15; margin-bottom: 1rem;
}

.section-desc { max-width: 520px; font-size: .95rem; line-height: 1.8; color: #6870a0; margin-bottom: 3.5rem; }

/* Services Grid */
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5px; background: var(--border);
  border: 1px solid var(--border); border-radius: 16px; overflow: hidden;
}

.service-card {
  background: var(--darker); padding: 2.2rem 2rem;
  display: flex; flex-direction: column; gap: .9rem;
  position: relative; transition: background .3s; cursor: default;
}
.service-card:hover { background: rgba(59,79,255,.07); }
.service-card:hover .service-icon { box-shadow: 0 0 28px rgba(59,79,255,.4); }

.service-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(59,79,255,.2), rgba(168,85,247,.2));
  border: 1px solid rgba(59,79,255,.3); font-size: 1.35rem;
  transition: box-shadow .3s;
}

.service-title { font-family: 'Exo 2', sans-serif; font-weight: 700; font-size: 1rem; color: #fff; letter-spacing: .02em; }
.service-desc  { font-size: .84rem; line-height: 1.7; color: #6870a0; }

/* Why Novatrex */
#why { background: rgba(59,79,255,.03); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
@media (max-width: 768px) { .why-grid { grid-template-columns: 1fr; gap: 3rem; } }

.why-features { display: flex; flex-direction: column; gap: 1.8rem; }

.why-feature { display: flex; gap: 1.2rem; align-items: flex-start; }

.why-dot {
  margin-top: .35rem; width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  box-shadow: 0 0 12px rgba(59,79,255,.5);
}
.why-feature h3 { font-family: 'Exo 2', sans-serif; font-weight: 700; font-size: .95rem; color: #fff; margin-bottom: .3rem; }
.why-feature p  { font-size: .84rem; color: #6870a0; line-height: 1.7; }

.why-visual {
  position: relative; aspect-ratio: 1;
  max-width: 420px; margin: 0 auto;
}

.why-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid rgba(59,79,255,.15);
  animation: spin 20s linear infinite;
}
.why-ring:nth-child(2) { inset: 15%; border-color: rgba(168,85,247,.2); animation-direction: reverse; animation-duration: 14s; }
.why-ring:nth-child(3) { inset: 30%; border-color: rgba(0,200,255,.15); animation-duration: 10s; }

.why-ring::before {
  content: ''; position: absolute; top: -4px; left: 50%;
  width: 8px; height: 8px; border-radius: 50%; margin-left: -4px;
  background: var(--blue); box-shadow: 0 0 14px var(--blue);
}

.why-center { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.why-center-box {
  width: 100px; height: 100px; border-radius: 20px;
  background: linear-gradient(135deg, rgba(59,79,255,.25), rgba(168,85,247,.25));
  border: 1px solid rgba(59,79,255,.3);
  display: flex; align-items: center; justify-content: center; font-size: 2.5rem;
}

/* Contact */
#contact { background: var(--darker); }

.contact-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }
@media (max-width: 768px) { .contact-wrapper { grid-template-columns: 1fr; gap: 3rem; } }

.contact-info { display: flex; flex-direction: column; gap: 1.5rem; }

.contact-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-icon {
  width: 42px; height: 42px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(59,79,255,.12); border: 1px solid rgba(59,79,255,.25); font-size: 1.1rem;
}
.contact-label { font-size: .72rem; color: #6870a0; text-transform: uppercase; letter-spacing: .1em; }
.contact-val   { font-size: .9rem; color: #c9cfe8; margin-top: .2rem; }

.contact-form { display: flex; flex-direction: column; gap: 1rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 500px) { .form-row { grid-template-columns: 1fr; } }

input, textarea, select {
  width: 100%; background: rgba(255,255,255,.03);
  border: 1px solid var(--border); border-radius: 8px;
  padding: .8rem 1rem;
  font-family: 'DM Sans', sans-serif; font-size: .88rem; color: #fff;
  outline: none; transition: border-color .2s; resize: none;
}
input::placeholder, textarea::placeholder { color: #444b72; }
input:focus, textarea:focus { border-color: rgba(59,79,255,.5); }
textarea { min-height: 120px; }

.form-submit {
  font-family: 'Exo 2', sans-serif; font-weight: 700;
  font-size: .88rem; letter-spacing: .08em; text-transform: uppercase;
  padding: .9rem; border: none; border-radius: 8px; cursor: pointer;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: #fff; box-shadow: 0 0 25px rgba(59,79,255,.3);
  transition: transform .2s, box-shadow .2s;
}
.form-submit:hover { transform: translateY(-2px); box-shadow: 0 0 40px rgba(59,79,255,.5); }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ══════════════════════════════════════════════════════════
   LEGAL PAGES (impressum.html & datenschutz.html)
   ══════════════════════════════════════════════════════════ */

/* Page hero strip (impressum) */
.page-hero {
  position: relative; z-index: 1;
  padding: 140px 6vw 60px;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.page-hero::after {
  content: ''; position: absolute; top: 0; left: -10%;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(59,79,255,.1) 0%, transparent 70%);
  pointer-events: none;
}

/* TOC wrap (datenschutz) */
.toc-wrap {
  position: relative; z-index: 1;
  background: rgba(255,255,255,.018);
  border-bottom: 1px solid var(--border);
  padding: 140px 6vw 32px;
}

.page-tag {
  font-size: .72rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 1rem;
}

/* Override h1 for legal pages (smaller than hero) */
.page-hero h1,
.toc-wrap h1 {
  font-family: 'Exo 2', sans-serif;
  font-weight: 900; font-size: clamp(2rem, 5vw, 3.5rem);
  color: #fff; line-height: 1.1; letter-spacing: -.02em;
  margin-bottom: .75rem;
  animation: none; /* no entrance animation on legal pages */
}

.page-meta { font-size: .82rem; color: var(--muted); margin-bottom: 2rem; }

/* TOC pill links */
.toc { display: flex; flex-wrap: wrap; gap: .5rem; }

.toc a {
  font-size: .78rem; font-weight: 500; letter-spacing: .04em;
  color: var(--muted); background: rgba(255,255,255,.04);
  border: 1px solid var(--border); border-radius: 6px;
  padding: .35rem .85rem; text-decoration: none;
  transition: color .2s, border-color .2s, background .2s;
}
.toc a:hover { color: #fff; border-color: rgba(59,79,255,.4); background: rgba(59,79,255,.08); }

/* Content area */
.content-wrap {
  position: relative; z-index: 1;
  max-width: 820px; margin: 0 auto;
  padding: 70px 6vw 100px;
}

.legal-section {
  margin-bottom: 3.5rem;
  scroll-margin-top: 90px;
  animation: fadeUp .6s ease both;
}

.legal-section:nth-child(1) { animation-delay: .05s; }
.legal-section:nth-child(2) { animation-delay: .10s; }
.legal-section:nth-child(3) { animation-delay: .15s; }
.legal-section:nth-child(4) { animation-delay: .20s; }
.legal-section:nth-child(5) { animation-delay: .25s; }
.legal-section:nth-child(6) { animation-delay: .30s; }

/* Legal h2 override (different style to section h2) */
.legal-section h2 {
  font-family: 'Exo 2', sans-serif;
  font-weight: 800; font-size: 1.1rem; color: #fff;
  letter-spacing: .04em; text-transform: uppercase;
  margin-bottom: 1.2rem; padding-bottom: .7rem;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: .75rem;
}

.legal-section h2::before {
  content: ''; width: 3px; height: 1.1rem; border-radius: 2px;
  background: linear-gradient(180deg, var(--blue), var(--purple));
  flex-shrink: 0;
}

h3 {
  font-family: 'Exo 2', sans-serif;
  font-weight: 700; font-size: .92rem; color: #b0b8d8;
  letter-spacing: .05em; text-transform: uppercase;
  margin: 1.5rem 0 .6rem;
}

p {
  font-size: .92rem; line-height: 1.85;
  color: var(--text); margin-bottom: .9rem;
}
p:last-child { margin-bottom: 0; }

a { color: var(--cyan); text-decoration: none; transition: opacity .2s; }
a:hover { opacity: .75; }

ul { padding-left: 1.2rem; margin-bottom: .9rem; }
li {
  font-size: .92rem; line-height: 1.85; color: var(--text);
  margin-bottom: .4rem; list-style: none;
  padding-left: .5rem; position: relative;
}
li::before { content: '–'; position: absolute; left: -1rem; color: var(--muted); }

/* Info block (address / contact data boxes) */
.info-block {
  background: rgba(255,255,255,.025);
  border: 1px solid var(--border); border-radius: 12px;
  padding: 1.5rem 1.8rem; margin-top: .5rem;
}

.info-row { display: flex; gap: .75rem; margin-bottom: .5rem; font-size: .9rem; }
.info-row:last-child { margin-bottom: 0; }
.info-label { color: var(--muted); min-width: 140px; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; padding-top: .05rem; }
.info-val   { color: var(--text); line-height: 1.6; }

/* Highlight / notice boxes */
.highlight-box,
.notice-box {
  background: rgba(59,79,255,.07);
  border: 1px solid rgba(59,79,255,.2);
  border-radius: 10px; padding: 1.2rem 1.5rem;
  font-size: .86rem; color: #8891b5; line-height: 1.75;
  margin: .75rem 0;
}

/* Rights grid (datenschutz) */
.rights-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem; margin-top: .75rem;
}

.right-card {
  background: rgba(255,255,255,.025);
  border: 1px solid var(--border); border-radius: 10px;
  padding: 1.2rem; transition: border-color .2s;
}
.right-card:hover { border-color: rgba(59,79,255,.3); }

.right-card .icon { font-size: 1.4rem; margin-bottom: .6rem; }
.right-card h4 { font-family: 'Exo 2', sans-serif; font-weight: 700; font-size: .85rem; color: #fff; margin-bottom: .35rem; letter-spacing: .03em; }
.right-card p  { font-size: .8rem; color: var(--muted); line-height: 1.6; margin: 0; }
