body {
    font-family: Arial, sans-serif;
    padding: 2rem;
    background-color: #f4f4f4;
}
form {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    margin: auto;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}
input, select, textarea {
    display: block;
    width: 100%;
    margin-bottom: 1rem;
    padding: 0.75rem;
    border-radius: 4px;
    border: 1px solid #ccc;
}
input[type="submit"] {
    background-color: #007BFF;
    color: white;
    border: none;
    cursor: pointer;
    font-weight: bold;
}
input[type="submit"]:hover {
    background-color: #0056b3;
}
input[type="radio"] {
    appearance: radio;
    -webkit-appearance: radio;
    -moz-appearance: radio;
    margin-right: 0.5rem;
    transform: scale(1.2);
    cursor: pointer;
}
.variant-selector {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.variant-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 2px solid transparent;
    padding: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.3s, transform 0.2s;
    max-width: 200px;
    text-align: center;
    background-color: #fff;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
}

.variant-card:hover {
    transform: scale(1.03);
    border-color: #007BFF;
}

.variant-card input[type="radio"] {
    display: none;
}

.variant-card img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.variant-card input[type="radio"]:checked + img,
.variant-card input[type="radio"]:checked ~ span {
    border-color: #007BFF;
}

.variant-card input[type="radio"]:checked ~ span {
    font-weight: bold;
    color: #007BFF;
}
#overlay {
    animation: fadeOut 3s ease-out forwards;
}

@keyframes fadeOut {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

.form-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    align-items: flex-start;
    margin-top: 2rem;
}

.image-box {
    flex: 1;
    max-width: 500px;
    min-width: 300px;
    text-align: center;

    /* --- hinzugefügt für Sticky-Effekt --- */
    position: sticky;
    top: 20px; /* Abstand zum oberen Bildschirmrand */
    height: fit-content;
}

.image-box img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.image-box figcaption {
    font-style: italic;
    color: #555;
    margin-top: 0.5rem;
}

.form-box {
    flex: 1;
    min-width: 320px;
    max-width: 600px;
}

@media (max-width: 480px) {
    .form-wrapper {
        flex-direction: column;
        align-items: center;
    }

    .image-box {
        top:2% !important;
        position: fixed;
        width: 120px;
        max-width: 35vw;
        padding: 4px;

        background: white;
        border-radius: 10px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.25);

        z-index: 1000;
        opacity: 0.85;
        backdrop-filter: blur(3px);

        transition: transform 0.25s ease, opacity 0.25s ease;
    }

    .image-box:active,
    .image-box:hover {
        transform: scale(1.08);
        opacity: 1;
    }

    .image-box img {
        width: 100%;
        height: auto;
        border-radius: 6px;
    }

    .image-box figcaption {
        display: none;
    }
}

.highlight-box {
background-color: #ffffff;
border: 2px solid #007BFF;
border-radius: 12px;
padding: 1.5rem;
margin-top: 2rem;
text-align: center;
box-shadow: 0 0 12px rgba(0, 0, 0, 0.08);
}

.highlight-box p {
font-size: 1.1rem;
margin-bottom: 1rem;
color: #222; /* leicht dunkler als Standard-Schwarz */
}

.image-buttons {
display: flex;
justify-content: center;
gap: 2rem;
flex-wrap: wrap;
}

.image-buttons img {
width: 160px;
height: auto;
border-radius: 8px;
box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.image-buttons img:hover {
transform: scale(1.05);
box-shadow: 0 0 12px rgba(0, 123, 255, 0.4);
}

.invalid {
    border: 2px solid red;
    background-color: #ffe6e6;
}