* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f4f4f9;
    text-align: center;
    flex-direction: column;
}

.card-container {
    perspective: 1000px;
    width: 100%;
    max-width: 400px;
    height: auto;
}

.card {
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.6s;
    display: flex;
    flex-direction: column;
    position: relative;  /* Sicherstellen, dass die Karte relativ positioniert ist */
    max-width: 400px;  /* Maximale Breite festlegen */
    height: 450px;  /* Feste Höhe festlegen */
}

.card.flipped {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Elemente am Anfang positionieren */
    align-items: center;
    text-align: center;
    border-radius: 10px;
    box-sizing: border-box;
}

.card-front {
    background-color: #f0f0f0; /* Gleiche Hintergrundfarbe wie die Rückseite */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    flex-grow: 1;
}

.card-back {
    background-color: #f0f0f0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transform: rotateY(180deg);
    flex-grow: 1;
    overflow: auto;  /* Scrollbar für die Rückseite hinzufügen */
}

.logo {
    max-width: 150px;
    margin-bottom: 20px;
}

h1 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #333;
}

h2 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
}

.datenschutz-header {
    margin-top: 40px;  /* Mehr Abstand nach oben */
    margin-bottom: 10px;  /* Weniger Abstand nach unten */
}

.impressum p {
    font-size: 14px;
    margin-bottom: 5px;
    color: #666;
    line-height: 1.2;  /* Kleineren Zeilenabstand für das Impressum */
}

.datenschutz {
    margin-top: 10px;  /* Weniger Abstand nach oben */
}

.datenschutz p {
    font-size: 16px;
    margin-bottom: 20px;
    color: #666;
}

.contact {
    margin-top: 20px; /* Abstand zu den Buttons erhöhen */
    margin-bottom: 10px; /* Abstand zum QR-Code etwas verringern */
}

.contact button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    margin: 5px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
}

.contact button:hover {
    background-color: #45a049;
}

.flip-link {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    margin-top: 20px;
}

.flip-link:hover {
    text-decoration: underline;
}

#qrcode {
    margin-top: 10px;
    margin-bottom: 10px; /* Abstand zum QR-Code verringern */
    cursor: pointer;
    align-self: center;
}

.back-arrow {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 24px;
    color: #333;
    cursor: pointer;
}

.back-arrow:hover {
    color: #45a049;
}
