/* styles.css */

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

header {
    background-color: #bfa67a;
    color: white;
    padding: 10px 0;
    text-align: center;
}

nav ul {
    list-style: none;
    padding: 0;
}

nav ul li {
    display: inline-block;
    margin: 0 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
}

.main {
    padding: 20px;

}

.maininner
{
    margin: 4%;
    padding-bottom: 50px;
}


h1, h2, h3 {
    color: #333;
}

form {
    max-width: 500px;
    margin: 0 auto;
}

form label {
    display: block;
    margin-top: 10px;
}

form input[type="text"],
form input[type="email"],
form input[type="password"],
form input[type="date"],
form textarea,
form select {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
}

form button {
    margin-top: 15px;
    padding: 10px 15px;
    background-color: #008CBA;
    color: white;
    border: none;
    cursor: pointer;
}

form button:hover {
    background-color: #005f6a;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

table, th, td {
    border: 1px solid #ccc;
}

th, td {
    padding: 10px;
    text-align: left;
}

.error {
    color: red;
}

.button {
    display: inline-block;
    padding: 10px 15px;
    background-color: #4CAF50;
    color: white;
    text-decoration: none;
    margin-top: 10px;
}

.button:hover {
    background-color: #45a049;
}

footer {
    background-color: #f1f1f1;
    color: #333;
    text-align: center;
    padding: 10px 0;
    position: fixed;
    width: 100%;
    bottom: 0;
}

/* Karten-Stile */
.card-container {
    perspective: 1000px;
    width: 300px;
    height: 400px;
    margin: 20px;
}

.card {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    cursor: pointer;
}

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

.card .front, .card .back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border: 1px solid #ccc;
    border-radius: 8px;
    overflow: hidden;
}

.card .front img, .card .back img {
    width: 100%;
    height: 70%;
    object-fit: cover;
}

.card .front .challenge-text, .card .back .challenge-text {
    padding: 10px;
    height: 30%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card .back {
    transform: rotateY(180deg);
}

/* Responsive Karten */
@media (max-width: 768px) {
    .card-container {
        width: 200px;
        height: 270px;
    }
}