:root {
  /* Moderne Farbpalette */
  --primary: #2563eb;
  --primary-dark: #1e40af;
  --primary-light: #dbeafe;
  --secondary: #8b5cf6;
  --accent: #06b6d4;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --bg-primary: #ffffff;
  --bg-secondary: #f9fafc;
  --bg-card: #ffffff;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --radius: 16px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Basic Resets and Typography */
body {
  background: var(--bg-secondary);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.7;
  color: var(--text-primary);
  font-size: 16px;
  margin: 0;
}

h1,
h2,
h3 {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: 1.5rem;
  color: var(--primary-dark);
}

h3 {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

/* Main Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Header */
.cv-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 40px;
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  background-color: var(--bg-card);
  border: 1px solid var(--border);
}

.header-content h1 {
  font-family: "Michroma", sans-serif;
  font-size: 2.5em;
  margin: 0;
}

.profession {
  font-size: 1.2rem;
  color: var(--text-secondary);
}

.header-contact {
  display: flex;
  gap: 1.5rem;
  margin-top: 1rem;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.profile-bild {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 4px solid var(--primary-light);
  padding: 5px;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
}

/* Sections */
.content-section {
  background: var(--bg-card);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  margin-bottom: 40px;
  border: 1px solid var(--border);
}

.grid-2-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

/* Highlight Box for Experience/Education */
.highlight-box {
  margin-bottom: 1.5rem;
}

/* Skills Section */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.skill-card {
  background: var(--bg-secondary);
  padding: 2rem;
  border-radius: 12px;
  transition: var(--transition);
  border: 1px solid var(--border);
}

.skill-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.skill-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.skill-level {
  background: var(--border);
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 1rem;
}

.skill-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 4px;
}

/* Projects Section */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.project-card {
  background: var(--bg-secondary);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.project-image {
  height: 60px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  position: relative;
}

.project-category {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.95);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
}

.project-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-content p {
  flex-grow: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
}

.tag {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 20px;
  font-size: 0.75rem;
}

/* Footer */
.footer {
  color: var(--text-secondary);
  text-align: center;
  padding: 1.5rem;
  margin-top: 2rem;
}

/* Responsive Design */
@media screen and (max-width: 992px) {
  .grid-2-col {
    grid-template-columns: 1fr;
    gap: 0;
  }
  h1 {
    font-size: clamp(1.8rem, 5vw, 2rem);
  }
  h2 {
    font-size: 1.4rem;
  }
  h3 {
    font-size: 1.05rem;
  }
}

@media screen and (max-width: 768px) {
  .cv-header {
    flex-direction: column;
    text-align: center;
  }
  .header-contact {
    justify-content: center;
  }
  h1 {
    font-size: 1.6rem;
  }
  h2 {
    font-size: 1.15rem;
  }
  h3 {
    font-size: 0.98rem;
  }
}
@media screen and (max-width: 480px) {
  body {
    font-size: 14px;
  }
  .skill-card,
  .project-card {
    padding: 1.5rem;
  }
}
