body {
  background-color: black;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  perspective: 1000px;
}

.karte-wrapper {
  width: 340px;
  height: 220px;
  transition: transform 0.8s;
  transform-style: preserve-3d;
  position: relative;
  cursor: pointer;
}

.karte {
  width: 100%;
  height: 100%;
  position: absolute;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(255, 69, 0, 0.5);
  backface-visibility: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.front {
  background-color: #ff4500;
}

.back {
  background-color: #ff4500;
  transform: rotateY(180deg);
  justify-content: flex-start;
  align-items: flex-end;
  padding: 16px;
}

.name {
  color: #000;
  font-weight: bold;
  font-size: 30px;
  text-transform: uppercase;
  white-space: nowrap;
}

.back-text {
  color: #000;
  font-weight: bold;
  font-size: 20px;
  line-height: 1.4;
  text-align: left;
}

.flip {
  transform: rotateY(180deg);
}

.kontakt-link {
  color: inherit;
  text-decoration: none;
  transition: text-decoration 0.2s;
}

.kontakt-link:hover,
.kontakt-link:focus,
.kontakt-link:active {
  text-decoration: underline;
}

/* Hochformat für Smartphones */
@media (max-width: 600px) {
  .karte-wrapper {
    width: 220px;
    height: 340px;
  }

  .name {
    font-size: 18px;
  }

  .back-text {
    font-size: 15px;
  }
}

/* Hochformat für große Smartphones (z.B. iPhone Pro Max) */
@media (max-width: 430px) and (orientation: portrait) {
  .karte-wrapper {
    width: 350px;
    height: 525px;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .karte {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .karte.front {
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  .karte.front .name {
    transform: rotate(-90deg);
    width: 525px;
    text-align: center;
    display: block;
    font-size: 20px;
  }
  .back-text {
    font-size: 20px;
  }
}
