
body{
  background-color: rgb(83, 83, 83);
}

.card-container {
  position: relative;
  top: 8rem;
  perspective: 1000px;
  width: 370px;
  height: 240px;
  margin: 50px auto;
  transform: scale(1);
  transition: transform 0.3s;

}

.card {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.8s;
}

.card-front, .card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.card-front {
  background-image: url("/visitenkartevorneneu.jpg"); /* Pfad zum Bild der Vorderseite */
}

.card-back {
  background-image: url("/visitenkartehinten.jpg"); /* Pfad zum Bild der Rückseite */
  transform: rotateY(180deg);
}

.card.flipped {
  transform: rotateY(180deg);
}




.back-content {
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* wichtig: Platz oben/unten trennen */
  align-items: center;
  font-family: sans-serif;
  font-size: 1rem;
  padding: 1rem;
  height: 100%; /* füllt Rückseite komplett */
  box-sizing: border-box;
}

.btn-container {
  width: 100%;
  display: flex;
  justify-content: space-between; /* Links an linke/rechte Seite */
  padding: 0 0.5rem;
}

.btn-container a {
  font-size: 0.8rem;
  color: white;
  background-color: rgba(0,0,0,0.6);
  padding: 4px 10px;
  text-decoration: none;
  border-radius: 5px;
  -webkit-text-stroke: 0;
}

.drehenbtn {
  display: block;
  margin: 20px auto 0 auto;
  padding: 6px 16px;
  color: white;
  background-color: rgba(0, 0, 0, 0.6);
  border: none;
  border-radius: 5px;
  font-size: 0.9rem;
  cursor: pointer;
  position: relative;
  top: 8rem;
}


h1 {
  font-family: "Playfair", serif;
  font-optical-sizing: auto;
  font-weight: bold;
  font-style: normal;
  margin-bottom: 0.1rem; /* sehr kleiner Abstand nach unten */
  line-height: 1;
  text-shadow: 2px 2px 2px gray;
}

h3 {
  font-family: "Playfair", serif;
  font-optical-sizing: auto;
  font-weight: bold;
  margin-bottom: 1rem; /* etwas mehr Abstand nach unten */
  line-height: 1.1;
  text-shadow: 1px 1px 1px gray;
}

h4 a {
  font-family: "Playfair", serif;
  font-optical-sizing: auto;
  font-weight: bold;
  font-style: normal;
  margin-bottom: 0.2rem;
  line-height: 1;
}

.back-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100%;
  gap: 0; /* kein automatischer Abstand zwischen Elementen */
}


.h4b{
  margin-top:-0.5rem;
  margin-bottom:-1rem;
}

.h4b2{
  margin-bottom:1.5rem;
}


.whatsapp-button {
  display: block;
  width: fit-content;
  margin: 1rem auto 0 auto; /* zentriert und mit Abstand */
  padding: 0.6rem 1.2rem;
  background-color: #25D366;
  color: white;
  font-weight: bold;
  border-radius: 8px;
  text-decoration: none;
  border: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  text-align: center;

  position: relative;
  top: 9rem;
}

.whatsapp-button:hover {
  background-color: #1ebe5b;
}

@keyframes eindrehen {
  from {
    transform: rotateY(0deg);
  }
  to {
    transform: rotateY(360deg);
  }
}





@keyframes rotateTwice {
  0% {
    transform: rotateY(0deg);
  }
  100% {
    transform: rotateY(720deg);
  }
}

.card.animate-rotate {
  animation: rotateTwice 2s ease-in-out forwards;
}


.btn-insta,
.btn-website{
  font-size: 1.2rem !important;
}

