/* User Feedback Screen - Optimiertes Design */

/* Responsive Regeln Anwendung */
* {
    box-sizing: border-box;
}

/* Mobile-first responsive improvements */
.feedback-card {
    overflow: hidden;
    max-width: 95vw;
    width: 100%;
    margin: 2rem auto;
    padding: 2rem;
    background: linear-gradient(135deg, #1a1d24 0%, #23272f 100%);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(66, 133, 244, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    position: relative;
}

.feedback-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(66, 133, 244, 0.05) 0%, rgba(66, 133, 244, 0.02) 100%);
    border-radius: 16px;
    pointer-events: none;
}

.feedback-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
    border-color: rgba(66, 133, 244, 0.2);
}

.feedback-title, .feedback-description, .form-label, .error-message, .success-message {
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.6;
}

/* Blocksatz für längere Texte - Regel 081 */
.feedback-description, .error-message, .success-message {
    text-align: justify;
}

/* Zentriertes Design für kurze Texte - Regel 082 */
.feedback-title {
    text-align: center;
    color: #4285F4;
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.2;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #4285F4 0%, #5a9eff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feedback-description {
    color: #b0b0b0;
    font-size: clamp(1.1rem, 3vw, 1.25rem);
    margin-bottom: 2rem;
    text-align: justify;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.6;
    opacity: 0.9;
}

.success-message {
    margin-bottom: 1.5rem;
    color: #10b981;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 1rem;
    border-radius: 12px;
    text-align: justify;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.6;
    backdrop-filter: blur(10px);
}

.error-message {
    margin-bottom: 1.5rem;
    color: #ef4444;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(239, 68, 68, 0.05) 100%);
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 1rem;
    border-radius: 12px;
    text-align: justify;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.6;
    backdrop-filter: blur(10px);
}

.error-list {
    margin: 0.5rem 0 0 0;
    padding-left: 1.5rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.error-list li {
    margin-bottom: 0.25rem;
    color: #ef4444;
}

.feedback-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}

.form-group {
    width: 100%;
    position: relative;
}

.form-label {
    font-weight: 600;
    color: #f5f6fa;
    display: block;
    margin-bottom: 0.75rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.6;
    font-size: 1rem;
    letter-spacing: 0.01em;
}

.required {
    color: #ef4444;
    font-weight: 700;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    border: 2px solid rgba(66, 133, 244, 0.2);
    background: linear-gradient(135deg, #181b20 0%, #1a1d24 100%);
    color: #f5f6fa;
    min-width: 48px;
    min-height: 48px;
    font-size: 1rem;
    line-height: 1.6;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    backdrop-filter: blur(10px);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #4285F4;
    box-shadow: 0 0 0 4px rgba(66, 133, 244, 0.1);
    background: linear-gradient(135deg, #1a1d24 0%, #23272f 100%);
    transform: translateY(-1px);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #6b7280;
    opacity: 0.7;
}

.form-textarea {
    resize: vertical;
    min-height: 140px;
    font-family: inherit;
}

.feedback-submit {
    font-size: 1.1rem;
    padding: 1rem 2rem;
    margin-top: 1rem;
    align-self: flex-end;
    min-width: 48px;
    min-height: 48px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, #4285F4 0%, #5a9eff 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.feedback-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.feedback-submit:hover::before {
    left: 100%;
}

.feedback-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(66, 133, 244, 0.3);
    background: linear-gradient(135deg, #5a9eff 0%, #4285F4 100%);
}

.feedback-submit:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(66, 133, 244, 0.2);
}

.feedback-submit:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.3);
}

/* Responsive Anpassungen */
@media (max-width: 1100px) {
    .feedback-card {
        max-width: 98vw;
        margin: 1.5rem auto;
    }
}

/* Desktop Professional Enhancements */
@media (min-width: 1200px) {
    .feedback-card {
        max-width: 700px;
        padding: 3rem;
        margin: 3rem auto;
    }
    .feedback-form {
        gap: 2rem;
    }
    .form-input, .form-textarea {
        padding: 1.25rem 1.5rem;
        min-width: 48px;
        min-height: 48px;
        font-size: 1.05rem;
    }
    .feedback-submit {
        padding: 1.25rem 2.5rem;
        min-width: 48px;
        min-height: 48px;
        font-size: 1.15rem;
    }
}

