/* =====================================================
   APEX WAY – Haupt-Stylesheet
   Farbe: Lila #2d1b69 | Font: Inter (Google)
   ===================================================== */

:root {
  --purple:      #2d1b69;
  --purple-light:#3d2a80;
  --purple-dark: #1a0f3d;
  --purple-bg:   #ede9f8;
  --white:       #ffffff;
  --off-white:   #f9fafb;
  --text:        #1a1a2e;
  --text-light:  #4a5568;
  --dark-bg:     #1a0f3d;
  --dark-section:#200c42;
  --shadow:      0 4px 24px rgba(0,0,0,0.12);
  /* Alias for backward-compat */
  --green:       var(--purple);
  --green-light: var(--purple-light);
  --green-dark:  var(--purple-dark);
  --green-bg:    var(--purple-bg);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ── TYPOGRAPHY ── */
h1 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 700; line-height: 1.2; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; line-height: 1.3; }
h3 { font-size: 1.15rem; font-weight: 600; }
p  { font-size: 1rem; color: var(--text-light); }

/* ── PAGE LOAD ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideRight {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes countUp {
  from { opacity: 0; transform: scale(0.7); }
  to   { opacity: 1; transform: scale(1); }
}

/* Hero on-load animation */
.hero-content .hero-eyebrow { animation: slideRight 0.7s ease 0.1s both; }
.hero-content h1             { animation: slideRight 0.7s ease 0.25s both; }
.hero-content .hero-divider  { animation: fadeIn 0.6s ease 0.45s both; }
.hero-content p              { animation: fadeUp 0.7s ease 0.55s both; }
.hero-content .hero-btn      { animation: fadeUp 0.7s ease 0.75s both; }
.hero-image                  { animation: fadeIn 1s ease 0.2s both; }

/* ── LOGO GRADIENT TEXT ── */
.logo-gradient {
  font-size: 20px; font-weight: 800; letter-spacing: 1.5px;
  background: linear-gradient(90deg, #00ddff 0%, #ff00d4 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; display: inline-block; line-height: 1;
}
.footer-logo .logo-gradient { font-size: 17px; }

/* ── NAV ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(26, 15, 61, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 0 5%;
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
  transition: all 0.3s;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav.scrolled { height: 58px; background: rgba(15, 8, 48, 0.98); }
.nav-logo { display: flex; align-items: center; }
.nav-logo img { height: 38px; }
.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-links a {
  color: rgba(255,255,255,0.8); font-size: 14px; font-weight: 500;
  padding: 8px 16px; border-radius: 6px; transition: all 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: white; background: rgba(255,255,255,0.12); }
.nav-cta {
  background: white !important; color: var(--purple) !important;
  font-weight: 700 !important; border-radius: 8px !important;
}
.nav-cta:hover { background: var(--purple-bg) !important; }
.nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.nav-hamburger span { width: 24px; height: 2px; background: white; border-radius: 2px; transition: 0.3s; }

/* ── HERO ── */
.hero {
  min-height: 100vh; position: relative;
  padding-top: 68px;
  display: flex; align-items: center;
}
.hero-content {
  background: transparent; padding: 80px 6% 80px 8%;
  display: flex; flex-direction: column; justify-content: center;
  color: white; position: relative; z-index: 2;
  max-width: 620px; width: 55%;
}
.hero-eyebrow {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px;
  color: #00ddff; margin-bottom: 20px;
  display: flex; align-items: center; gap: 10px;
}
.hero-eyebrow::before { content: ''; width: 30px; height: 2px; background: #00ddff; }
.hero h1 { color: white; margin-bottom: 24px; text-shadow: 0 2px 20px rgba(0,0,0,0.4); }
.hero-divider { width: 60px; height: 3px; background: linear-gradient(90deg,#00ddff,#ff00d4); margin: 20px 0; border-radius: 2px; }
.hero p { color: rgba(255,255,255,0.88); font-size: 1.05rem; max-width: 480px; text-shadow: 0 1px 8px rgba(0,0,0,0.3); }
.hero-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg,#00ddff,#ff00d4); color: white; padding: 15px 30px;
  border-radius: 8px; font-weight: 700; font-size: 15px;
  margin-top: 36px; transition: all 0.25s; width: fit-content;
  box-shadow: 0 6px 28px rgba(0,221,255,0.35);
}
.hero-btn:hover { transform: translateY(-3px); box-shadow: 0 12px 36px rgba(0,221,255,0.45); filter: brightness(1.08); }
.hero-btn svg { width: 18px; height: 18px; transition: transform 0.2s; }
.hero-btn:hover svg { transform: translateX(5px); }
.hero-image {
  position: absolute; inset: 0; overflow: hidden; z-index: 0;
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; object-position: center right; transform: scale(1.05); transition: transform 8s ease; }
.hero-image.loaded img { transform: scale(1); }
.hero-image::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to right,
    rgba(26,15,61,0.97) 0%,
    rgba(26,15,61,0.93) 30%,
    rgba(26,15,61,0.7)  50%,
    rgba(26,15,61,0.25) 70%,
    transparent 100%
  );
}
.hero-image::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to bottom, transparent 50%, rgba(26,15,61,0.6) 100%);
}

