/* ─── FONTS ─── */
/* Hinweis: <link rel="preconnect"> fuer fonts.gstatic.com steht im HTML-Head jeder Seite */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500&display=swap');

/* ─── VARIABLES ─── */
:root {
  --blue-950: #0a1628;
  --blue-900: #0c2340;
  --blue-800: #133a63;
  --blue-700: #1a4f8a;
  --blue-600: #1e6bbf;
  --blue-500: #2563eb;
  --blue-400: #3b82f6;
  --blue-300: #60a5fa;
  --blue-200: #93c5fd;
  --accent: var(--blue-500);
  --accent-glow: rgba(37,99,235,0.18);
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --text: #1e293b;
  --text-muted: #64748b;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --font-head: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'Courier New', monospace;
  --radius: 10px;
  --radius-lg: 16px;
  --transition: 0.28s cubic-bezier(0.4,0,0.2,1);
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.10);
}

/* ─── RESET ─── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; scroll-padding-top:68px; }
body { font-family:var(--font-body); background:var(--bg); color:var(--text); line-height:1.7; -webkit-font-smoothing:antialiased; overflow-x:hidden; }
img { max-width:100%; display:block; }
a { color:var(--accent); text-decoration:none; transition:color var(--transition); }
a:hover { color:var(--blue-700); }

/* ─── NAVBAR ─── */
.navbar {
  position: fixed; top:0; left:0; right:0; z-index:1000;
  background: rgba(255,255,255,0.93);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: 0 1px 16px rgba(0,0,0,0.07); }
.navbar-inner {
  display: flex; align-items:center; justify-content:space-between;
  max-width:1160px; margin:0 auto; padding:0 28px; height:66px;
}
.logo {
  display:flex; align-items:center; gap:10px;
  font-family:var(--font-head); font-weight:700; font-size:1rem;
  color:var(--gray-900); letter-spacing:0.3px;
}
.logo-mark {
  width:36px; height:36px; border-radius:8px;
  display:block; flex-shrink:0;
}
.nav-links { display:flex; list-style:none; gap:32px; }
.nav-links a {
  font-size:0.82rem; font-weight:500; color:var(--gray-600);
  letter-spacing:0.6px; text-transform:uppercase;
  position:relative; padding:4px 0;
}
.nav-links a::after {
  content:''; position:absolute; bottom:-2px; left:0; width:0; height:2px;
  background:var(--accent); border-radius:1px; transition:width var(--transition);
}
.nav-links a:hover { color:var(--gray-900); }
.nav-links a:hover::after, .nav-links a.active::after { width:100%; }
.nav-links a.active { color:var(--gray-900); }
.nav-cta {
  background:var(--accent); color:white !important;
  padding:8px 20px !important; border-radius:50px;
  font-size:0.82rem !important; font-weight:600 !important;
  transition:background var(--transition), transform var(--transition) !important;
}
.nav-cta:hover { background:var(--blue-700) !important; transform:translateY(-1px); }
.nav-cta::after { display:none !important; }

/* Hamburger */
.hamburger { display:none; flex-direction:column; gap:5px; cursor:pointer; padding:8px; background:none; border:none; z-index:1001; }
.hamburger span { display:block; width:22px; height:2px; background:var(--gray-700); transition:var(--transition); transform-origin:center; }
.hamburger.active span:nth-child(1) { transform:translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity:0; }
.hamburger.active span:nth-child(3) { transform:translateY(-7px) rotate(-45deg); }

/* ─── PAGE HEADER (inner pages) ─── */
.page-header {
  background: linear-gradient(135deg, var(--blue-950) 0%, var(--blue-900) 60%, var(--blue-800) 100%);
  padding: 130px 0 80px;
  position:relative; overflow:hidden;
}
.page-header-grid {
  position:absolute; inset:0;
  background-image: linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 50px 50px;
}
.page-header .container { position:relative; z-index:2; }
.page-label {
  font-family:var(--font-mono); font-size:0.7rem; letter-spacing:4px;
  text-transform:uppercase; color:var(--blue-300);
  display:flex; align-items:center; gap:12px; margin-bottom:14px;
}
.page-label::before { content:''; width:36px; height:1px; background:var(--blue-300); }
.page-header h1 {
  font-family:var(--font-head); font-size:clamp(2rem,4.5vw,3.2rem);
  font-weight:700; color:white; line-height:1.1; margin-bottom:16px;
}
.page-header p {
  color:rgba(255,255,255,0.65); font-size:1.05rem; max-width:540px; line-height:1.8;
}

