/* ===========================
   Allgemeines Layout
=========================== */
body {
  background: linear-gradient(rgba(30,30,40,0.8), rgba(30,30,40,0.8)),
    url("assets/code-1839406_1280.jpg") no-repeat center center fixed;
  background-size: cover;
  margin: 0;
  padding: 0;
  font-family: "Poppins", "Segoe UI", Arial, sans-serif;
  color: #fff;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===========================
   Überschriften
=========================== */
#certificates h1,
#skills h2 {
  margin-top: 120px;
  margin-bottom: 32px;
  text-align: left;
  border-bottom: 3px solid #fff;
  display: inline-block;
  font-size: 2rem;
  font-weight: 600;
}

.skills-category h3 {
  margin-top: 20px;
  margin-bottom: 20px;
  font-size: 1.4rem;
  font-weight: 600;
  border-bottom: 2px solid rgba(255,255,255,0.6);
  display: inline-block;
}

/* ===========================
   Zertifikate Grid
=========================== */
.certificates-grid {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: flex-start;
  margin-bottom: 64px;
}

.certificate-card {
  background: rgba(255,255,255,0.07);
  border-radius: 16px;
  padding: 20px;
  min-width: 220px;
  max-width: 280px;
  flex: 1 1 240px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}

.certificate-card:hover {
  transform: scale(1.03);
  background: rgba(255,255,255,0.15);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* ===========================
   Skills Grid
=========================== */
.skills-grid {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: flex-start;
  margin-bottom: 64px;
}

.skill-tile {
  background: rgba(255,255,255,0.07);
  border-radius: 16px;
  padding: 20px 16px;
  min-width: 120px;
  max-width: 280px;
  flex: 1 1 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.3s ease;
}

.skill-tile img {
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
}

.skill-tile span {
  font-size: 1.05rem;
  font-weight: 500;
}

.skill-tile:hover {
  transform: scale(1.03);
  background: rgba(255,255,255,0.15);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* ===========================
   Mobile Optimierung
=========================== */
@media (max-width: 768px) {
  #certificates h1,
  #skills h2,
  .skills-category h3 {
    margin-left: 0;
    text-align: center;
    font-size: 1.2rem;
    margin-top: 20px;
  }

  .certificates-grid,
  .skills-grid {
    justify-content: center;
    gap: 16px;
  }

  .certificate-card,
  .skill-tile {
    min-width: 140px;
    padding: 16px;
    flex: 1 1 40%;
  }

  .skill-tile span {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  #certificates h1,
  #skills h2 {
    font-size: 1.5rem;
  }

  .certificate-card,
  .skill-tile {
    flex: 1 1 100%;
    min-width: unset;
  }
}
