/* definiert wie das body TAG gestyled wird: Schriftart, Abstände, etc. */
body {
  font-family: sans-serif;
  margin: 0;
  padding: 0;
}
/* definiert wie das footer TAG gestyled wird: Textfarbe, Abstand und Hintergrundfarbe */
footer {
  background-color: #333;
  color: white;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
}
/* Links im Footer werden ohne Unterstreichung dargestellt, bis sie gehovt werden */
footer a {
  color: #ddd;
  text-decoration: none;
}
footer a:hover {
  text-decoration: underline;
}
/* Navigation im Header, flexibles Layout durch flexbox, Abstände durch gap */
header nav {
  background-color: #333;
  color: white;
  padding: 1rem;
  display: flex;
  gap: 1rem;
}
header nav a {
  color: white;
  text-decoration: none;
}
/* Hero Bereich für den Header */
.hero {
  position: relative;
  height: 100vh;
  background-image: url("hero.jpg");
  background-size: cover;
  background-position: center;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  z-index: 1;
}
.hero h1,
.hero p,
.cta-button {
  position: relative;
  z-index: 2;
}
.cta-button {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border: none;
  background-color: white;
  color: #333;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}
.cta-button:hover {
  background-color: #ddd;
}
main {
  padding: 2rem;
}
.explanation {
  background-color: #eef;
  padding: 1rem;
  margin-bottom: 2rem;
  border-left: 5px solid #88c;
}
.container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
.card {
  background-color: #f5f5f5;
  border-radius: 8px;
  padding: 1rem;
  width: 250px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

#home .card {
  padding: 2rem;
  border-radius: 20px;
  text-decoration: none;
  border-color: #88c;
  border-style: groove;
}

#home .card:hover {
  background-color: #88c;
  color: #f5f5f5;
}
#projekte {
  scroll-margin-top: 100px;
}
@media (max-width: 600px) {
  .hero h1 {
    font-size: 2rem;
  }
  .hero p {
    font-size: 1rem;
  }
}
