/* MG Online Income Analyzer - Mind Analyzer Style */
:root {
    --income-primary: #10b981;
    --income-primary-light: #34d399;
    --income-primary-dark: #059669;
    --income-secondary: #f59e0b;
    --income-secondary-light: #fbbf24;
    --income-bg-light: #f0fdf4;
    --income-bg-white: #ffffff;
    --income-text-primary: #1f2937;
    --income-text-secondary: #6b7280;
    --income-border: #e5e7eb;
    --income-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    --income-shadow-lg: 0 20px 25px rgba(0, 0, 0, 0.1);
    --income-radius: 20px;
    --income-radius-lg: 24px;
}

.mg-income-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Header mit Glassmorphism */
.income-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2.5rem 2rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(245, 158, 11, 0.1) 100%);
    backdrop-filter: blur(10px);
    border-radius: var(--income-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--income-shadow-lg);
}

.income-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    padding: 20px;
    background: linear-gradient(135deg, var(--income-primary), var(--income-secondary));
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.income-icon-wrapper svg {
    width: 100%;
    height: 100%;
    color: white;
}

.income-header h2 {
    font-size: 2.25rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--income-primary-dark), var(--income-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 1rem 0;
    letter-spacing: -0.02em;
}

.income-subtitle {
    font-size: 1.125rem;
    color: var(--income-text-secondary);
    margin: 0;
    line-height: 1.6;
}

/* Form Container */
#income-analyzer-form {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    border-radius: var(--income-radius-lg);
    padding: 2.5rem;
    box-shadow: var(--income-shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* Fragen */
.income-question-group {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(240, 253, 244, 0.5) 0%, rgba(254, 243, 199, 0.5) 100%);
    border-radius: var(--income-radius);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.income-question-group:hover {
    border-color: var(--income-primary-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(16, 185, 129, 0.2);
}

.income-question-text {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--income-text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.question-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--income-primary), var(--income-secondary));
    color: white;
    border-radius: 50%;
    font-size: 0.875rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* Likert-Skala */
.income-likert-scale {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 1rem;
}

.income-likert-option {
    flex: 1;
    position: relative;
}

.income-likert-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.income-likert-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 0.5rem;
    background: white;
    border: 2px solid var(--income-border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.likert-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--income-bg-light);
    border: 3px solid var(--income-border);
    transition: all 0.3s ease;
    position: relative;
}

.likert-circle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--income-primary), var(--income-secondary));
    transition: transform 0.3s ease;
}

.income-likert-option input[type="radio"]:checked + .income-likert-label .likert-circle::after {
    transform: translate(-50%, -50%) scale(1);
}

.income-likert-option input[type="radio"]:checked + .income-likert-label {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(245, 158, 11, 0.1));
    border-color: var(--income-primary);
}

.income-likert-option input[type="radio"]:checked + .income-likert-label .likert-circle {
    border-color: var(--income-primary);
}

.likert-text {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--income-text-secondary);
    text-align: center;
}

.income-likert-option:hover .income-likert-label {
    border-color: var(--income-primary-light);
    transform: translateY(-2px);
}

/* Scale Labels */
.income-scale-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 0.75rem;
    padding: 0 0.5rem;
}

.scale-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--income-text-secondary);
}

/* Submit Button */
.income-submit-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.25rem 2rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, var(--income-primary), var(--income-secondary));
    border: none;
    border-radius: var(--income-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
    margin-top: 2rem;
}

.income-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(16, 185, 129, 0.5);
}

.income-submit-btn:active {
    transform: translateY(-1px);
}

.btn-icon {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.income-submit-btn:hover .btn-icon {
    transform: translateX(4px);
}

/* Results Section */
#income-analyzer-result {
    margin-top: 3rem;
    padding: 2.5rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(245, 158, 11, 0.05) 100%);
    backdrop-filter: blur(20px);
    border-radius: var(--income-radius-lg);
    border: 2px solid var(--income-primary-light);
    box-shadow: var(--income-shadow-lg);
}

.result-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.result-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    padding: 16px;
    background: linear-gradient(135deg, var(--income-primary), var(--income-secondary));
    border-radius: 50%;
    color: white;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.result-icon svg {
    width: 100%;
    height: 100%;
}

/* Progress Circle */
.income-progress-container {
    position: relative;
    width: 240px;
    height: 240px;
    margin: 0 auto 2rem;
}

.income-progress-circle {
    transform: rotate(-90deg);
}

.progress-bg {
    fill: none;
    stroke: var(--income-border);
    stroke-width: 12;
}

.progress-bar {
    fill: none;
    stroke: url(#gradient-income);
    stroke-width: 12;
    stroke-linecap: round;
    stroke-dasharray: 628;
    stroke-dashoffset: 628;
    transition: stroke-dashoffset 2s ease;
}

.progress-text-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.progress-percentage {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--income-primary-dark), var(--income-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.progress-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--income-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Interpretation */
.income-interpretation {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: var(--income-radius);
    margin-bottom: 2rem;
    border: 2px solid var(--income-primary);
}

.interpretation-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--income-primary-dark);
    margin: 0 0 1rem 0;
    line-height: 1.3;
}

.interpretation-text {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--income-text-secondary);
    margin: 0;
}

/* Suggestions */
.income-suggestions {
    margin-top: 2rem;
}

.income-suggestions h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--income-text-primary);
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.income-suggestions h4::before {
    content: '💡';
    font-size: 1.5rem;
}

.income-suggestions ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.75rem;
}

.income-suggestions li {
    padding: 1rem;
    background: white;
    border-radius: var(--income-radius);
    border-left: 4px solid var(--income-primary);
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--income-text-primary);
    box-shadow: var(--income-shadow);
}

