
/* ========================================
   CSS: Chili and Change Corporate Identity
   ======================================== */

:root {
    --chili-red: #FE1230;
    --chili-red-hover: #e0102a;
    --ocean-blue: #0061F7;
    --ocean-blue-hover: #0050d0;
    --bg-slate: #F8FAFC;
    --card-white: #FFFFFF;
    --text-dark: #1E293B;
    --text-medium: #475569;
    --text-light: #94A3B8;
    --border-light: #E2E8F0;
    --success-green: #10B981;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-slate);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
}

/* Header */
.header {
    background: var(--card-white);
    padding: 1rem 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 40px;
    width: auto;
}

.logo-placeholder {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--chili-red);
}

/* Progress Indicator */
.progress-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.progress-step {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-light);
    transition: all 0.3s ease;
}

.progress-step.active {
    background: var(--chili-red);
    transform: scale(1.2);
}

.progress-step.completed {
    background: var(--success-green);
}

.progress-text {
    font-size: 0.875rem;
    color: var(--text-medium);
    margin-left: 1rem;
}

/* Main Container */
.main-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
    padding-bottom: 3rem;
}

/* Card */
.card {
    background: var(--card-white);
    border-radius: 1rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 2.5rem;
    margin-bottom: 1.5rem;
}

.card-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.card-subtitle {
    font-size: 1rem;
    color: var(--text-medium);
    margin-bottom: 2rem;
}

/* Step Sections (hidden by default) */
.step-section {
    display: none;
}

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

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

/* Form Elements */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.form-hint {
    font-size: 0.875rem;
    color: var(--text-medium);
    margin-bottom: 0.75rem;
}

/* Slider Styles */
.slider-container {
    margin-bottom: 2rem;
}

.slider-label {
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    display: block;
}

.slider-wrapper {
    position: relative;
    padding: 0.5rem 0;
    padding-right: 9rem;
}

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

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--chili-red);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(254, 18, 48, 0.4);
    transition: transform 0.2s ease;
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--chili-red);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(254, 18, 48, 0.4);
}

.slider-value {
    position: absolute;
    right: 0;
    top: -0.25rem;
    font-weight: 700;
    color: var(--chili-red);
    font-size: 1.1rem;
    min-width: 8rem;
    text-align: right;
    white-space: nowrap;
}

