/*
Theme Name: Phlox Child
Theme URI: https://deineseite.de
Description: Ein Child-Theme für das Phlox Theme
Author: Sarah
Author URI: https://deineseite.de
Template: phlox
Version: 1.0.0
*/




/* Grid-Container */
.box-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 40px;
}

/* Einzelne Box */
.box {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
}

/* 1:1 Bildverhältnis */
.box-image-container {
  position: relative;
  width: 100%;
  padding-top: 100%; /* Sorgt für quadratische Form */
  overflow: hidden;
}

.box-image-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Bild wird ohne Verzerren angepasst */
  transition: transform 0.5s ease-in-out, filter 0.5s ease-in-out;
}

/* Overlay-Bereich */
.box-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  color: #fff;
  text-align: center;
  padding: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0)); /* Verlauf von dunkel zu transparent */
  transition: opacity 0.5s ease-in-out;
}

/* Box-Text immer sichtbar */
.box-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  transition: transform 0.5s ease-in-out;
}

/* Name & Beruf (immer sichtbar) */
.box-name {
  margin: 0;
  font-size: 20px;
  color: #fff;
  transition: transform 0.5s ease-in-out;
}

.box-profession {
  font-size: 14px;
  color: #ddd;
  margin-top: 5px;
}

/* "Mehr erfahren" standardmäßig unsichtbar */
.hover-text {
  font-size: 14px;
  color: #ddd;
  margin-top: 5px;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.box:hover .box-text {
  transform: translateY(-20px); /* Name & Beruf rutschen nach oben */
}

/* Hover-Effekt */
.box:hover .hover-text {
  opacity: 1;
}

/* Bild-Zoom beim Hover */
.box:hover .box-image-container img {
  transform: scale(1.1);
  transition: transform 0.5s ease-in-out;
}

.box:hover .box-overlay {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0));
}

.box:hover .box-image-container::after {
  opacity: 0; /* Verlauf verschwindet */
}

/* Responsive Anpassungen */
@media screen and (max-width: 768px) {
  .box-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 480px) {
  .box-container {
    grid-template-columns: repeat(1, 1fr);
  }
}



/* Container für das Teammitglied */
.team-member-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* Profilbild */
.team-member-image img {
    width: 100%;
    max-width: 400px;
    border-radius: 10px;
    margin: 20px auto;
}

/* Name in Beige */
.team-member-name {
    font-size: 26px;
    font-weight: bold;
    color: #D1A878; /* Beige */
    margin-bottom: 5px;
}

/* Beruf */
.team-member-profession {
    font-size: 18px;
    color: #666;
    margin-bottom: 20px;
}

/* Überschriften in Rosa */
.team-member-container h3 {
    font-size: 20px;
    font-weight: bold;
    color: #C9A3A3; /* Rosa */
    text-transform: uppercase;
    margin-top: 30px;
    text-align: left;
}


/* Absätze */
.team-member-container p {
    font-size: 14px;
    color: #333;
    text-align: left;
    line-height: 1.6;
}

/* Listen für Ausbildungen, Angebote, Kurse */
.team-member-container ul {
    list-style: none;
    padding: 0;
}

.team-member-container ul li {
    font-size: 16px;
    color: #333;
    text-align: left;
    margin-bottom: 5px;
}
