:root {
  --bg:         #0b0f19;
  --surface:    #0f172a;
  --surface2:   #1e293b;
  --border:     #1e293b;
  --border2:    #334155;
  --blue:       #2563eb;
  --blue-lt:    #60a5fa;
  --blue-dim:   #1e3a5f;
  --text:       #f0f4ff;
  --text2:      #94a3b8;
  --text3:      #475569;
  --green:      #4ade80;
  --green-dim:  #052e16;
  --radius:     14px;
  --radius-sm:  9px;
  --font:       'DM Sans', sans-serif;
  --mono:       'DM Mono', monospace;
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
  --bg:       #f8fafc;
  --surface:  #ffffff;
  --surface2: #f1f5f9;
  --border:   #e2e8f0;
  --border2:  #cbd5e1;
  --blue-lt:  #2563eb;
  --blue-dim: #dbeafe;
  --text:     #0f172a;
  --text2:    #475569;
  --text3:    #94a3b8;
  --green:    #16a34a;
  --green-dim:#dcfce7;
}

*, *::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;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background var(--transition), color var(--transition);
  -webkit-font-smoothing: antialiased;
}

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

/* Header */
.header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.2px;
}

.theme-toggle {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--border2);
  background: var(--surface2);
  color: var(--text2);
  cursor: pointer;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.theme-toggle:hover {
  background: var(--border2);
  color: var(--text);
  transform: scale(1.08) rotate(12deg);
}

/* Hero */
.hero {
  text-align: center;
  padding: 72px 24px 48px;
  max-width: 860px;
  margin: 0 auto;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--blue-lt);
  background: var(--blue-dim);
  border-radius: 20px;
  padding: 4px 14px;
  display: inline-block;
  margin-bottom: 20px;
}

h1 {
  font-size: 44px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -1.2px;
  margin-bottom: 16px;
  color: var(--text);
}

.hero-sub {
  font-size: 16px;
  color: var(--text2);
  font-weight: 300;
  max-width: 340px;
  margin: 0 auto;
  line-height: 1.65;
}

/* Projects */
.projects {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px 64px;
}

.section-label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text3);
  margin-bottom: 14px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color var(--transition), transform var(--transition);
}

.project-card--live {
  cursor: pointer;
  border-color: var(--blue-dim);
}

.project-card--live:hover {
  border-color: var(--blue);
  transform: translateY(-2px);
}

.project-card--placeholder {
  opacity: 0.55;
}

.project-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.project-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text3);
}

.project-status {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
}

.status--live {
  background: var(--green-dim);
  color: var(--green);
}

.status--soon {
  background: var(--surface2);
  color: var(--text3);
}

.project-title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.3px;
  color: var(--text);
}

.project-desc {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.6;
  flex: 1;
}

.project-cta {
  font-size: 13px;
  font-weight: 500;
  color: var(--blue-lt);
  margin-top: 4px;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.footer-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 18px 24px;
  font-size: 12px;
  color: var(--text3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-left {
  flex: 1;
  text-align: center;
}

.footer-impressum {
  color: var(--text3);
  font-family: var(--mono);
  font-size: 12px;
  white-space: nowrap;
  text-decoration: none;
}

.footer-impressum:hover { color: var(--text2); }
