:root {
  --bg: #0a1226;
  --bg-alt: #0f1c38;
  --bg-card: #101d3a;
  --border: #22335c;
  --text: #eef1f8;
  --muted: #8b98bd;
  --accent: #29a8e0;
  --accent-deep: #2456c4;
  --accent-warm: #e8a34d;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

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

/* ---------- Topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: rgba(18,20,26,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  display: flex; justify-content: space-between; align-items: center;
  height: 72px;
}
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }
.logo img { height: 30px; width: auto; display: block; }
.topnav { display: flex; gap: 28px; }
.topnav a { font-size: 14px; color: var(--muted); transition: color 0.2s; }
.topnav a:hover { color: var(--text); }

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center;
  padding: 88px 24px 120px;
  position: relative;
}
.hero::before {
  content: ''; position: absolute; top: -120px; right: -180px; width: 640px; height: 640px;
  background: radial-gradient(circle, rgba(41,168,224,0.16) 0%, rgba(36,86,196,0.08) 45%, transparent 72%);
  pointer-events: none; z-index: -1;
}
.hero-watermark {
  position: absolute; top: 50%; right: -40px; width: 460px; height: auto;
  transform: translateY(-50%); opacity: 0.1; pointer-events: none; z-index: -1;
  filter: saturate(1.4);
}
@media (max-width: 860px) { .hero-watermark { display: none; } }
.eyebrow, .section-eyebrow {
  font-family: var(--font-mono); font-size: 12px; color: var(--accent);
  text-transform: lowercase; letter-spacing: 0.02em; margin-bottom: 20px;
}
h1 {
  font-family: var(--font-display); font-size: 52px; line-height: 1.08; font-weight: 700;
  letter-spacing: -0.02em; margin-bottom: 24px;
  opacity: 0; transform: translateY(12px);
  animation: rise 0.7s 0.1s ease forwards;
}
.hero-sub {
  font-size: 16px; color: var(--muted); max-width: 460px; margin-bottom: 32px;
  opacity: 0; transform: translateY(12px);
  animation: rise 0.7s 0.25s ease forwards;
}
.hero-cta {
  display: flex; gap: 12px;
  opacity: 0; transform: translateY(12px);
  animation: rise 0.7s 0.4s ease forwards;
}
@keyframes rise { to { opacity: 1; transform: translateY(0); } }

.btn {
  display: inline-flex; align-items: center; padding: 12px 24px; border-radius: 8px;
  font-size: 14px; font-weight: 600; transition: all 0.2s; border: 1px solid transparent;
}
.btn-primary { background: linear-gradient(135deg, var(--accent-deep), var(--accent)); color: #ffffff; box-shadow: 0 8px 24px rgba(41,168,224,0.25); }
.btn-primary:hover { filter: brightness(1.08); box-shadow: 0 10px 28px rgba(41,168,224,0.35); }
.btn-ghost { border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-large { padding: 16px 32px; font-size: 15px; }

/* ---------- Status Panel (Signature Element) ---------- */
.status-panel {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px;
  overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  opacity: 0; transform: translateY(16px) scale(0.98);
  animation: rise 0.7s 0.35s ease forwards;
}
.panel-head {
  display: flex; align-items: center; gap: 7px; padding: 12px 16px;
  background: var(--bg-alt); border-bottom: 1px solid var(--border);
}
.panel-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--border); }
.panel-title { margin-left: auto; font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.panel-body { padding: 20px 18px; font-family: var(--font-mono); font-size: 13px; min-height: 140px; }
.panel-line {
  display: flex; align-items: center; gap: 10px; padding: 7px 0; color: var(--muted);
  opacity: 0; animation: typeIn 0.4s ease forwards;
}
.panel-line .status-dot { flex-shrink: 0; }
.panel-line .svc-name { color: var(--text); min-width: 130px; }
.panel-line .svc-desc { color: var(--muted); font-size: 12px; }
@keyframes typeIn { to { opacity: 1; } }

.status-dot {
  width: 7px; height: 7px; border-radius: 50%; display: inline-block;
}
.status-dot.online { background: var(--accent); box-shadow: 0 0 0 0 rgba(41,168,224,0.5); animation: pulse 2.4s infinite; }
.status-dot.building { background: var(--accent-warm); }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(41,168,224,0.45); }
  70% { box-shadow: 0 0 0 6px rgba(41,168,224,0); }
  100% { box-shadow: 0 0 0 0 rgba(41,168,224,0); }
}

/* ---------- Über ---------- */
.ueber { padding: 80px 24px; border-top: 1px solid var(--border); }
.ueber-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: start; }
.ueber h2 { font-family: var(--font-display); font-size: 34px; line-height: 1.15; font-weight: 600; }
.ueber-text { color: var(--muted); font-size: 15.5px; line-height: 1.75; }

/* ---------- Projekte ---------- */
.projekte { padding: 80px 24px; border-top: 1px solid var(--border); }
.section-title { font-family: var(--font-display); font-size: 34px; font-weight: 600; margin-bottom: 40px; }
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.project-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px;
  padding: 24px; display: flex; flex-direction: column; gap: 12px; transition: border-color 0.2s, transform 0.2s;
}
.project-card:hover { border-color: #37404f; transform: translateY(-3px); }
.project-card-future { border-style: dashed; }
.project-head { display: flex; align-items: center; gap: 8px; }
.project-tag { font-family: var(--font-mono); font-size: 11px; color: var(--muted); text-transform: lowercase; }
.project-card h3 { font-family: var(--font-display); font-size: 19px; font-weight: 600; }
.project-card p { color: var(--muted); font-size: 14px; line-height: 1.6; flex: 1; }
.project-link { font-size: 13px; font-weight: 600; color: var(--accent); }

/* ---------- Kontakt ---------- */
.kontakt { padding: 96px 24px; border-top: 1px solid var(--border); text-align: left; }
.kontakt-text { color: var(--muted); font-size: 15.5px; max-width: 440px; margin-bottom: 28px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 28px 24px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); }
.footer-links { display: flex; gap: 20px; }
.footer-links a:hover { color: var(--text); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 56px; }
  h1 { font-size: 38px; }
  .ueber-grid { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: 1fr; }
  .topnav { gap: 16px; }
}

/* ---------- Accessibility ---------- */
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
