/* Fonts */
@font-face {
    font-family: 'Tiempos Headline';
    src: url('../assets/fonts/tiempos-headline-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Tiempos Headline';
    src: url('../assets/fonts/tiempos-headline-semibold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Soehne';
    src: url('../assets/fonts/soehne-buch.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Soehne';
    src: url('../assets/fonts/soehne-dreiviertelfett.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg: #01031B;
    --bg-light: #0a0c24;
    --text: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.6);
    --accent: #4F7CFF;
    --accent-glow: rgba(79, 124, 255, 0.3);
    --success: #34D399;
    --warning: #FBBF24;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Soehne', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Screens */
.screen {
    display: none;
    min-height: 100vh;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.screen.active {
    display: flex;
    opacity: 1;
}

/* Start Screen */
#screen-start {
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

#screen-start .container {
    max-width: 600px;
}

.logo {
    margin-bottom: 3rem;
}

.logo svg {
    width: 180px;
    height: auto;
    fill: var(--text);
}

h1 {
    font-family: 'Tiempos Headline', Georgia, serif;
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    font-weight: 400;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

h1 em {
    font-style: italic;
}

.subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.dimensions-preview {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
}

.dimension-tag {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--text);
    color: var(--bg);
    font-family: 'Soehne', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    padding: 1rem 2rem;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.15);
}

.btn-primary svg {
    width: 20px;
    height: 20px;
}

.hint {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Quiz Screen */
#screen-quiz {
    flex-direction: column;
}

.quiz-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.progress-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.progress-fill {
    height: 100%;
    background: var(--text);
    width: 0%;
    transition: width 0.4s ease;
}

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

.quiz-content {
    flex: 1;
    display: flex;
    padding: 2rem;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.quiz-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 600px;
}

.dimension-label {
    display: inline-block;
    background: var(--accent);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.375rem 0.875rem;
    border-radius: 100px;
    margin-bottom: 1.5rem;
}

#question-text {
    font-family: 'Tiempos Headline', Georgia, serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 2rem;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.option:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
}

.option.selected {
    background: rgba(79, 124, 255, 0.15);
    border-color: var(--accent);
}

.option-radio {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.option.selected .option-radio {
    border-color: var(--accent);
    background: var(--accent);
}

.option.selected .option-radio::after {
    content: '';
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

.option-text {
    font-size: 1rem;
}

/* Sidebar */
.quiz-sidebar {
    width: 280px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.radar-container {
    position: relative;
}

#radar-chart {
    display: block;
}

.dimension-scores {
    width: 100%;
}

.dim-score {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.875rem;
}

.dim-score:last-child {
    border-bottom: none;
}

.dim-name {
    color: var(--text-muted);
}

.dim-value {
    font-weight: 600;
    min-width: 2rem;
    text-align: right;
}

.dim-value.filled {
    color: var(--accent);
}

/* Email Screen */
#screen-email {
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

#screen-email .container {
    max-width: 480px;
}

.score-preview {
    margin-bottom: 2rem;
}

.score-ring {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto;
}

.score-ring svg {
    transform: rotate(-90deg);
}

.score-number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Tiempos Headline', Georgia, serif;
    font-size: 2.5rem;
    font-weight: 600;
}

#screen-email h2 {
    font-family: 'Tiempos Headline', Georgia, serif;
    font-size: 2rem;
    margin-bottom: 1rem;
}

#email-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

#email-input {
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: var(--text);
    font-family: 'Soehne', sans-serif;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}

#email-input::placeholder {
    color: var(--text-muted);
}

#email-input:focus {
    border-color: var(--accent);
}

#email-form .btn-primary {
    width: 100%;
    justify-content: center;
}

/* Results Screen */
#screen-results {
    padding: 2rem;
    justify-content: flex-start;
    align-items: center;
    overflow-y: auto;
}

.results-container {
    max-width: 800px;
    width: 100%;
    padding: 2rem 0;
}

.results-header {
    text-align: center;
    margin-bottom: 3rem;
}

.tier-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.08);
    padding: 0.5rem 1.25rem;
    border-radius: 100px;
    margin-bottom: 1.5rem;
}

.tier-desc {
    font-size: 0.875rem;
    opacity: 0.7;
}

.tier-name {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.final-score {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.5rem;
}

.score-big {
    font-family: 'Tiempos Headline', Georgia, serif;
    font-size: 6rem;
    font-weight: 400;
    line-height: 1;
}

.score-label {
    font-size: 1.25rem;
    color: var(--text-muted);
}

.results-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.results-radar {
    display: flex;
    justify-content: center;
    align-items: center;
}

.results-breakdown h3 {
    font-family: 'Tiempos Headline', Georgia, serif;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.breakdown-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.breakdown-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.breakdown-bar {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.breakdown-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 4px;
    transition: width 1s ease;
}

.breakdown-value {
    font-weight: 600;
    min-width: 2.5rem;
    text-align: right;
}

.breakdown-name {
    min-width: 120px;
    font-size: 0.875rem;
}

.results-insights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.insight {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.5rem;
}

.insight h4 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.insight p {
    color: var(--text-muted);
    font-size: 0.9375rem;
}

.cta-section {
    text-align: center;
    padding: 3rem;
    background: linear-gradient(135deg, rgba(79, 124, 255, 0.1) 0%, rgba(79, 124, 255, 0.02) 100%);
    border-radius: 24px;
    border: 1px solid rgba(79, 124, 255, 0.2);
}

.cta-section h3 {
    font-family: 'Tiempos Headline', Georgia, serif;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Responsive */
@media (max-width: 900px) {
    .quiz-content {
        flex-direction: column;
    }
    
    .quiz-sidebar {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .dimension-scores {
        width: auto;
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem 1.5rem;
    }
    
    .dim-score {
        border: none;
        padding: 0;
    }
    
    .results-grid,
    .results-insights {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    h1 {
        font-size: 2rem;
    }
    
    .quiz-content {
        padding: 1.5rem;
    }
    
    #question-text {
        font-size: 1.25rem;
    }
    
    .option {
        padding: 1rem;
    }
    
    .score-big {
        font-size: 4rem;
    }
}

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

.screen.active {
    animation: fadeIn 0.4s ease;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.option:hover {
    animation: pulse 0.3s ease;
}

@keyframes countUp {
    from { opacity: 0; }
    to { opacity: 1; }
}
