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

/* === Color tokens === */
:root {
  --bg:      #ffffff;
  --text:    #111111;
  --muted:   #6b7280;
  --accent:  #2563eb;
  --border:  #e5e7eb;
  --card-bg: #f9fafb;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg:      #0f0f0f;
    --text:    #f0f0f0;
    --muted:   #9ca3af;
    --accent:  #3b82f6;
    --border:  #1f1f1f;
    --card-bg: #141414;
  }
}

/* === Base === */
body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

/* === Layout === */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* === Nav === */
nav {
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--text);
  letter-spacing: -0.01em;
}
.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 150ms;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); }

.lang-switcher {
  display: flex;
  gap: 0.35rem;
  align-items: center;
  font-size: 0.8rem;
  color: var(--muted);
  margin-left: 0.5rem;
}
.lang-switcher span { user-select: none; }
.lang-switcher button {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.8rem;
  padding: 0;
  transition: color 150ms;
}
.lang-switcher button:hover,
.lang-switcher button.active {
  color: var(--text);
  font-weight: 600;
}

/* === Hero === */
.hero { padding: 4rem 0 2rem; }
.hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}
.hero p { color: var(--muted); font-size: 1.05rem; }

/* === Project Grid === */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  padding: 2rem 0 4rem;
}
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  text-decoration: none;
  color: var(--text);
  display: block;
  transition: border-color 150ms, transform 150ms;
}
.card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.card-title {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}
.card-desc {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

/* === About === */
.about-section { padding: 4rem 0; }
.about-name {
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}
.about-role {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.about-meta {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.about-meta-row {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9rem;
}
.about-meta-label {
  color: var(--muted);
  min-width: 110px;
  flex-shrink: 0;
}

/* === Impressum === */
.impressum-section {
  padding: 4rem 0;
  max-width: 600px;
}
.impressum-section h1 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
}
.impressum-section h2 {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}
.impressum-section p {
  font-size: 0.9rem;
  line-height: 1.7;
}

/* === Footer === */
footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--muted);
}
.footer-inner a {
  color: var(--muted);
  text-decoration: none;
  transition: color 150ms;
}
.footer-inner a:hover { color: var(--text); }

/* === Responsive nav === */
@media (max-width: 520px) {
  .container { padding: 0 1rem; }
  .nav-links { gap: 0.75rem; }
  .lang-switcher { margin-left: 0; }
}