/* ─── CONTAINER ─── */
.container { width:100%; max-width:1160px; margin:0 auto; padding:0 28px; }

/* ─── SECTION LABELS ─── */
.section-label {
  font-family:var(--font-mono); font-size:0.72rem; letter-spacing:4px;
  text-transform:uppercase; color:var(--accent);
  display:flex; align-items:center; gap:12px; margin-bottom:12px;
}
.section-label::before { content:''; width:36px; height:2px; background:var(--accent); border-radius:1px; }
.section-title {
  font-family:var(--font-head); font-size:clamp(1.8rem,3.5vw,2.5rem);
  font-weight:700; color:var(--gray-900); line-height:1.15; margin-bottom:18px;
}
.section-intro { font-size:1rem; color:var(--text-muted); max-width:580px; line-height:1.85; }

/* ─── FADE IN ─── */
.fade-in { opacity:0; transform:translateY(24px); transition:opacity 0.65s ease, transform 0.65s ease; }
.fade-in.visible { opacity:1; transform:translateY(0); }

/* ─── SCROLL TOP ─── */
.scroll-top {
  position:fixed; bottom:24px; right:24px; width:44px; height:44px;
  background:var(--accent); color:white; border:none; border-radius:50%;
  display:grid; place-items:center; cursor:pointer;
  opacity:0; visibility:hidden; transition:var(--transition); z-index:999;
  box-shadow:0 4px 16px var(--accent-glow);
}
.scroll-top.visible { opacity:1; visibility:visible; }
.scroll-top:hover { transform:translateY(-3px); box-shadow:0 8px 24px var(--accent-glow); }
.scroll-top svg { width:18px; height:18px; }

/* ─── FOOTER ─── */
.footer {
  background:var(--gray-900);
  padding: 64px 0 28px;
}
.footer-grid {
  display:grid; grid-template-columns:1.6fr 1fr 1fr 1fr; gap:40px;
  padding-bottom:48px; border-bottom:1px solid var(--gray-700);
}
.footer h4 { font-family:var(--font-head); font-size:0.78rem; font-weight:700; text-transform:uppercase; letter-spacing:2px; color:white; margin-bottom:18px; }
.footer p, .footer li, .footer a { font-size:0.85rem; color:var(--gray-400); line-height:1.9; }
.footer ul { list-style:none; }
.footer li { margin-bottom:6px; }
.footer a:hover { color:var(--blue-300); }
.footer-bottom { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:10px; padding-top:24px; }
.footer-bottom p { font-size:0.76rem; color:var(--gray-500); }
.footer-bottom-links { display:flex; gap:20px; }
.footer-bottom-links a { font-size:0.76rem; color:var(--gray-500); }
.footer-bottom-links a:hover { color:var(--blue-300); }

/* ─── BUTTONS ─── */
.btn-primary {
  display:inline-flex; align-items:center; gap:10px;
  background:var(--accent); color:white; font-family:var(--font-head);
  font-weight:600; font-size:0.88rem; letter-spacing:0.5px;
  padding:13px 30px; border-radius:50px; border:none; cursor:pointer;
  transition:var(--transition);
}
.btn-primary:hover { background:var(--blue-700); color:white; transform:translateY(-2px); box-shadow:0 8px 24px var(--accent-glow); }
.btn-primary svg { width:16px; height:16px; }

.btn-outline {
  display:inline-flex; align-items:center; gap:10px;
  background:transparent; color:var(--accent); font-family:var(--font-head);
  font-weight:600; font-size:0.88rem;
  padding:12px 28px; border-radius:50px; border:2px solid var(--accent); cursor:pointer;
  transition:var(--transition);
}
.btn-outline:hover { background:var(--accent); color:white; }

/* ─── UTILITY ─── */
.section-alt { background:var(--bg-alt); }
.section-pad { padding:100px 0; }

/* ─── RESPONSIVE ─── */
@media (max-width:900px) {
  .footer-grid { grid-template-columns:1fr 1fr; }
}
@media (max-width:768px) {
  .nav-links {
    position:fixed; top:0; right:-100%; width:280px; height:100vh;
    background:white; flex-direction:column; padding:100px 40px 40px;
    gap:20px; transition:right var(--transition);
    border-left:1px solid var(--gray-200); box-shadow:-8px 0 30px rgba(0,0,0,0.08);
  }
  .nav-links.active { right:0; }
  .hamburger { display:flex; }
  .footer-grid { grid-template-columns:1fr; gap:28px; }
}
