/* === AlexMut.de — Personal & Side Projects === */
/* Based on kontakte.me design system */

:root {
  --bg: #0f172a;
  --bg-card: #1e293b;
  --bg-card-hover: #25344a;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-light: #3b82f6;
  --border: #334155;
  --border-light: #475569;
  --radius: 12px;
  --radius-sm: 8px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Light mode (optional toggle) */
@media (prefers-color-scheme: light) {
  :root:not(.dark) {
    --bg: #f8fafc;
    --bg-card: #ffffff;
    --bg-card-hover: #f1f5f9;
    --text: #0f172a;
    --text-muted: #475569;
    --text-dim: #94a3b8;
    --border: #e2e8f0;
    --border-light: #cbd5e1;
  }
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background 0.2s, color 0.2s;
}

a { color: var(--accent-light); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--accent); }

.container { max-width: 960px; margin: 0 auto; padding: 0 24px; }

/* Header */
.header {
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  position: sticky; top: 0; z-index: 100;
  background: var(--bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.header .container {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap;
}
.logo {
  font-size: 1.25rem; font-weight: 700;
  color: var(--text); letter-spacing: -0.02em;
}
.logo span { color: var(--accent-light); }
.nav { display: flex; gap: 20px; align-items: center; }
.nav a { font-size: 0.875rem; color: var(--text-muted); font-weight: 500; }
.nav a:hover { color: var(--text); }

/* Hero */
.hero {
  padding: 80px 0 64px;
  text-align: center;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800; letter-spacing: -0.03em;
  line-height: 1.1; margin-bottom: 16px;
}
.hero h1 span { color: var(--accent-light); display: block; }
.hero p {
  font-size: 1.125rem; color: var(--text-muted);
  max-width: 520px; margin: 0 auto 32px;
}
.hero .badges { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 999px;
  font-size: 0.8125rem; font-weight: 500;
  background: rgba(37, 99, 235, 0.12);
  color: var(--accent-light);
  border: 1px solid rgba(37, 99, 235, 0.2);
}

/* Sections */
.section {
  padding: 64px 0;
  border-top: 1px solid var(--border);
}
.section-label {
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--accent-light);
  margin-bottom: 8px;
}
.section h2 {
  font-size: 1.75rem; font-weight: 700; letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.section-desc {
  color: var(--text-muted); margin-bottom: 32px; max-width: 600px;
}

/* Project Grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all 0.2s;
  display: flex; flex-direction: column; gap: 12px;
}
.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-light);
  transform: translateY(-2px);
}
.card-icon {
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  background: rgba(37, 99, 235, 0.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
}
.card h3 { font-size: 1.125rem; font-weight: 600; letter-spacing: -0.01em; }
.card p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.5; }
.card .card-link {
  font-size: 0.8125rem; font-weight: 600; color: var(--accent-light);
  margin-top: auto; display: inline-flex; align-items: center; gap: 4px;
}
.card .card-link::after { content: '→'; transition: transform 0.15s; }
.card:hover .card-link::after { transform: translateX(3px); }

.card .status {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.75rem; font-weight: 500; padding: 3px 10px;
  border-radius: 999px;
}
.status-live { background: rgba(34, 197, 94, 0.12); color: #22c55e; border: 1px solid rgba(34, 197, 94, 0.2); }
.status-wip { background: rgba(234, 179, 8, 0.12); color: #eab308; border: 1px solid rgba(234, 179, 8, 0.2); }
.status-beta { background: rgba(99, 102, 241, 0.12); color: #818cf8; border: 1px solid rgba(99, 102, 241, 0.2); }

/* Divider */
.divider {
  display: flex; align-items: center; gap: 16px;
  padding: 48px 0;
}
.divider::before, .divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}
.divider span {
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text-dim);
}

/* About */
.about-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px; margin-bottom: 32px;
}
.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}
.about-card .num {
  font-size: 2rem; font-weight: 800; letter-spacing: -0.03em;
  color: var(--accent-light);
}
.about-card .label { font-size: 0.8125rem; color: var(--text-muted); margin-top: 4px; }

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  font-size: 0.8125rem; color: var(--text-dim);
}
.footer .container {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap;
}
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--text-dim); }
.footer-links a:hover { color: var(--text-muted); }

/* Legal Pages */
.legal { padding: 64px 0; max-width: 720px; margin: 0 auto; }
.legal h1 {
  font-size: 2rem; font-weight: 800; letter-spacing: -0.03em;
  margin-bottom: 12px;
}
.legal .updated {
  font-size: 0.8125rem; color: var(--text-dim); margin-bottom: 32px;
}
.legal h2 {
  font-size: 1.25rem; font-weight: 700; margin: 32px 0 12px;
  letter-spacing: -0.01em;
}
.legal p, .legal li {
  font-size: 0.9375rem; color: var(--text-muted); margin-bottom: 8px;
  line-height: 1.7;
}
.legal ul { padding-left: 20px; margin-bottom: 16px; }
.legal a { color: var(--accent-light); text-decoration: underline; }

/* Responsive */
@media (max-width: 640px) {
  .header .container { flex-direction: column; gap: 8px; text-align: center; }
  .nav { justify-content: center; }
  .hero { padding: 48px 0 40px; }
  .section { padding: 48px 0; }
  .grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: repeat(2, 1fr); }
  .footer .container { flex-direction: column; text-align: center; }
}

/* Print */
@media print {
  .header, .footer { position: static; }
  body { font-size: 11pt; }
}
