/* Reset und Basis-Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
    margin-bottom: 20px;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.logo i {
    font-size: 2.5rem;
    color: #003580;
}

.logo h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #003580;
    margin: 0;
}

.subtitle {
    font-size: 1.1rem;
    color: #666;
    font-weight: 400;
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    margin-bottom: 40px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #003580, #0071c2);
    border-radius: 3px;
    width: 0%;
    transition: width 0.3s ease;
}

/* Form Sections */
.form-section {
    margin-bottom: 40px;
    padding: 30px;
    background: #fafafa;
    border-radius: 15px;
    border: 1px solid #e0e0e0;
}

.form-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #003580;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-section h2::before {
    content: '';
    width: 4px;
    height: 25px;
    background: #003580;
    border-radius: 2px;
}

/* Input Groups */
.input-group {
    margin-bottom: 25px;
}

.input-group label {
    display: block;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
    font-size: 1rem;
}

.input-group input,
.input-group select,
.input-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: white;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
    outline: none;
    border-color: #003580;
    box-shadow: 0 0 0 3px rgba(0, 53, 128, 0.1);
}

.input-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Smiley Rating System */
.smiley-rating {
    margin-top: 20px;
}

.smiley-scale {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    border: 2px solid #e0e0e0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.smiley-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: 15px 8px;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    min-width: 60px;
}

.smiley-item:hover {
    background: #f0f8ff;
    transform: scale(1.15);
    box-shadow: 0 4px 15px rgba(0, 53, 128, 0.2);
}

.smiley-item.active {
    background: #e3f2fd;
    border: 2px solid #003580;
    transform: scale(1.2);
    box-shadow: 0 6px 20px rgba(0, 53, 128, 0.3);
}

