:root {
  --bg: #060912;
  --surface: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.08);
  --text: #e8edf6;
  --muted: #8a96ac;
  --accent: #38e1c4;
  --accent-2: #4f8cff;
  --error: #ff6b6b;
  --radius: 14px;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---------- Bakgrund ---------- */
#bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  display: block;
}

.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 0%, rgba(79, 140, 255, 0.10), transparent 55%),
    linear-gradient(to bottom, transparent, var(--bg) 90%);
}

/* ---------- Layout ---------- */
main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

/* ---------- Footer ---------- */
.site-footer {
  text-align: center;
  padding: 18px 24px;
  color: var(--muted);
  font-size: 13px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(10px);
  box-shadow: 0 0 40px rgba(56, 225, 196, 0.25);
}

/* ---------- Knapp ---------- */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.btn-primary {
  color: #04121a;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 8px 30px rgba(56, 225, 196, 0.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 38px rgba(56, 225, 196, 0.4); }
.btn:disabled { opacity: 0.7; cursor: default; transform: none; }

/* ---------- Kontakt ---------- */
.contact {
  width: 100%;
  max-width: 440px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 44px 40px;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 60px rgba(56, 225, 196, 0.25);
}

.brand {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  text-align: center;
  margin-bottom: 32px;
}

.contact-form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 13px; color: var(--muted); }

input, textarea {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px 15px;
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s, background 0.2s;
}
input:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(56, 225, 196, 0.05);
}
textarea { resize: vertical; }

.field.invalid input,
.field.invalid textarea { border-color: var(--error); }

.error { color: var(--error); font-size: 12px; min-height: 14px; }

.form-status { font-size: 14px; min-height: 18px; text-align: center; }
.form-status.success { color: var(--accent); }
.form-status.error { color: var(--error); }

.contact-form .btn { margin-top: 6px; }

/* ---------- Responsivt ---------- */
@media (max-width: 480px) {
  .contact { padding: 34px 24px; }
}
