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

:root {
    /* Medizinische Farbpalette */
    --primary-color: #0066CC;
    --primary-hover: #0047AB;
    --primary-light: #E6F2FF;
    --secondary-color: #5B7FA3;
    --secondary-hover: #4A6B8A;
    --success-color: #28A745;
    --text-primary: #1A3A5C;
    --text-secondary: #5B7FA3;
    --background: #ffffff;
    --background-alt: #F5F8FA;
    --background-subtle: #E8F1F8;
    --border-color: #D0DDE8;
    --shadow: 0 2px 8px rgba(0, 102, 204, 0.1);
    --shadow-lg: 0 4px 16px rgba(0, 102, 204, 0.15);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    color: var(--text-primary);
    background: linear-gradient(135deg, #E6F2FF 0%, #F5F8FA 50%, #E8F1F8 100%);
    min-height: 100vh;
    padding: 0;
}

/* Site Header */
.site-header {
    background: var(--background);
    border-bottom: 3px solid var(--primary-color);
    padding: 24px 20px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.brand {
    text-align: center;
}

.brand-name {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 8px 0;
    letter-spacing: -0.5px;
}

.brand-tagline {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0;
    font-weight: 500;
    font-style: italic;
}

.page-title {
    text-align: center;
}

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

/* Screen Styles */
.screen {
    display: none;
    animation: fadeIn 0.4s ease-in-out;
}

.screen.active {
    display: block;
}

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

.content-wrapper {
    background: var(--background);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

/* Typography */
h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
    text-align: center;
    line-height: 1.3;
}

h2 {
    font-size: 1.875rem;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--text-primary);
    line-height: 1.4;
}

.subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 32px;
}

.intro-text {
    max-width: 600px;
    margin: 0 auto 40px;
    text-align: center;
    font-size: 1.0625rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.intro-text p {
    margin-bottom: 16px;
}

.intro-text p:last-child {
    margin-bottom: 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 16px 36px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
    letter-spacing: 0.3px;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

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

.btn-primary:hover:not(:disabled) {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
}

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

.btn-secondary:hover:not(:disabled) {
    background-color: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
    transform: translateY(-1px);
}

.button-container {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 40px;
}

/* Progress Bar */
.progress-container {
    margin-bottom: 40px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: var(--background-alt);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
    box-shadow: 0 0 8px rgba(0, 102, 204, 0.3);
}

.progress-text {
    display: block;
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Question Container */
.question-container {
    margin: 40px 0;
}

.question-text {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 32px;
    color: var(--text-primary);
    line-height: 1.5;
}

.scale-container {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.scale-option {
    flex: 1;
    padding: 20px 12px;
    background-color: var(--background-alt);
    border: 3px solid var(--border-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--text-primary);
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scale-option:hover {
    border-color: var(--primary-color);
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.scale-option.selected {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.scale-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 8px;
}

/* Results Container */
.results-container {
    margin: 32px 0;
}

.result-card {
    background-color: var(--background);
    border-left: 5px solid var(--primary-color);
    border-radius: var(--border-radius);
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.result-card:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-lg);
}

.result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.result-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.125rem;
    margin-right: 16px;
}

.result-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
}

.result-description {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.7;
}

.result-tips {
    margin-top: 20px;
}

.result-tips h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.result-tips ul {
    list-style: none;
    padding: 0;
}

.result-tips li {
    padding: 14px 18px;
    margin-bottom: 10px;
    background-color: var(--background-alt);
    border-radius: 8px;
    border-left: 4px solid var(--success-color);
    position: relative;
    padding-left: 44px;
    line-height: 1.6;
}

.result-tips li::before {
    content: "✓";
    position: absolute;
    left: 14px;
    color: var(--success-color);
    font-weight: bold;
    font-size: 1.125rem;
}

/* Email Form */
.email-form {
    max-width: 500px;
    margin: 32px auto 0;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    transition: var(--transition);
    background-color: var(--background);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
    background-color: var(--background-alt);
}

.form-success {
    background-color: #E8F5E9;
    border: 2px solid var(--success-color);
    border-radius: var(--border-radius);
    padding: 20px;
    text-align: center;
    color: #1B5E20;
    font-weight: 600;
    margin-top: 24px;
    box-shadow: var(--shadow);
}

/* Responsive Design */
@media (max-width: 768px) {
    .site-header {
        padding: 20px 16px;
        margin-bottom: 20px;
    }

    .brand-name {
        font-size: 1.75rem;
    }

    .brand-tagline {
        font-size: 0.9rem;
    }

    .container {
        padding: 0 12px 30px;
    }

    .content-wrapper {
        padding: 24px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .question-text {
        font-size: 1.25rem;
    }

    .scale-container {
        flex-direction: column;
        gap: 8px;
    }

    .scale-option {
        min-height: 60px;
        font-size: 1rem;
    }

    .scale-labels {
        flex-direction: column;
        gap: 4px;
        text-align: center;
    }

    .button-container {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .site-header {
        padding: 16px 12px;
    }

    .brand-name {
        font-size: 1.5rem;
    }

    .brand-tagline {
        font-size: 0.85rem;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .content-wrapper {
        padding: 24px;
    }

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

/* Accessibility */
.btn:focus,
.scale-option:focus,
.form-input:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    body {
        background: white;
    }

    .screen.active {
        display: block;
    }

    .btn,
    .progress-container {
        display: none;
    }
}
