#about {
  padding-top: 40px;
  padding-bottom: 40px;
  position: relative;
  min-height: 100%;
}
#about ul, .table-werdegang .cards-heading {
  font-family: "Roboto Slab", serif;
  color: #000000;
  font-size: 1.0rem;
  line-height: 1.4rem;
  text-align: left;
}
#about .section-heading {
  background: url(../img/opt17.jpg);
  background-position: center bottom;
  background-size: fit;
  background-repeat: repeat;
  position: relative;
  overflow: hidden;
  background-attachment: fixed;
  height: 300px;
  margin-top: 25px;
}

#about .section-heading h1 {
  position: relative;
  padding-top: 90px;
}

#about .section-heading .background::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.6); /* black overlay with 50% opacity */
}

#about .section-heading #name-box {
  padding-bottom: 50px;
  margin-top: 50px;
  text-shadow: #000000 1px 0 10px;
  color: #fff;
  z-index: 1;
  position: relative;
  text-align: center;
}

#about .section-heading #name-box h1 {
  font-size: 3rem;
  color: #fff;
  text-transform: uppercase;
}

/* -------------- Cards Definitions ------------------ */
#about .cards-heading {
  display: flex;
  justify-content: center;
  padding-top: 50px;
}
#about .row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  padding-bottom: 50px;
  padding-top: 20px;
  justify-content: center;
}
#about .row.unbound {
  align-items: flex-start;
}
/* Three columns side by side */
#about .column {
  float: left;
  width: 33.3%;
  margin-bottom: 16px;
  padding: 0 30px;
  display: block;
}


/* Add some shadows to create a card effect */
#about .card {
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
  height: 100%; /* Die Karte soll immer die volle Höhe einnehmen */
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Platz zwischen dem Inhalt und dem Button */
  /* height: 600px; */
}

#about .img-container {
  padding: 10px;
  display: flex;
  justify-content: center;
  height: 350px;
}
#about .img-container img {
  max-width: 100%; /* Bild bleibt innerhalb der Containerbreite */
  max-height: 100%; /* Bild bleibt innerhalb der Containerhöhe */
  width: auto; /* Bewahrt das Seitenverhältnis */
  height: auto; /* Bewahrt das Seitenverhältnis */
  object-fit: contain; /* Passt das Bild an den Container an, ohne es zu verzerren */
  border-style: outset;
}

/* Some left and right padding inside the container */
#about .container-card-description {
  flex-grow: 1;
  padding: 0 16px;
  height: auto;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Clear floats */
#about .container-card-description::after, .row::after {
  content: "";
  clear: both;
  display: table;
}

#about .title {
  color: grey;
}

#about .info {
  font-size: 14px;
  margin: 0px;
  font-style: italic;
}

#about .button-container {
  margin-top: auto;
}
#about .button {
  border: none;
  outline: 0;
  display: block;
  padding: 8px;
  color: white;
  background-color: #000;
  text-align: center;
  cursor: pointer;
  width: 100%;
}

#about .button:hover {
  background-color: #555;
}

/* ------------------ Table Settings Werdegang ---------------- */
#about .table-werdegang {
  /* display: none; */
  flex-wrap: wrap;
  align-items: flex-start;
  flex: 1;
  min-width: 120px;
  padding-bottom: 0px;
  padding-top: 0px;
  justify-content: center;

  display: none;
  max-height: 0;
  overflow: hidden;
  transition: max-height 10s ease-out;
}
#about .table-werdegang.show {
  display: flex;
  max-height: 1000px; /* Genug Platz für den Inhalt */
}

#about th, td{
  text-align: left;
  vertical-align: top;
  padding-left: 0px;
  padding-right: 20px;
  /* min-width: 105px; */
}
#about ul {
  padding-left: 20px;
}
#about ul li {
  list-style-type: disc;
}


/* ----------------- MEDIA SETTTINGS ------------------------ */
/* Display the columns below each other instead of side by side on small screens */
@media screen and (max-width: 650px) {
  #about .column {
    width: 100%;
    padding: 0px;
  }
}