/* ── SECTION BASICS ── */
section { overflow: hidden; }
.section-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px;
  color: var(--purple); margin-bottom: 12px; display: flex; align-items: center; gap: 8px;
}
.section-label::before { content: ''; width: 24px; height: 2px; background: var(--purple); }
.section-divider { width: 50px; height: 3px; background: var(--purple); margin: 20px 0 24px; border-radius: 2px; }

/* ── SPLIT SECTIONS ── */
.split { display: grid; grid-template-columns: 1fr 1fr; min-height: 60vh; }
.split-text {
  padding: 80px 6% 80px 8%; display: flex; flex-direction: column;
  justify-content: center; background: var(--dark-bg); color: white;
}
.split-text h2 { color: white; margin-bottom: 20px; }
.split-text p { color: rgba(255,255,255,0.75); margin-bottom: 14px; }
.split-text .section-label { color: rgba(255,255,255,0.45); }
.split-text .section-label::before { background: rgba(255,255,255,0.25); }
.split-text .section-divider { background: rgba(255,255,255,0.2); }
.split-image { overflow: hidden; position: relative; }
.split-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.split-image:hover img { transform: scale(1.06); }

/* Alternating */
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }
.split.reverse .split-text { background: var(--dark-section); }

/* ── LEISTUNGEN ── */
.leistungen { background: var(--off-white); padding: 80px 8%; }
.leistungen h2 { margin-bottom: 8px; }
.leistungen > p { font-size: 1.05rem; max-width: 560px; margin-bottom: 48px; }
.leistungen-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.leistung-card {
  background: white; border-radius: 16px; padding: 32px 28px;
  border: 1px solid #e8ecf0; transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.leistung-card:hover { transform: translateY(-8px); box-shadow: 0 16px 40px rgba(45,27,105,0.13); border-color: var(--purple-bg); }
.leistung-icon {
  width: 52px; height: 52px; background: var(--purple-bg);
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; transition: all 0.3s;
}
.leistung-card:hover .leistung-icon { background: var(--purple); }
.leistung-card:hover .leistung-icon svg { color: white; }
.leistung-icon svg { color: var(--purple); width: 24px; height: 24px; transition: color 0.3s; }
.leistung-card h3 { color: var(--text); margin-bottom: 10px; }
.leistung-card p { font-size: 14px; line-height: 1.75; }
.leistung-divider { width: 36px; height: 2px; background: var(--purple); margin: 14px 0; border-radius: 1px; }

/* ── WARUM ── */
.warum { padding: 80px 8%; background: white; }
.warum-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.warum-text h2 { margin-bottom: 16px; }
.warum-list { list-style: none; margin-top: 28px; display: flex; flex-direction: column; gap: 14px; }
.warum-list li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 15px; color: var(--text-light);
}
.warum-list li::before {
  content: '✓'; width: 22px; height: 22px; background: var(--purple-bg);
  color: var(--purple); border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-weight: 700; font-size: 12px; flex-shrink: 0; margin-top: 1px;
}
.warum-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat-box {
  color: white; padding: 32px 24px; border-radius: 16px;
  text-align: center; transition: transform 0.3s;
}
.stat-box:hover { transform: translateY(-4px); }
.stat-box:nth-child(1) { background: var(--purple); }
.stat-box:nth-child(2) { background: var(--dark-bg); }
.stat-box:nth-child(3) { background: var(--dark-section); }
.stat-box:nth-child(4) { background: var(--purple-dark); }
.stat-number { font-size: 2.8rem; font-weight: 800; line-height: 1; display: block; }
.stat-label { font-size: 13px; opacity: 0.75; margin-top: 6px; display: block; }

/* ── 5 SCHRITTE ── */
.schritte { background: var(--dark-bg); padding: 80px 8%; color: white; }
.schritte h2 { color: white; margin-bottom: 8px; }
.schritte > .section-label { color: rgba(255,255,255,0.45); }
.schritte > .section-label::before { background: rgba(255,255,255,0.25); }
.schritte-subtitle { color: rgba(255,255,255,0.65); font-size: 1.05rem; margin-bottom: 48px; max-width: 500px; }
.schritte-list { display: flex; flex-direction: column; gap: 0; max-width: 720px; }
.schritt {
  display: grid; grid-template-columns: 64px 1fr; gap: 24px; padding: 28px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07); align-items: flex-start; transition: all 0.2s;
}
.schritt:last-child { border-bottom: none; }
.schritt:hover .schritt-num { background: var(--purple-light); border-color: var(--purple-light); }
.schritt-num {
  width: 48px; height: 48px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700; color: white;
  flex-shrink: 0; transition: all 0.25s;
}
.schritt-content h3 { color: white; margin-bottom: 6px; }
.schritt-content p { color: rgba(255,255,255,0.55); font-size: 14px; }

