:root {
  --bg: #faf9f7;
  --surface: #ffffff;
  --surface-hover: #f5f3f0;
  --border: #e8e5e0;
  --text: #4a4640;
  --text-muted: #908a82;
  --accent: #2d6a4f;
  --accent-light: #edf5f0;
  --heading: #1a1815;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 3px rgba(26, 24, 21, 0.04);
  --shadow-md: 0 4px 20px rgba(26, 24, 21, 0.06);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 15px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ─── HEADER ─── */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  background: rgba(250, 249, 247, 0.85);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 32px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-brand .name {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 17px;
  color: var(--heading);
  letter-spacing: -0.01em;
}

.header-brand .divider {
  width: 1px;
  height: 14px;
  background: var(--border);
}

.header-brand .title {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 400;
}

nav { display: flex; gap: 2px; }

nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 999px;
  transition: all 0.2s ease;
}

nav a:hover {
  color: var(--heading);
  background: var(--surface-hover);
}

/* ─── HERO ─── */
.hero {
  max-width: 800px;
  margin: 0 auto;
  padding: 120px 32px 80px;
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 56px;
  animation: fadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-text {
  flex: 1;
}

.hero-text h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 700;
  color: var(--heading);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 12px;
}

.hero-text .role {
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-text .desc {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.8;
}

.hero-visual {
  flex-shrink: 0;
  position: relative;
}

.hero-visual::before {
  content: '';
  position: absolute;
  inset: -16px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-light) 0%, transparent 70%);
  z-index: 0;
}

.avatar {
  position: relative;
  z-index: 1;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(26, 24, 21, 0.12);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
}

.avatar:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 70px rgba(26, 24, 21, 0.16);
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-line {
  width: 40px;
  height: 1px;
  background: var(--border);
  margin: 56px 0 0;
}

/* ─── SECTIONS ─── */
.main {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 32px 100px;
  display: flex;
  flex-direction: column;
  gap: 100px;
}

.section-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 8px;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  font-weight: 600;
  color: var(--heading);
  letter-spacing: -0.02em;
  margin-bottom: 36px;
}

/* Kompetenser */
.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tag {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
  user-select: none;
  box-shadow: var(--shadow-sm);
}

.skill-tag:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.skill-tag.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

/* Projekt */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-sm);
}

.project-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.project-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 8px;
}

.project-card p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.project-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.project-link:hover {
  opacity: 0.7;
}

/* Kontakt */
.contact-list {
  display: flex;
  flex-direction: row;
  gap: 10px;
  flex-wrap: wrap;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: all 0.25s ease;
  box-shadow: var(--shadow-sm);
}

.contact-item:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.contact-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}

.contact-item .contact-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 2px;
}

.contact-item .contact-value {
  font-size: 14.5px;
  color: var(--heading);
  font-weight: 500;
}

/* ─── FOOTER ─── */
footer {
  border-top: 1px solid var(--border);
  padding: 36px 32px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

/* ─── SCROLL ANIMATIONS ─── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 640px) {
  .header-brand .title,
  .header-brand .divider { display: none; }
  nav a { padding: 6px 10px; font-size: 12px; }
  .header-inner { padding: 0 20px; }

  .hero { padding: 100px 24px 60px; }
  .hero-inner {
    flex-direction: column-reverse;
    text-align: center;
    gap: 36px;
  }
  .avatar {
    width: 140px;
    height: 140px;
  }
  .hero-line { margin: 48px auto 0; }

  .main { gap: 72px; padding: 0 24px 60px; }
}
