/* ihr-ki-expert.de — Custom Styles */

:root {
    --primary: #0f4c75;
    --primary-light: #1b6ca8;
    --primary-dark: #0a3150;
    --accent: #00b4d8;
    --accent-light: #48cae4;
    --bg-light: #f8fafc;
    --bg-card: #ffffff;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --success: #059669;
    --warning: #d97706;
    --danger: #dc2626;
    --border: #e2e8f0;
}

* { box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    background: var(--bg-light);
    line-height: 1.6;
}

/* Wizard Progress Bar */
.wizard-progress {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 2rem;
}

.wizard-progress::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--border);
    transform: translateY(-50%);
    z-index: 0;
}

.wizard-progress .progress-fill {
    position: absolute;
    top: 50%;
    left: 0;
    height: 2px;
    background: var(--accent);
    transform: translateY(-50%);
    z-index: 1;
    transition: width 0.4s ease;
}

.wizard-step {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.wizard-step .step-circle {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.wizard-step.active .step-circle {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 0 4px rgba(0, 180, 216, 0.15);
}

.wizard-step.completed .step-circle {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.wizard-step .step-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    max-width: 80px;
}

.wizard-step.active .step-label {
    color: var(--accent);
    font-weight: 600;
}

.wizard-step.completed .step-label {
    color: var(--success);
}

/* Likert Scale */
.likert-group {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.likert-option {
    flex: 1;
    text-align: center;
}

.likert-option input[type="radio"] {
    display: none;
}

.likert-option label {
    display: block;
    padding: 0.625rem 0.25rem;
    border: 2px solid var(--border);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    background: white;
}

.likert-option label:hover {
    border-color: var(--accent-light);
    color: var(--primary);
}

.likert-option input[type="radio"]:checked + label {
    border-color: var(--accent);
    background: rgba(0, 180, 216, 0.08);
    color: var(--primary);
    font-weight: 600;
}

/* Radar Chart Container */
.chart-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

/* Score Badge */
.score-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
}

.score-badge.score-low { background: linear-gradient(135deg, var(--danger), #ef4444); }
.score-badge.score-medium { background: linear-gradient(135deg, var(--warning), #f59e0b); }
.score-badge.score-high { background: linear-gradient(135deg, var(--success), #10b981); }

/* Card hover effects */
.module-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.module-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Question card */
.question-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1.25rem;
    margin-bottom: 1rem;
    transition: border-color 0.2s ease;
}

.question-card:hover {
    border-color: var(--accent-light);
}

.question-card.answered {
    border-left: 3px solid var(--accent);
}

/* Form elements */
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border);
    border-radius: 0.5rem;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: white;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.1);
}

.form-input::placeholder {
    color: #94a3b8;
}

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

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 76, 117, 0.3);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background: white;
    color: var(--primary);
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid var(--border);
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-secondary:hover {
    border-color: var(--primary);
    background: rgba(15, 76, 117, 0.04);
}

/* Hero gradient */
.hero-gradient {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
}

/* Dimension colors */
.dim-tech { color: #0ea5e9; }
.dim-org { color: #8b5cf6; }
.dim-people { color: #f59e0b; }
.dim-compliance { color: #10b981; }

.bg-dim-tech { background-color: rgba(14, 165, 233, 0.1); }
.bg-dim-org { background-color: rgba(139, 92, 246, 0.1); }
.bg-dim-people { background-color: rgba(245, 158, 11, 0.1); }
.bg-dim-compliance { background-color: rgba(16, 185, 129, 0.1); }

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

.fade-in-up {
    animation: fadeInUp 0.5s ease forwards;
}

@keyframes pulse-ring {
    0% { box-shadow: 0 0 0 0 rgba(0, 180, 216, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(0, 180, 216, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 180, 216, 0); }
}

.pulse-ring {
    animation: pulse-ring 2s infinite;
}

/* Footer */
.footer-link {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: white;
}

/* Responsive */
@media (max-width: 640px) {
    .likert-group {
        flex-wrap: wrap;
    }
    .likert-option {
        flex: 0 0 calc(50% - 0.25rem);
    }
    .likert-option:last-child {
        flex: 0 0 100%;
    }
    .wizard-step .step-label {
        display: none;
    }
}

/* Print styles for results */
@media print {
    .no-print { display: none !important; }
    body { background: white; }
    .chart-container { break-inside: avoid; }
}