/* CTA Box */
.income-cta-box {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    margin-top: 2rem;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1), rgba(251, 146, 60, 0.1));
    border-radius: var(--income-radius);
    border: 2px solid var(--income-secondary);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.2);
}

.cta-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    background: white;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: var(--income-shadow);
}

.cta-content {
    flex: 1;
}

.cta-content p {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--income-text-primary);
    line-height: 1.5;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--income-secondary), #f97316);
    color: white;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.4);
}

.cta-button:hover,
.cta-button:focus {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.5);
    color: white;
    text-decoration: none;
}

.cta-button .arrow {
    transition: transform 0.3s ease;
}

.cta-button:hover .arrow {
    transform: translateX(4px);
}

/* Utility */
.hidden {
    display: none !important;
}

/* Loading State */
.income-submit-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.income-submit-btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#income-analyzer-result:not(.hidden) {
    animation: slideInUp 0.6s ease;
}

/* Error Highlight */
.error-highlight {
    animation: shake 0.5s;
    border-color: #ef4444 !important;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

/* Notification */
.income-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1.25rem 1.75rem;
    background: white;
    border-radius: var(--income-radius);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    font-size: 0.9375rem;
    font-weight: 600;
    z-index: 10000;
    max-width: 400px;
    animation: slideInRight 0.4s ease;
    border-left: 4px solid;
}

.income-notification.error {
    border-left-color: #ef4444;
    color: #991b1b;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .mg-income-container {
        margin: 1rem 0;
        padding: 0;
    }

    .income-header {
        padding: 1.5rem 1rem;
        margin-bottom: 1.5rem;
    }

    .income-icon-wrapper {
        width: 60px;
        height: 60px;
        padding: 15px;
        margin-bottom: 1rem;
    }

    .income-header h2 {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }

    .income-subtitle {
        font-size: 0.9375rem;
    }

    #income-analyzer-form {
        padding: 1.25rem;
        border-radius: 16px;
    }

    .income-question-group {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }

    .income-question-text {
        font-size: 0.9375rem;
        gap: 0.5rem;
        flex-direction: column;
        align-items: flex-start;
    }

    .question-number {
        width: 24px;
        height: 24px;
        font-size: 0.75rem;
    }

    .income-likert-scale {
        gap: 0.375rem;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0.5rem;
    }

    .income-likert-option {
        min-width: 60px;
    }

    .income-likert-label {
        padding: 0.625rem 0.375rem;
        min-height: 80px;
    }

    .likert-circle {
        width: 28px;
        height: 28px;
        border-width: 2px;
    }

    .likert-circle::after {
        width: 14px;
        height: 14px;
    }

    .likert-text {
        font-size: 0.6875rem;
        line-height: 1.2;
        word-break: break-word;
    }

    .income-scale-labels {
        font-size: 0.8125rem;
        padding: 0 0.25rem;
    }

    .income-submit-btn {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }

    #income-analyzer-result {
        padding: 1.5rem 1rem;
        margin-top: 1.5rem;
    }

    .result-header {
        margin-bottom: 1.5rem;
    }

    .result-icon {
        width: 48px;
        height: 48px;
        padding: 12px;
    }

    .income-progress-container {
        width: 180px;
        height: 180px;
        margin-bottom: 1.5rem;
    }

    .income-progress-circle {
        width: 180px;
        height: 180px;
    }

    .progress-percentage {
        font-size: 2.5rem;
    }

    .progress-label {
        font-size: 0.75rem;
    }

    .income-interpretation {
        padding: 1.25rem;
        margin-bottom: 1.5rem;
    }

    .interpretation-title {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }

    .interpretation-text {
        font-size: 0.9375rem;
        line-height: 1.6;
    }

    .income-suggestions {
        margin-top: 1.5rem;
    }

    .income-suggestions h4 {
        font-size: 1rem;
    }

    .income-suggestions li {
        padding: 0.875rem;
        font-size: 0.875rem;
        line-height: 1.5;
    }

    .income-cta-box {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1.5rem 1rem;
    }

    .cta-icon {
        width: 48px;
        height: 48px;
        font-size: 2rem;
    }

    .cta-content p {
        font-size: 1rem;
    }

    .cta-button {
        width: 100%;
        justify-content: center;
        padding: 0.875rem 1.5rem;
    }

    .income-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        padding: 1rem 1.25rem;
        font-size: 0.875rem;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .income-header h2 {
        font-size: 1.375rem;
    }

    .income-subtitle {
        font-size: 0.875rem;
    }

    #income-analyzer-form {
        padding: 1rem;
    }

    .income-question-group {
        padding: 0.875rem;
    }

    .income-question-text {
        font-size: 0.875rem;
    }

    .income-likert-option {
        min-width: 55px;
    }

    .income-likert-label {
        padding: 0.5rem 0.25rem;
        min-height: 75px;
    }

    .likert-circle {
        width: 24px;
        height: 24px;
    }

    .likert-circle::after {
        width: 12px;
        height: 12px;
    }

    .likert-text {
        font-size: 0.625rem;
    }

    .income-progress-container {
        width: 160px;
        height: 160px;
    }

    .income-progress-circle {
        width: 160px;
        height: 160px;
    }

    .progress-percentage {
        font-size: 2.25rem;
    }

    .interpretation-title {
        font-size: 1.125rem;
    }

    .interpretation-text {
        font-size: 0.875rem;
    }
}

/* Landscape mode optimization */
@media (max-width: 768px) and (orientation: landscape) {
    .income-header {
        padding: 1rem;
    }

    .income-icon-wrapper {
        width: 50px;
        height: 50px;
        padding: 12px;
    }

    .income-progress-container {
        width: 140px;
        height: 140px;
    }

    .income-progress-circle {
        width: 140px;
        height: 140px;
    }

    .progress-percentage {
        font-size: 2rem;
    }
}