/* Custom Styles */
:root {
    --primary-color: #004c3b; /* Dunkelgrün - Hauptfarbe */
    --primary-hover: #00352a;
    --secondary-color: #55b3a0; /* Hellgrün - Sekundärfarbe */
    --accent-color: #621545; /* Brombeere - Akzentfarbe */
    --light-bg: #f0f7f6;
    --text-color: #333;
    --border-color: #e0e0e0;
    --shadow-color: rgba(0, 76, 59, 0.2);
}

html {
    height: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light-bg);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Footer immer am unteren Rand auf Desktop */
@media (min-width: 768px) {
    body {
        min-height: 100vh;
    }
    
    .footer {
        margin-top: auto;
    }
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transition: all 0.3s ease;
}

.btn-link {
    color: var(--primary-color);
    text-decoration: none;
}

.btn-link:hover,
.btn-link:focus {
    color: var(--primary-hover);
    text-decoration: none;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-1px);
}

.btn-outline-primary {
    color: var(--text-color);
    border-color: #666;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Cards */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 6px var(--shadow-color);
    transition: box-shadow 0.3s ease;
    margin-bottom: 2rem;
}

.card:hover {
    box-shadow: 0 8px 15px var(--shadow-color);
}

.card-header {
    border-bottom: 2px solid var(--primary-color);
    background-color: white;
    border-radius: 12px 12px 0 0 !important;
    padding: 1.5rem;
}

/* Form Elements */
.form-control {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
    padding: 0.75rem 1rem;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem var(--shadow-color);
}

.form-floating label {
    color: #666;
    padding: 1rem;
}

/* Survey Styles */
.survey-container {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    background-color: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-top: 4px solid var(--primary-color);
    box-sizing: border-box;
}

.survey-step {
    display: none;
}

.survey-step.active {
    display: block;
    animation: fadeIn 0.5s ease;
    background-color: transparent;
}

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

.survey-question {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 2rem;
    padding: 2rem;
    background-color: white;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 4px var(--shadow-color);
    text-align: center;
}

.survey-options {
    display: grid;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    align-items: stretch;
    padding: 0.5rem;
}

.survey-option {
    position: relative;
}

.survey-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.survey-option label {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
    padding: 1.25rem 1.5rem;
    background-color: white;
    border: 2px solid #999;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-size: 1.1rem;
    height: 100%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-weight: 500;
    color: #666;
}

.survey-option input[type="radio"]:checked + label {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px var(--shadow-color);
    font-weight: bold;
}

.survey-option label:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Progress Bar */
.survey-progress-wrapper {
    position: relative;
    margin: 0 auto 2rem;
    max-width: 800px;
    width: 100%;
    padding: 0 2rem;
    box-sizing: border-box;
}

.survey-progress {
    position: relative;
    width: 100%;
    height: 8px;
    background-color: #f5f5f5;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.survey-progress-bar {
    height: 100%;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
    border-radius: 4px;
}

.survey-progress-text {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    color: #666;
    padding: 0;
    width: 100%;
}

.survey-progress-text .survey-name {
    font-weight: 500;
    color: var(--primary-color);
}

.survey-progress-text .survey-progress-info {
    font-weight: 400;
    color: #666;
}

/* Loading Animation */
.loading-spinner {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

.loading-text {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 1.1rem;
}

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

/* Navigation Buttons */
.survey-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    padding: 1rem;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 2px 4px var(--shadow-color);
}

.survey-navigation .btn {
    min-width: 120px;
}

/* Review Step */
.survey-review {
    background-color: transparent;
    padding: 0;
    border: none;
    box-shadow: none;
}

.review-question {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.review-question-text {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.review-answer {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.review-edit-btn {
    font-size: 0.9rem;
    padding: 0.25rem 0.5rem;
    margin-left: 0.5rem;
}

.survey-nav-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

/* Progress Bar */
.surveys-progress {
    background-color: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 4px var(--shadow-color);
    margin-bottom: 2rem;
}

.progress {
    height: 0.5rem;
    border-radius: 1rem;
    background-color: var(--light-bg);
    margin-top: 0.75rem;
    overflow: hidden;
}

.progress-bar {
    background-color: var(--primary-color);
    border-radius: 1rem;
    transition: width 0.6s ease;
}

/* Thank You Screen */
.thank-you-screen {
    text-align: center;
    padding: 3rem 1rem;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px var(--shadow-color);
}

.thank-you-screen h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.thank-you-screen p {
    color: var(--text-color);
    max-width: 600px;
    margin: 0 auto 1.5rem;
    line-height: 1.8;
}

.next-survey-btn {
    margin-top: 2rem;
    padding: 1rem 2rem;
}

/* Email Reminder Form */
.email-reminder-form {
    max-width: 400px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: var(--light-bg);
    border-radius: 12px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

/* Alerts */
.alert {
    border: none;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px var(--shadow-color);
}

.alert-success {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.alert-danger {
    background-color: #fbe9e7;
    color: #c62828;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .survey-nav-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .survey-nav-buttons .btn {
        width: 100%;
    }

    .survey-options {
        grid-template-columns: 1fr;
    }

    .card-header {
        padding: 1.25rem;
    }

    .survey-question {
        font-size: 1rem;
        padding: 1rem;
    }
}

 