/* Smiley Face Styles */
.smiley-face {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    position: relative;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.smiley-item:hover .smiley-face {
    transform: scale(1.1);
}

.smiley-item.active .smiley-face {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Face Colors */
.red-face { background: #ff4444; }
.orange-face { background: #ff8800; }
.yellow-face { background: #ffdd00; }
.light-green-face { background: #88ff88; }
.green-face { background: #44ff44; }

/* Eyes */
.eyes {
    display: flex;
    gap: 8px;
    margin-bottom: 5px;
}

.eye {
    width: 8px;
    height: 8px;
    background: #000;
    border-radius: 50%;
}

/* Mouth Styles */
.mouth {
    width: 20px;
    height: 10px;
    border: 2px solid #000;
    border-top: none;
    border-radius: 0 0 20px 20px;
    transition: all 0.3s ease;
}

/* Trauriger Mund (nach unten) */
.sad-mouth {
    border: 2px solid #000;
    border-bottom: none;
    border-top: 2px solid #000;
    border-radius: 20px 20px 0 0;
    /* Keine Rotation, damit der Bogen nach unten zeigt */
}

.neutral-mouth {
    width: 20px;
    height: 2px;
    border: none;
    background: #000;
    border-radius: 1px;
}

.happy-mouth {
    border-radius: 0 0 20px 20px;
}

/* Numbers */
.smiley-item .number {
    font-size: 1rem;
    font-weight: 700;
    color: #333;
    transition: all 0.3s ease;
}

.smiley-item:hover .number { color: #003580; transform: scale(1.1); }
.smiley-item.active .number { color: #003580; font-weight: 800; transform: scale(1.2); }

/* Responsive Smiley Scale */
@media (max-width: 768px) {
    .smiley-scale { flex-wrap: wrap; gap: 8px; padding: 15px; }
    .smiley-item { flex: 1; min-width: 50px; padding: 10px 5px; }
    .smiley-face { width: 40px; height: 40px; }
    .eye { width: 6px; height: 6px; }
    .mouth { width: 16px; height: 8px; }
    .smiley-item .number { font-size: 0.9rem; }
}

/* House chooser */
.house-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
    margin-top: 10px;
}

.house-radio { position: absolute; opacity: 0; pointer-events: none; }

.house-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 12px;
    border: 2px solid #e0e0e0;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.house-icon { font-size: 20px; color: #003580; flex-shrink: 0; }
.house-item:hover .house-icon { color: #0054a6; }

.house-name { font-weight: 500; color: #333; }

.house-item:hover { background:#f0f8ff; transform: translateY(-1px); }
.house-radio:checked + .house-item { border-color:#003580; background:#e3f2fd; box-shadow: 0 4px 15px rgba(0, 53, 128, 0.15); }
.house-radio:checked + .house-item .house-icon { color: #003580; }

@media (max-width: 480px) {
    .smiley-scale { padding: 10px; gap: 5px; }
    .smiley-item { padding: 8px 3px; min-width: 45px; }
    .smiley-face { width: 35px; height: 35px; }
    .eye { width: 5px; height: 5px; }
    .mouth { width: 14px; height: 7px; }
    .smiley-item .number { font-size: 0.8rem; }
}

/* Star Ratings */
.star-ratings {
    display: grid;
    gap: 25px;
}

.rating-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: white;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.rating-item:hover {
    border-color: #003580;
    box-shadow: 0 4px 12px rgba(0, 53, 128, 0.1);
}

.rating-item label {
    font-weight: 500;
    color: #333;
    font-size: 1.1rem;
    margin: 0;
    min-width: 120px;
}

.stars {
    display: flex;
    gap: 5px;
    cursor: pointer;
}

.stars i {
    font-size: 2rem;
    color: #ddd;
    transition: all 0.2s ease;
    cursor: pointer;
}

.stars i:hover,
.stars i.active {
    color: #ffc107;
    transform: scale(1.1);
}

.stars i.active {
    text-shadow: 0 0 8px rgba(255, 193, 7, 0.5);
}

/* Photo Upload */
.photo-upload {
    margin-top: 20px;
}

.upload-area {
    border: 3px dashed #ddd;
    border-radius: 10px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fafafa;
}

.upload-area:hover {
    border-color: #003580;
    background: #f0f8ff;
}

.upload-area i {
    font-size: 3rem;
    color: #003580;
    margin-bottom: 15px;
}

.upload-area p {
    margin: 5px 0;
    color: #666;
}

.upload-info {
    font-size: 0.9rem;
    color: #999;
}

.photo-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.photo-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.photo-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.photo-remove {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(220, 53, 69, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Contact Fields */
.contact-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .contact-fields {
        grid-template-columns: 1fr;
    }
}

/* Privacy Section */
.privacy-section {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 25px;
}

.privacy-text {
    margin-bottom: 20px;
}

.privacy-text p {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 0;
    accent-color: #003580;
}

.checkbox-group label {
    font-size: 0.95rem;
    color: #333;
    line-height: 1.5;
    margin: 0;
}

/* Submit Button */
.form-actions {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
}

.submit-btn {
    background: linear-gradient(135deg, #003580, #0071c2);
    color: white;
    border: none;
    padding: 18px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0, 53, 128, 0.3);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 53, 128, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Alerts */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        margin: 10px;
        padding: 15px;
        border-radius: 15px;
    }

    .logo h1 {
        font-size: 1.8rem;
    }

    .form-section {
        padding: 20px;
        margin-bottom: 25px;
    }

    .rating-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .rating-item label {
        min-width: auto;
    }

    .stars i {
        font-size: 1.8rem;
    }

    .number-rating {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .container {
        margin: 5px;
        padding: 10px;
    }

    .form-section {
        padding: 15px;
    }

    .stars i {
        font-size: 1.5rem;
    }

    .submit-btn {
        padding: 15px 30px;
        font-size: 1rem;
    }
}

/* Animation für bessere UX */
.form-section {
    animation: fadeInUp 0.6s ease;
}

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

/* Loading State */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #003580;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Modal basic styles */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal {
    background: #fff;
    width: min(560px, 92vw);
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}

.modal h3 { color:#003580; margin-bottom: 10px; display:flex; align-items:center; gap:10px; }
.modal p { color:#555; margin-bottom: 10px; }
.modal textarea { width:100%; border:2px solid #e0e0e0; border-radius:10px; padding:12px; font-family:inherit; }
.modal textarea:focus { outline:none; border-color:#003580; box-shadow: 0 0 0 3px rgba(0,53,128,.1); }
.modal-actions { display:flex; justify-content:flex-end; gap:10px; margin-top: 14px; }
.btn { padding:10px 18px; border-radius:10px; cursor:pointer; border:none; }
.btn-primary { background:#003580; color:#fff; }
.btn-outline { background:#fff; color:#003580; border:1px solid #003580; }