.slider-scale {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

/* Category Header */
.category-header {
    background: linear-gradient(135deg, var(--chili-red) 0%, #ff4d5a 100%);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    margin: 2rem 0 1.5rem 0;
    font-weight: 600;
    font-size: 0.95rem;
}

.category-header:first-of-type {
    margin-top: 0;
}

/* Textarea */
.textarea {
    width: 100%;
    min-height: 150px;
    padding: 1rem;
    border: 2px solid var(--border-light);
    border-radius: 0.75rem;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.textarea:focus {
    outline: none;
    border-color: var(--ocean-blue);
    box-shadow: 0 0 0 3px rgba(0, 97, 247, 0.1);
}

.textarea::placeholder {
    color: var(--text-light);
}

/* Input Text */
.input-text {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-light);
    border-radius: 0.75rem;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.input-text:focus {
    outline: none;
    border-color: var(--ocean-blue);
    box-shadow: 0 0 0 3px rgba(0, 97, 247, 0.1);
}

/* Help Box */
.help-box {
    background: rgba(0, 97, 247, 0.05);
    border-left: 4px solid var(--ocean-blue);
    padding: 1rem 1.25rem;
    border-radius: 0 0.5rem 0.5rem 0;
    margin-bottom: 1.5rem;
}

.help-box-title {
    font-weight: 600;
    color: var(--ocean-blue);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.help-box ul {
    margin: 0;
    padding-left: 1.25rem;
    color: var(--text-medium);
    font-size: 0.9rem;
}

.help-box li {
    margin-bottom: 0.25rem;
}

/* Warning Box */
.warning-box {
    background: rgba(254, 18, 48, 0.05);
    border-left: 4px solid var(--chili-red);
    padding: 1rem 1.25rem;
    border-radius: 0 0.5rem 0.5rem 0;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-medium);
}

/* Buttons */
.btn-container {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
}

.btn {
    padding: 0.875rem 2rem;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

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

.btn-primary:hover {
    background: var(--chili-red-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(254, 18, 48, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--ocean-blue);
    border: 2px solid var(--ocean-blue);
}

.btn-secondary:hover {
    background: var(--ocean-blue);
    color: white;
}

.btn-outline {
    background: transparent;
    color: var(--text-medium);
    border: 2px solid var(--border-light);
}

.btn-outline:hover {
    border-color: var(--text-medium);
    color: var(--text-dark);
}

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

.btn-success:hover {
    background: #0ea572;
}

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

.btn-skip {
    font-size: 0.875rem;
    color: var(--text-light);
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: underline;
}

.btn-skip:hover {
    color: var(--text-medium);
}

/* Prompt Output Area */
.prompt-output {
    background: #1E293B;
    color: #E2E8F0;
    padding: 1.5rem;
    border-radius: 0.75rem;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.875rem;
    line-height: 1.7;
    white-space: pre-wrap;
    word-wrap: break-word;
    max-height: 500px;
    overflow-y: auto;
    margin-bottom: 1.5rem;
}

.prompt-textarea {
    background: #1E293B;
    color: #E2E8F0;
    padding: 1.5rem;
    border-radius: 0.75rem;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.875rem;
    line-height: 1.7;
    width: 100%;
    min-height: 400px;
    border: 2px solid transparent;
    resize: vertical;
    margin-bottom: 1.5rem;
}

.prompt-textarea:focus {
    outline: none;
    border-color: var(--ocean-blue);
}

/* Footer Actions */
.footer-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

/* Reset Button */
.reset-container {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
}

.btn-reset {
    background: transparent;
    color: var(--text-light);
    border: 1px solid var(--border-light);
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-reset:hover {
    color: var(--chili-red);
    border-color: var(--chili-red);
}

/* Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-overlay.show {
    display: flex;
}

.modal {
    background: var(--card-white);
    padding: 2rem;
    border-radius: 1rem;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.modal-text {
    color: var(--text-medium);
    margin-bottom: 1.5rem;
}

.modal-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Welcome Screen */
.welcome-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-list {
    text-align: left;
    margin: 1.5rem 0;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--text-medium);
}

.feature-icon {
    color: var(--chili-red);
    font-weight: bold;
    flex-shrink: 0;
}

/* Responsive */
@media (max-width: 640px) {
    .card {
        padding: 1.5rem;
    }

    .card-title {
        font-size: 1.5rem;
    }

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

    .btn {
        width: 100%;
        text-align: center;
    }

    .header {
        padding: 1rem;
    }

    .progress-text {
        display: none;
    }

    .footer-actions {
        flex-direction: column;
    }

    .footer-actions .btn {
        width: 100%;
    }
}

/* Saved indicator */
.saved-indicator {
    position: fixed;
    bottom: 2.5rem;
    right: 1rem;
    background: var(--success-green);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 101;
}

.saved-indicator.show {
    opacity: 1;
    transform: translateY(0);
}

/* Compliance Box (EU AI Act) */
.compliance-box {
    background: rgba(0, 97, 247, 0.04);
    border: 1px solid rgba(0, 97, 247, 0.2);
    border-radius: 0.75rem;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.compliance-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 1rem;
    color: var(--text-dark);
}

.compliance-header span {
    font-size: 1.25rem;
}

.compliance-intro {
    font-size: 0.9rem;
    color: var(--text-medium);
    margin-bottom: 1rem;
}

.compliance-check {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: white;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.compliance-check:hover {
    background: rgba(0, 97, 247, 0.05);
}

.compliance-check input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.1rem;
    flex-shrink: 0;
    accent-color: var(--ocean-blue);
    cursor: pointer;
}

.compliance-check span {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-medium);
}

.compliance-check span strong {
    color: var(--text-dark);
}

.compliance-disclaimer {
    margin-top: 1rem;
    padding: 0.75rem;
    background: rgba(0, 97, 247, 0.08);
    border-radius: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-medium);
    line-height: 1.5;
}

.compliance-disclaimer strong {
    color: var(--ocean-blue);
}

/* Disabled button state */
.btn-disabled {
    opacity: 0.5;
    cursor: not-allowed !important;
}

.btn-disabled:hover {
    transform: none !important;
}

/* Privacy Notice */
.privacy-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    border-top: 1px solid var(--border-light);
    padding: 0.5rem 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-light);
    z-index: 100;
}

.privacy-notice svg {
    flex-shrink: 0;
}

/* Footer */
.footer {
    background: var(--card-white);
    border-top: 1px solid var(--border-light);
    padding: 2rem;
    margin-top: 2rem;
}

.footer-grid {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
}

.footer-col h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.footer-col a {
    color: var(--ocean-blue);
    text-decoration: none;
    font-size: 0.875rem;
}

.footer-col a:hover {
    text-decoration: underline;
}

.footer-col p {
    font-size: 0.75rem;
    color: var(--text-light);
    line-height: 1.5;
}

.footer-bottom {
    max-width: 800px;
    margin: 1.5rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-light);
}

@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .privacy-notice {
        font-size: 0.7rem;
        padding: 0.4rem 0.75rem;
    }
}

/* Verortung Slider Styles */
.verortung-slider {
    padding-right: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.verortung-slider .slider {
    width: 100%;
}

.verortung-value {
    position: static !important;
    min-width: auto !important;
    text-align: left !important;
    font-size: 0.9rem !important;
    padding: 0.5rem 0.75rem;
    background: rgba(254, 18, 48, 0.08);
    border-radius: 0.5rem;
    border-left: 3px solid var(--chili-red);
}

/* Mode Selection Cards */
.mode-selection {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mode-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding: 1.25rem 1.5rem;
    border: 2px solid var(--border-light);
    border-radius: 1rem;
    background: var(--card-white);
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.mode-card:hover {
    border-color: var(--chili-red);
    box-shadow: 0 4px 20px rgba(254, 18, 48, 0.15);
    transform: translateY(-2px);
}

.mode-card:active {
    transform: translateY(0);
}

.mode-card-secondary {
    background: var(--bg-slate);
    border-color: var(--border-light);
}

.mode-card-secondary:hover {
    border-color: var(--ocean-blue);
    box-shadow: 0 4px 20px rgba(0, 97, 247, 0.15);
}

.mode-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.mode-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.mode-description {
    font-size: 0.9rem;
    color: var(--text-medium);
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.mode-hint {
    font-size: 0.8rem;
    color: var(--text-light);
    font-style: italic;
}

.mode-engine {
    font-size: 0.7rem;
    color: var(--ocean-blue);
    background: rgba(0, 97, 247, 0.08);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    margin-top: 0.5rem;
}

@media (max-width: 640px) {
    .mode-card {
        padding: 1rem 1.25rem;
    }

    .mode-icon {
        font-size: 1.75rem;
    }

    .mode-title {
        font-size: 1rem;
    }
}
