/* Grundlegendes Styling */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    /*background-color: #f0f0f0; Heller grauer Hintergrund */
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}
.container {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    width: 90%;
    max-width: 500px;
    box-sizing: border-box;
    text-align: center;
    position: relative;
}
#logo {
    max-width: 150px;
    margin-bottom: 20px;
}
h1, h2 {
    color: #333;
}
p {
    color: #555;
}
.button {
    padding: 12px 24px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 20px;
    align-self: center;
    transition: background-color 0.3s;
}
.button:hover {
    background-color: #218838;
}
.options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}
.option {
    background-color: #e9ecef;
    padding: 15px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
    user-select: none;
}
.option:hover {
    background-color: #ced4da;
    transform: scale(1.02);
}
.option.selected {
    background-color: #28a745;
    color: white;
}
/* Seiten verstecken */
.page {
    display: none;
}
.page.active {
    display: block;
}
/* Formular Styling */
.form-group {
    margin-top: 15px;
    text-align: left;
}
.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #333;
}
.form-group input {
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 5px;
}
.spinner {
    border: 8px solid #f3f3f3; 
    border-top: 8px solid #28a745;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
    display: none; /* Standardmäßig ausblenden */
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success Page Styling */
.success-container {
    text-align: center;
    padding: 20px;
}

.success-animation {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.checkmark-circle {
    width: 80px;
    height: 80px;
    position: relative;
    display: inline-block;
    vertical-align: top;
}

.checkmark {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: block;
    stroke-width: 2;
    stroke: #28a745;
    stroke-miterlimit: 10;
    animation: checkmark-circle 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-circle-bg {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: #28a745;
    fill: none;
    animation: checkmark-stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    stroke: #28a745;
    stroke-width: 3;
    animation: checkmark-stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes checkmark-stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes checkmark-circle {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;     
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.success-title {
    color: #28a745;
    font-size: 28px;
    margin-bottom: 15px;
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

.success-message {
    color: #555;
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 25px;
    animation: fadeInUp 0.6s ease-out 0.6s both;
}

.success-details {
    margin-top: 20px;
    animation: fadeInUp 0.6s ease-out 0.8s both;
}

.success-details p {
    color: #28a745;
    font-weight: 500;
    margin: 8px 0;
    font-size: 14px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 600px) {
    .button {
        width: 100%;
    }
    .option {
        font-size: 16px;
    }
}