* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Helvetica, Arial, sans-serif;
  background: linear-gradient(40deg, lightyellow, pink);
  color: darkred;
}

#navbar {
  background-color: darkred;
  padding: 10px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  flex-wrap: wrap;
}

#navbar a {
  text-decoration: none;
  color: white;
  border: 2px solid white;
  padding: 5px 15px;
  margin: 5px;
  transition: all 0.3s ease;
  text-align: center;
  flex-grow: 1;
  max-width: 200px;
  font-size: 0.9em;
}

#navbar a:hover {
  background-color: white;
  color: darkred;
}

#welcome-section {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-top: 60px;
  text-align: center;
}

.profile-image {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 4px solid white;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  margin-bottom: 20px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.profile-image:hover {
  transform: scale(1.05);
}

h1 {
  font-style: italic;
  margin: 0;
}

.description {
  font-size: 1.5em;
  font-weight: bold;
}

section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  width: 100%;
}

hr {
  width: 80%;
  max-width: 600px;
  border: 0;
  height: 1px;
  background: rgba(139, 0, 0, 0.2);
  margin: 40px auto;
}

.project-tile {
  margin-bottom: 20px;
  width: 100%;
  max-width: 600px;
  padding: 25px;
  border-radius: 12px;
  background-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  transition: transform 0.3s ease;
}

.project-tile:hover {
  transform: translateY(-5px);
}

.project-tile a {
  display: inline-block;
  margin-top: 15px;
  color: white;
  background-color: darkred;
  padding: 8px 25px;
  border-radius: 20px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.project-tile a:hover {
  background-color: #a00000;
}

.logic-tile {
  background-color: #2d2d2d;
  border-left: 8px solid darkred;
  color: #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.logic-tile a {
  color: #ff9999;
  background-color: transparent;
  border: 1px solid #ff9999;
}

.logic-tile a:hover {
  background-color: #ff9999;
  color: #2d2d2d;
}

#profile-link {
  display: inline-block;
  margin-top: 15px;
  padding: 12px 24px;
  background-color: darkred;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: all 0.3s ease;
}

#profile-link:hover {
  background-color: white;
  color: darkred;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

@media screen and (min-width: 751px) {
  #navbar {
flex-direction: row; 
    height: 60px;
  }

  h1 {
    font-size: 5em;
  }
  .description {
    font-size: 2em;
  }
  .profile-image {
    width: 200px;
    height: 200px;
  }
  #project-section, #software-logic {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    align-items: stretch;
  }
  .project-tile {
    width: 400px;
    min-height: 250px;
    margin-bottom: 0;
  }
  #project-section h2, 
  #project-section .section-desc,
  #software-logic h2, 
  #software-logic .section-desc {
    flex-basis: 100%;
    width: 100%;
    text-align: center;
  }
  #project-section h2, #software-logic h2 {
    margin-top: 40px;
    font-size: 2.5em;
  }
  #project-section .section-desc, #software-logic .section-desc {
    margin-bottom: 30px;
    font-style: italic;
    opacity: 0.8;
  }
}
@media screen and (max-width: 750px) {
  #navbar {
    flex-direction: column; 
    padding: 15px;
  }

  #navbar a {
    width: 90%; 
    max-width: none;
    margin: 5px 0;
  }

  #welcome-section {

    padding-top: 220px; 
    height: auto; /* Auf Mobile besser auto statt 100vh, um Scrolling-Probleme zu vermeiden */
    padding-bottom: 50px;
  }
  
  h1 { font-size: 2.5em; }
}

