/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* BASIS */
body {
  font-family: 'Roboto', sans-serif;
  background-color: #fff;
  color: #333;
  line-height: 1.6;
}

/* CONTAINER */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* HEADER / NAVIGATION */
.main-header {
  background-color: #007acc;
  color: #fff;
  padding: 1rem 0;
  position: fixed;
  top: 0; /* Header bleibt oben fixiert */
  width: 100%;
  z-index: 999;
}
.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo h1 {
  font-size: 1.5rem;
  font-weight: 700;
}
.nav-list {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}
.nav-list li a {
  text-decoration: none;
  color: #fff;
  font-weight: 400;
  transition: opacity 0.3s;
}
.nav-list li a:hover {
  opacity: 0.8;
}

/* HERO */
.hero-section {
  height: 100vh;
  background: url('img/BaselBild.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: 60px; /* Platz für fixen Header */
  position: relative;
}
.hero-content {
  max-width: 600px;
  color: #fff;
}
.avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  object-fit: cover;
  border: 3px solid #fff;
}
.hero-title {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}
.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}
.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1rem;
}
.hero-description {
  font-size: 1rem;
  margin-top: 1rem;
}

/* BUTTONS */
.btn {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  border-radius: 30px;
  text-decoration: none;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s;
}
.btn-light {
  background-color: #fff;
  color: #007acc;
  border: 2px solid #fff;
}
.btn-light:hover {
  background-color: transparent;
  color: #fff;
}
.btn-outline {
  background-color: transparent;
  color: #fff;
  border: 2px solid #fff;
}
.btn-outline:hover {
  background-color: #fff;
  color: #007acc;
}
.btn-dark {
  background-color: #333;
  color: #fff;
  border: none;
}
.btn-dark:hover {
  background-color: #555;
}

/* SECTIONS */
.section {
  padding: 4rem 1rem;
  margin-top: 2rem;
}
.section-heading {
  text-align: center;
  margin-bottom: 2rem;
}
.section-heading h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
.section-heading p {
  max-width: 600px;
  margin: 0.5rem auto;
  color: #555;
}

/* ÜBER MICH */
.about-content p {
  margin-bottom: 1rem;
}

/* SKILLS */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.skill-box {
  background: #fafafa;
  border: 1px solid #eee;
  padding: 1rem;
  border-radius: 6px;
  text-align: center;
  transition: 0.3s;
}
.skill-box:hover {
  transform: translateY(-3px);
}

/* PROJEKTE */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.project-card {
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 1rem;
  text-align: center;
  transition: 0.3s;
}
.project-card img {
  max-width: 100%;
  border-radius: 4px;
  margin-bottom: 1rem;
}
.project-card:hover {
  transform: translateY(-3px);
}

/* KONTAKT */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 500px;
  margin: 0 auto;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 0.8rem;
  font-size: 1rem;
}
.contact-info p {
  margin-top: 1rem;
  text-align: center;
}
.contact-info a {
  color: #007acc;
  text-decoration: none;
}

/* BLOG */
.blog-post {
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 6px;
  padding: 1rem;
  margin-bottom: 1rem;
  transition: 0.3s;
}
.blog-post:hover {
  transform: translateY(-3px);
}
.blog-post h3 {
  margin-bottom: 0.5rem;
}
.read-more {
  color: #007acc;
  text-decoration: none;
  font-weight: 500;
}

/* LEBENSLAUF */
.resume {
  text-align: center;
}
.resume a.btn-dark {
  margin-top: 1rem;
}

/* FOOTER */
.main-footer {
  background: #f4f4f4;
  color: #333;
  padding: 1rem 0;
  text-align: center;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }
  .hero-subtitle {
    font-size: 1rem;
  }
  .section {
    padding: 2rem 1rem;
  }
  .hero-buttons {
    flex-direction: column;
  }
  
}

.project-list {
  list-style: none;
  padding: 0;
}
.project-list li {
  margin-bottom: 1rem;
  font-size: 1.2rem;
}
.project-list li a {
  text-decoration: none;
  color: #007acc;
  transition: color 0.3s;
}
.project-list li a:hover {
  color: #005fa3;
}


.screenshots {
  display: grid;
  grid-template-columns: 50% 50%;
  gap: 1rem;
}

.screenshot-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}


.project-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  list-style: none;
  padding: 0;
  justify-content: center;
}

.project-list li {
  flex: 1 1 calc(50% - 1rem); /* zwei Blöcke pro Zeile, abzüglich des Abstands */
  background: #f9f9f9;
  padding: 1rem;
  border-radius: 6px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.project-list li a {
  text-decoration: none;
  color: #007acc;
  font-weight: bold;
}