/* Lebensbalance-Check Tool Styles */

:root {
    --gold: #c9a227;
    --gold-light: #e4c76b;
    --gold-dark: #a68521;
    --primary-color: #2c5f7d;
    --text-dark: #1a1a1a;
    --text-light: #666;
    --bg-light: #f7f7f7;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --success-color: #4caf50;
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }

body {
    background: var(--bg-light);
    font-family: var(--font-body);
    font-size: 1.125rem;
    color: var(--text-dark);
    margin: 0;
    padding: 0;
    line-height: 1.7;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.tool-container {
    padding: 40px 20px 80px;
    min-height: calc(100vh - 200px);
}

/* Header */
.simple-header {
    background: var(--gold);
    padding: 1rem 0;
}

.simple-header .container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.simple-header .back-link {
    position: absolute;
    left: 20px;
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    opacity: 0.8;
}

.simple-header .back-link:hover {
    opacity: 1;
}

.simple-header .logo {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--bg-white);
    text-decoration: none;
}

.simple-header .byline {
    font-size: 1rem;
    color: white;
    opacity: 0.9;
}

/* Progress Bar */
.progress-bar {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 0 auto 40px;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-white);
    border: 3px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 8px;
}

.progress-step.active .step-circle {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

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

.progress-step span {
    font-size: 0.875rem;
    color: var(--text-light);
}

.progress-step.active span {
    color: var(--gold-dark);
    font-weight: 600;
}

/* Tool Steps */
.tool-step {
    display: none;
    background: var(--bg-white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.tool-step.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

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

.tool-step h1 {
    font-family: var(--font-display);
    font-size: 2rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.step-intro {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* Explanation Box */
.explanation-box {
    background: linear-gradient(to right, rgba(201, 162, 39, 0.08), rgba(201, 162, 39, 0.02));
    border-left: 4px solid var(--gold);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.explanation-box p {
    margin: 0;
    color: var(--text-light);
}

/* Rating Grid */
.rating-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.rating-item {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
}

.rating-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.rating-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.rating-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.rating-item h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--gold-dark);
    margin: 0 0 0.25rem 0;
}

.rating-item .description {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
}

/* Slider */
.slider-container {
    display: flex;
    flex-direction: column-reverse;
}

.slider {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(to right, #f5ecd3 0%, var(--gold) 100%);
    outline: none;
    cursor: pointer;
}

.slider[data-initial="true"] {
    opacity: 0.4;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    border: 3px solid var(--gold);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    border: 3px solid var(--gold);
    cursor: pointer;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}

.slider-labels span {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 600;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.15s ease;
}

.slider-labels span:hover {
    background: var(--gold-light);
    color: var(--text-dark);
}

.slider-labels span.selected {
    background: var(--gold);
    color: white;
    transform: scale(1.1);
}

/* Buttons */
.step-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.btn {
    font-family: var(--font-body);
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: var(--gold);
    color: white;
}

.btn-primary:hover {
    background: var(--gold-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--bg-light);
    color: var(--text-dark);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--gold);
    color: var(--gold-dark);
}

/* Results */
#results-export {
    margin-bottom: 2rem;
    background: var(--bg-white);
    overflow: hidden;
}

.export-header {
    background: var(--gold);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.export-logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.export-byline {
    font-size: 0.9rem;
    color: white;
    opacity: 0.9;
}

.export-headline {
    font-family: var(--font-display);
    font-size: 1.75rem;
    text-align: center;
    color: var(--gold-dark);
    margin: 1.5rem 0 0.5rem;
    padding: 0 1.5rem;
}

.export-intro {
    text-align: center;
    color: var(--text-light);
    margin: 0 0 1.5rem;
    padding: 0 1.5rem;
    font-size: 1rem;
}

.chart-container {
    max-width: 500px;
    margin: 0 auto 2rem;
}

/* Summary Stats */
.summary-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 8px;
}

.stat-value {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    display: block;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-light);
}

.stat-item.highlight-green {
    background: linear-gradient(135deg, #f0fdf4 0%, #fafafa 100%);
    border-left: 3px solid var(--success-color);
}

.stat-item.highlight-gold {
    background: linear-gradient(135deg, #fffbeb 0%, #fafafa 100%);
    border-left: 3px solid var(--gold);
}

/* Interpretation */
.interpretation-guide {
    margin: 2rem 0;
}

.interpretation-guide h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.interpretation-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.interpretation-card {
    background: var(--bg-white);
    padding: 1.25rem;
    border-top: 3px solid var(--gold);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.interpretation-card .card-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.interpretation-card h4 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    margin: 0 0 0.5rem 0;
    color: var(--text-dark);
}

.interpretation-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.5;
}

/* Areas Ranking */
.areas-ranking {
    margin: 2rem 0;
}

.areas-ranking h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 0.5rem;
}

.ranking-intro {
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

#ranking-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ranking-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: var(--bg-light);
    border-radius: 6px;
    border-left: 4px solid var(--gold);
}

/* 3-Stufen-Farbabstufung: Gold (8-10), Blau (5-7), Orange (1-4) */
.ranking-item.level-high { border-left-color: var(--gold); }
.ranking-item.level-mid { border-left-color: var(--primary-color); }
.ranking-item.level-low { border-left-color: #f59e0b; }

.ranking-icon { font-size: 1.25rem; }
.ranking-name { flex: 1; font-weight: 500; }
.ranking-score {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gold-dark);
}

.ranking-item.level-high .ranking-score { color: var(--gold-dark); }
.ranking-item.level-mid .ranking-score { color: var(--primary-color); }
.ranking-item.level-low .ranking-score { color: #d97706; }

.ranking-bar {
    width: 100px;
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.ranking-bar-fill {
    height: 100%;
    background: var(--gold);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.ranking-item.level-high .ranking-bar-fill { background: var(--gold); }
.ranking-item.level-mid .ranking-bar-fill { background: var(--primary-color); }
.ranking-item.level-low .ranking-bar-fill { background: #f59e0b; }

/* Newsletter CTA */
.newsletter-cta {
    background: #4469a0;
    color: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    margin: 2rem 0;
}

.newsletter-cta h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.newsletter-cta p {
    max-width: 500px;
    margin: 0 auto 1.5rem;
    opacity: 0.95;
}

.newsletter-cta .btn-primary {
    background: var(--gold);
    color: white;
}

.newsletter-cta .btn-primary:hover {
    background: var(--gold-dark);
}

/* Coaching CTA */
.coaching-cta {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    margin: 2rem 0;
}

.coaching-cta h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.coaching-cta p {
    max-width: 500px;
    margin: 0 auto 1.5rem;
    opacity: 0.95;
}

.coaching-cta .cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.coaching-cta .btn-white {
    background: white;
    color: var(--gold-dark);
}

.coaching-cta .btn-outline-white {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.coaching-cta .btn-outline-white:hover {
    background: white;
    color: var(--gold-dark);
}

/* Export Section */
.export-section {
    text-align: center;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border-color);
    margin-top: 2rem;
}

.export-section h2 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.export-section p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Privacy Notice */
.privacy-notice {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 2rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.privacy-notice .privacy-icon {
    font-size: 1.25rem;
    color: var(--success-color);
}

.privacy-notice p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
}

/* Footer */
.simple-footer {
    background: #000;
    color: white;
    padding: 1.5rem 0;
    text-align: center;
}

.simple-footer p {
    margin: 0;
    font-size: 0.85rem;
    opacity: 0.9;
}

.simple-footer a {
    color: white;
    text-decoration: none;
    opacity: 0.7;
}

.simple-footer a:hover {
    opacity: 1;
    color: var(--gold);
}

/* Print */
.print-only { display: none !important; }
.no-print { }

@media print {
    .print-only { display: block !important; }
    .no-print, .newsletter-cta, .coaching-cta, .export-section, .step-actions, .progress-bar, .privacy-notice, .simple-footer { display: none !important; }
    body { background: white; }
    .tool-step { box-shadow: none; }
}

/* Mobile */
@media (max-width: 768px) {
    .tool-step { padding: 20px; }
    .tool-step h1 { font-size: 1.5rem; }

    .summary-stats { grid-template-columns: 1fr; }

    .step-actions { flex-direction: column; }
    .btn { width: 100%; }

    .interpretation-cards { grid-template-columns: 1fr; }

    .ranking-bar { display: none; }

    .coaching-cta .cta-buttons { flex-direction: column; }
}

@media (max-width: 480px) {
    .slider-labels span {
        width: 24px;
        height: 24px;
        font-size: 0.75rem;
    }

    .progress-step span { display: none; }
}
