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

:root {
  --primary-color: #1a1a1a;
  --secondary-color: #4a5568;
  --accent-color: #2c5282;
  --bg-light: #f8fafc;
  --border-light: #e2e8f0;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-heading: Georgia, "Times New Roman", serif;
}

body {
  line-height: 1.7;
  background: #fff;
  color: var(--primary-color);
  font-family: var(--font-main);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent-color);
  text-decoration: none;
}

a:visited {
  color: var(--accent-color);
}

/* ================= HERO ================= */
.hero {
  text-align: center;
  padding: 100px 20px 80px;
  background-color: #f0f0f0; /* leichter Grauton */
  border-bottom: 1px solid var(--border-light);
}

.profile-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 30px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  border: 4px solid #fff;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.hero .title {
  font-size: 1.2rem;
  color: var(--secondary-color);
  max-width: 600px;
  margin: 0 auto 30px;
  font-weight: 300;
}

/* ================= NAVIGATION ================= */
nav {
  margin-top: 20px;
  text-align: center;
}

nav a {
  margin: 0 18px;
  font-size: 0.95rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
}

nav a:hover,
nav a.active {
  color: var(--accent-color);
  border-bottom: 2px solid var(--accent-color);
  padding-bottom: 4px;
}

/* ================= SECTIONS ================= */
section {
  padding: 40px 25px;
  max-width: 850px;
  margin: auto;
}

h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  margin-bottom: 25px;
  position: relative;
  display: block;
}

h2::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  background: var(--accent-color);
  margin-top: 10px;
}

section p {
  margin-bottom: 20px;
  font-size: 1.1rem;
  color: #334155;
}

/* ================= SKILLS ================= */
.skills-section {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 25px;
}

.skills-category {
  flex: 1 1 200px;
  text-align: left;
}

.skills-category h3 {
  font-family: var(--font-heading);
  margin-bottom: 30px;
}

.skills {
  list-style: none;
  padding-left: 15px;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 10px;
}

.skills li {
  background: var(--bg-light);
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 0.9rem;
  border: 1px solid var(--border-light);
  color: var(--secondary-color);
}

/* ================= TARGET POSITIONS ================= */
.target-positions {
  margin-top: 20px;
}

.target-positions p {
  margin-bottom: 25px;
  font-size: 1.1rem;
  line-height: 1.5;
}

.target-positions ul.skills {
  margin-bottom:0.8px;
  list-style: none;
  padding-left: 15px;
  margin: 0;
}

.target-positions ul.skills li {
  margin-bottom:0.8px;
  font-size: 0.9rem;
  line-height: 1.5;
  font-family: var(--font-main);
}

/* ================= PROJECTS ================= */
#projects {
  padding: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.project-card.project-vertical {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background-color: #f9f9f9;
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1.2rem;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  transition: transform 0.2s ease;
}

.project-card h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  margin-bottom: 0.3rem;
}

.project-card .project-date {
  font-size: 0.85rem;
  color: #777;
  margin-bottom: 0.8rem;
}

.project-card .project-links {
  margin-bottom: 0.8rem;
}

.project-card .project-links a {
  text-decoration: none;
  background-color: #333;
  color: #fff;
  padding: 0.35rem 0.7rem;
  border-radius: 6px;
  font-size: 0.85rem;
  transition: background-color 0.2s ease;
}

.project-card .project-links a:hover {
  background-color: #555;
}

.project-card .project-description,
.project-card .project-description ul,
.project-card .project-description li {
  font-family: var(--font-main);
  font-size: 1.1rem;
  line-height: 1.6;
  color: #334155;
  margin: 0;
  padding: 0;
}

.project-card .project-description ul {
  list-style: disc;
  padding-left: 20px;
}

.project-card .project-description li {
  margin-bottom: 8px;
}

/* Projektbild */
.project-card .project-image {
  width: 200px;
  height: auto;
  margin-top: 0.8rem;
}

.project-card .project-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: contain;
}

/* ================= CONTACT ================= */
#contact p {
  margin-bottom: 4px;
}

.contact-buttons {
  display: flex;
  gap: 15px;
  margin-top: 15px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.contact-btn {
  padding: 10px 18px;
  border-radius: 8px;
  background: #f5f7fa;
  color: #333;
  font-weight: 500;
  border: 1px solid #e5e7eb;
  transition: all 0.2s ease;
}

.contact-btn:hover {
  background: #2a6df4;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

/* ================= FOOTER ================= */
footer {
  text-align: center;
  padding: 50px 20px;
  background: var(--primary-color);
  color: #fff;
}

footer a {
  color: #cbd5e0;
  text-decoration: none;
  transition: color 0.3s;
}

footer a:hover {
  color: #fff;
}

/* ================= MEDIA QUERIES ================= */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.2rem;
  }

  nav a {
    margin: 8px;
    font-size: 0.85rem;
  }

  .skills-section {
    flex-direction: column;
  }

  .skills-category {
    flex: 1 1 100%;
  }
}

@media (max-width: 600px) {
  .project-card.project-vertical {
    padding: 0.8rem;
  }

  .project-card .project-image {
    width: 150px;
  }

  .project-card h3 {
    font-size: 1.2rem;
  }
}

/* ===================== ARTICLE CARDS ===================== */
.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 20px;
}

.article-card {
  display: flex;
  flex-direction: row;
  background-color: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  overflow: hidden;
  width: 100%;
  max-width: 850px;
  transition: transform 0.2s ease;
}

.article-card:hover {
  transform: translateY(-3px);
}

.article-thumb {
  width: 200px;
  height: auto;
  object-fit: cover;
  flex-shrink: 0;
}

.article-content {
  padding: 1rem 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.article-content h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.article-content p {
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 0.7rem;
  color: #334155;
}

.article-content a {
  font-size: 0.95rem;
  color: #2c5282;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.article-content a:hover {
  color: #1a365d;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 768px) {
  .article-card {
    flex-direction: column;
    align-items: center;
  }

  .article-thumb {
    width: 100%;
    height: 180px;
  }

  .article-content {
    padding: 0.8rem 1rem;
    text-align: center;
  }
}