
* {
  box-sizing: border-box;
}

body {
  font-family: sans-serif;
  font-size: 1.125rem;
  background-color: white;
  color: white;
}

.container {
  margin: 8rem auto;
  max-width: 1800px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
figure {
  margin: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  max-width: 360px;
  height: 360px;
  overflow: hidden;
  cursor: none; /* Mauscursor verstecken */
}

figure::after {
  content: '';
  background-color: rgba(0,0,0,0.5);
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  opacity: 0;
  transition: opacity 500ms ease;
}

figure:hover figcaption {
  opacity: 1;
  visibility: visible;
  transform: none;
}

figure:hover::after {
  opacity: 1;
}

figure:hover img {
  transform: scale(1.1);
}

figure img {
  display: block;
  position: absolute;
  transition: transform 500ms ease;
}

figcaption {
  position: absolute; /* Könnte auch "relative" sein, wenn sie nicht dem Cursor folgen soll */
  top: 0; /* braucht man nur, wenn sie dem Cursor folgen soll */
  left: 0; /* braucht man nur, wenn sie dem Cursor folgen soll */
  z-index: 1;
  pointer-events: none; /* braucht man nur, wenn sie dem Cursor folgen soll */
  color: white;
  visibility: hidden;
  opacity: 0;
  transition: opacity 500ms ease, visibility 500ms ease;
}

.grid-container{
  display: grid;
  grid-template-columns: 10px 10px;
  grid-auto-rows: 100px 100px;
  grid-auto-rows: 100px;
  grid-auto-flow: row;
  grid-auto-columns: 100px;
}
/* Globale Stile */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

/* Stile für den Container */
.container {
    text-align: center;
    background-color: #f5f5f5;
    padding: 20px;
}

/* Stile für die Überschrift */
h1 {
    font-size: 36px;
    color: #333;
}

/* Stile für die Liste der Leistungen */
.leistungen {
    list-style-type: none;
    padding: 0;
}

.leistungen li {
    font-size: 24px;
    margin: 10px 0;
    color: #666;
}