/* ── KONTAKT ── */
.kontakt-section { display: grid; grid-template-columns: 1fr 1fr; min-height: 70vh; }
.kontakt-form-side {
  padding: 80px 6% 80px 8%; background: white;
  display: flex; flex-direction: column; justify-content: center;
}
.kontakt-form-side h2 { margin-bottom: 10px; }
.kontakt-form-side .intro-text { color: var(--text-light); margin-bottom: 32px; font-size: 15px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.form-group input, .form-group textarea {
  width: 100%; padding: 12px 16px; border: 2px solid #e2e8f0;
  border-radius: 8px; font-size: 15px; font-family: inherit;
  transition: border 0.2s; outline: none; background: #fafafa;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--purple); background: white; }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-hint { font-size: 12px; color: var(--text-light); margin-top: 20px; margin-bottom: 14px; }
.btn-submit {
  background: var(--purple); color: white; border: none; padding: 15px 32px;
  border-radius: 8px; font-size: 15px; font-weight: 700; cursor: pointer;
  transition: all 0.25s; width: 100%;
}
.btn-submit:hover { background: var(--purple-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(45,27,105,0.3); }
.kontakt-info-side { overflow: hidden; position: relative; }
.kontakt-info-side img { width: 100%; height: 100%; object-fit: cover; transition: transform 8s ease; }
.kontakt-info-side:hover img { transform: scale(1.05); }
.kontakt-info-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(26,15,61,0.96));
  padding: 40px 32px; color: white;
}
.kontakt-info-overlay h3 { font-size: 1.2rem; margin-bottom: 16px; }
.kontakt-info-line { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 14px; color: rgba(255,255,255,0.85); }
.kontakt-info-line svg { width: 16px; height: 16px; color: rgba(255,255,255,0.45); flex-shrink: 0; }

/* ── FOOTER ── */
footer {
  background: #0a0520; color: rgba(255,255,255,0.55);
  padding: 40px 8%; display: flex;
  justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
}
.footer-logo { display: flex; align-items: center; }
.footer-logo img { height: 30px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { font-size: 13px; transition: color 0.2s; }
.footer-links a:hover { color: white; }
.footer-copy { font-size: 12px; }

/* ── MAP ── */
.map-section { height: 420px; }
.map-section iframe { width: 100%; height: 100%; border: none; display: block; }

/* ── PAGE HERO ── */
.page-hero {
  background: linear-gradient(135deg, var(--purple-dark), var(--purple));
  padding: 120px 8% 60px; color: white; min-height: 280px;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.page-hero .eyebrow { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: rgba(255,255,255,0.55); margin-bottom: 10px; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); }

/* ── JOBS ── */
.job-link-btn {
  display: flex; align-items: center; gap: 10px; padding: 16px 24px;
  border: 2px solid var(--purple); border-radius: 10px; font-weight: 600;
  color: var(--purple); transition: all 0.2s; font-size: 15px;
}
.job-link-btn svg { width: 20px; height: 20px; }
.job-link-btn:hover { background: var(--purple); color: white; transform: translateY(-3px); box-shadow: 0 8px 24px rgba(45,27,105,0.2); }

/* ── IMPRESSUM ── */
.impressum-block { margin-bottom: 32px; }
.impressum-block h3 { color: var(--purple); font-size: 12px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; font-weight: 700; }
.impressum-block p { font-size: 15px; line-height: 1.8; }

/* ── MOBILE ── */
@media (max-width: 900px) {
  .split, .warum-inner, .kontakt-section { grid-template-columns: 1fr; }
  .hero-content { width: 100%; max-width: 100%; padding: 80px 6% 60px; }
  .hero-image { height: auto; }
  .split-image { height: 50vw; }
  .split.reverse { direction: ltr; }
  .split-text { padding: 48px 6%; }
  .leistungen-grid { grid-template-columns: 1fr; }
  .warum-stats { grid-template-columns: 1fr 1fr; }
  .kontakt-info-side { height: 50vw; }
  .nav-links { display: none; flex-direction: column; position: fixed; top: 68px; left: 0; right: 0; background: rgba(26,15,61,0.98); padding: 16px; }
  .nav-links.open { display: flex; }
  .nav-hamburger { display: flex; }
  .leistungen, .warum, .schritte { padding: 56px 6%; }
  .stat-box:nth-child(2), .stat-box:nth-child(4) { margin-top: 0; }
}
@media (max-width: 600px) {
  .hero-content { padding: 56px 6%; }
  .warum-stats { grid-template-columns: 1fr 1fr; }
  footer { flex-direction: column; text-align: center; }
}