/* Tablet Optimierungen */
@media (max-width: 768px) {
    .feedback-card {
        margin: 1rem;
        padding: 1.5rem;
        border-radius: 12px;
    }
    .feedback-title {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 1.25rem;
    }
    .feedback-description {
        font-size: 1.15rem;
        line-height: 1.5;
        margin-bottom: 2rem;
    }
    .form-input, .form-textarea {
        padding: 1rem 1.25rem;
        min-height: 48px;
        font-size: 1rem;
    }
    .feedback-submit {
        font-size: 1.1rem;
        padding: 1rem 2rem;
        min-height: 48px;
        min-width: 200px;
    }
}

/* Mobile Optimierungen */
@media (max-width: 900px) {
    .feedback-card {
        margin: 0.75rem;
        padding: 1.5rem;
    }
    .feedback-title {
        font-size: 1.8rem;
        line-height: 1.3;
        margin-bottom: 1.25rem;
    }
    .feedback-description {
        font-size: 1.1rem;
        line-height: 1.5;
        margin-bottom: 1.75rem;
    }
    .form-input, .form-textarea {
        padding: 1rem;
        min-height: 48px;
    }
    .feedback-submit {
        font-size: 1.05rem;
        padding: 1rem 2rem;
        min-height: 48px;
        min-width: 180px;
    }
}

/* Small Mobile Optimierungen */
@media (max-width: 700px) {
    .feedback-card {
        margin: 0.5rem;
        padding: 1.25rem;
    }
    .feedback-title {
        font-size: 1.6rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }
    .feedback-description {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 1.5rem;
    }
    .form-input, .form-textarea {
        padding: 0.875rem 1rem;
        min-height: 48px;
        font-size: 1rem;
    }
    .feedback-submit {
        font-size: 1rem;
        padding: 0.875rem 1.75rem;
        min-height: 48px;
        min-width: 160px;
    }
}

@media (max-width: 600px) {
    .feedback-card {
        margin: 0.5rem;
        padding: 1rem;
        max-width: 95vw;
    }
    .feedback-title {
        font-size: clamp(1.4rem, 6vw, 1.8rem);
        line-height: 1.3;
        margin-bottom: 1rem;
    }
    .feedback-description {
        font-size: clamp(0.95rem, 3.5vw, 1.1rem);
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }
    .form-input, .form-textarea {
        padding: 0.875rem 1rem;
        min-height: 48px;
        font-size: clamp(0.9rem, 3.5vw, 1rem);
    }
    .feedback-submit {
        font-size: clamp(0.95rem, 3.5vw, 1.1rem);
        padding: 0.875rem 1.75rem;
        min-height: 48px;
        min-width: 160px;
        border-radius: 10px;
    }
}

@media (max-width: 480px) {
    .feedback-card {
        margin: 0.25rem;
        padding: 1rem;
        border-radius: 10px;
    }
    .feedback-title {
        font-size: 1.4rem;
        line-height: 1.3;
        margin-bottom: 0.875rem;
    }
    .feedback-description {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 1.25rem;
    }
    .form-input, .form-textarea {
        padding: 0.75rem 1rem;
        min-height: 48px;
        font-size: 0.95rem;
    }
    .feedback-submit {
        font-size: 0.95rem;
        padding: 0.75rem 1.5rem;
        min-height: 48px;
        min-width: 140px;
        border-radius: 8px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .feedback-card {
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    }
}

/* Print Styles */
@media print {
    .feedback-card {
        box-shadow: none;
        border: 2px solid #ccc;
        background: white;
        color: black;
    }
    .feedback-title {
        color: #4285F4;
        -webkit-text-fill-color: #4285F4;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .feedback-card {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Touch-Gesten Support */
@media (hover: none) and (pointer: coarse) {
    .form-input, .form-textarea, .feedback-submit {
        min-width: 48px;
        min-height: 48px;
    }
}

/* Accessibility Enhancements */
@media (prefers-contrast: high) {
    .feedback-card {
        border: 2px solid #4285F4;
    }
    .form-input, .form-textarea {
        border: 2px solid #4285F4;
    }
}

/* Focus Management */
.feedback-card:focus-within {
    border-color: rgba(66, 133, 244, 0.3);
    box-shadow: 0 8px 32px rgba(66, 133, 244, 0.1);
}

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

.feedback-card {
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Loading State */
.feedback-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.feedback-submit:disabled:hover {
    transform: none;
    box-shadow: none;
} 