/*
Theme Name: Scholl+Partner
Theme URI: https://www.seo-medienagentur.de
Description: Updatesicheres Child Theme fuer Divi.
Author: Joa
Template: Steuer
Version: 1.0.0
*/


.partner-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, min(100%, 280px));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.partner-media {
  position: relative;
  aspect-ratio: 650 / 867;
  perspective: 1000px;
}

.partner-flip {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 400ms ease-in-out;
}

.partner-card:hover .partner-flip {
  transform: rotateY(180deg);
}

.partner-front,
.partner-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden; /* zeigt jeweils nur eine Seite */
  border-radius: 4px;
  overflow: hidden;
}

.partner-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.partner-back {
  transform: rotateY(180deg); /* liegt "gespiegelt" bereit, damit sie beim Flip richtig herum erscheint */
  background: #cf2e2e;
  color: #fff;
  padding: 2em;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.partner-content-top h3 {
  margin: 0;
}

.partner-content-top h3 a {
  position: relative;
  display: inline-block;
  font: inherit;
  color: #fff;
  text-decoration: none;
  padding: 20px 0 0 20px;
  font-weight: 700;
  font-size: 1.4em;
  line-height: 1.4;
}

.partner-content-top h3 a::after {
  content: "";
  position: absolute;
  left: 20px;
  bottom: 2px;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 300ms ease-in-out;
}

.partner-content-top h3 a:hover::after {
  width: calc(100% - 20px);
}

.partner-position {
  font: inherit;
  color: #fff;
  padding: 20px 0 0 20px;
  font-size: 1.2em;
  line-height: 1.4;
  margin: 0;
}

.partner-standort {
  font: inherit;
  color: #fff;
  padding: 20px 0 0 20px;
  font-size: 1em;
  line-height: 1.4;
  margin: 0;
}

.partner-content-center {
  margin-top: auto;
}

.partner-email,
.partner-telefon {
  font: inherit;
  color: #fff;
  font-size: 1em;
  line-height: 1.4;
  margin: 0;
}