/* Reset und Basis-Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #DAECE8;
    min-height: 100vh;
}

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

a {
    color: #4a90a4;
}

p {
    margin: 1em 0;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 2rem;
    color: #2c3e50;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Wizard Container */
.wizard-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* Progress Bar */
.progress-bar {
    display: flex;
    background: #f0f6f5;
    border-bottom: 1px solid #d1e7dd;
}

.progress-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8fffe;
}

.progress-step:hover:not(.active):not(.completed) {
    background: #e8f4f2;
}

.progress-step:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    width: 1px;
    height: 30px;
    background: #c3d9d0;
    transform: translateY(-50%);
}

.progress-step.active {
    background: #4a90a4;
    color: white;
}

.progress-step.completed {
    background: #4a90a4;
    color: white;
}

.progress-step.active:not(:last-child)::after,
.progress-step.completed:not(:last-child)::after {
    display: none;
}

.step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(77, 120, 130, 0.15);
    color: #2d5a65;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.progress-step.active .step-number,
.progress-step.completed .step-number {
    background: rgba(255,255,255,0.3);
    color: white;
}

.step-icon {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
    display: block;
}

.step-label {
    font-size: 0.9rem;
    text-align: center;
    color: #2d5a65;
}

.progress-step.active .step-label,
.progress-step.completed .step-label {
    color: white;
}

.progress-step.active .step-icon,
.progress-step.completed .step-icon {
    opacity: 1;
}

.progress-step .step-icon {
    opacity: 0.6;
}

/* Wizard Steps */
.wizard-step {
    display: none;
    padding: 2rem;
    min-height: 500px;
}

.wizard-step.active {
    display: block;
}

.wizard-step h2 {
    margin-bottom: 1.5rem;
    color: #333;
    border-bottom: 2px solid #007bff;
    padding-bottom: 0.5rem;
}

.step-explanation {
    background: #e3f2fd;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border-left: 4px solid #2196f3;
}

.step-explanation.collapsible {
    padding: 0;
}

.step-explanation p {
    margin: 0;
    color: #0d47a1;
    line-height: 1.6;
}

/* Collapsible explanations - removed duplicate rule */

.explanation-header {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #e3f2fd;
    border: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    user-select: none;
}

.explanation-header:hover {
    background: #bbdefb;
}

.explanation-header span:first-child {
    font-weight: 600;
    color: #0d47a1;
}

.toggle-icon {
    font-size: 1.2rem;
    color: #1976d2;
    transition: transform 0.3s ease;
    font-weight: bold;
}

.explanation-content {
    overflow: hidden;
    transition: all 0.3s ease;
    background: #f8f9fa;
    border-radius: 0 0 8px 8px;
}

.explanation-content.expanded {
    max-height: 1000px;
    padding: 1rem;
    margin-top: 2px;
}

.explanation-content.collapsed {
    max-height: 0;
    padding: 0 1rem;
}

/* Initial state: expanded shows rotated icon */
.explanation-content.expanded ~ * .toggle-icon,
.explanation-content.expanded + .explanation-header .toggle-icon {
    transform: rotate(180deg);
}

/* Set initial icon state for expanded content */
.step-explanation.collapsible .toggle-icon {
    transform: rotate(180deg);
}

.explanation-content h3 {
    margin: 1rem 0 0.5rem 0;
    color: #333;
    font-size: 1.1rem;
}

.explanation-content h3:first-child {
    margin-top: 0;
}

.explanation-content p {
    margin: 0 0 1rem 0;
    color: #0d47a1;
    line-height: 1.6;
}

.explanation-content p:last-child {
    margin-bottom: 0;
}

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

/* Textarea with button */
.textarea-with-button {
    position: relative;
}

.improve-prompt-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 0.4rem 0.8rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.improve-prompt-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

.improve-prompt-btn:active {
    transform: translateY(0);
}

.improve-prompt-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Model Suggestion Button */
.suggest-models-btn {
    width: 100%;
    padding: 0.8rem 1.2rem;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.suggest-models-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    background: linear-gradient(135deg, #218838 0%, #1e7e34 100%);
}

.suggest-models-btn:active {
    transform: translateY(0);
}

.suggest-models-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Loading Spinner */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(2px);
}

.loading-spinner {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    min-width: 200px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    font-weight: 600;
    color: #333;
    text-align: center;
}

.loading-subtext {
    font-size: 0.9rem;
    color: #666;
    text-align: center;
}

/* Prompt Comparison Modal */
.prompt-comparison-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.prompt-comparison-modal {
    background: white;
    border-radius: 12px;
    max-width: 90vw;
    max-height: 90vh;
    width: 1000px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.modal-header h3 {
    margin: 0;
    color: #333;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.modal-close:hover {
    background: #f8f9fa;
    color: #333;
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.comparison-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1.5rem;
    height: 100%;
    min-height: 300px;
}

.comparison-side {
    display: flex;
    flex-direction: column;
}

.comparison-side h4 {
    margin: 0 0 1rem 0;
    color: #495057;
    font-size: 1.1rem;
    font-weight: 600;
}

.prompt-text {
    flex: 1;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
    overflow-y: auto;
    min-height: 250px;
}

.original-prompt {
    border-left: 4px solid #dc3545;
}

.improved-prompt {
    border-left: 4px solid #28a745;
}

.usage-preview-modal {
    font-family: inherit !important;
    white-space: normal !important;
}

.usage-preview-modal h1, .usage-preview-modal h2, .usage-preview-modal h3 {
    margin: 1rem 0 0.5rem 0;
    color: #333;
}

.usage-preview-modal ul, .usage-preview-modal ol {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.usage-preview-modal li {
    margin-bottom: 0.25rem;
}

.usage-preview-modal strong {
    font-weight: 600;
}

.usage-preview-modal em {
    font-style: italic;
}

.comparison-divider {
    width: 2px;
    background: linear-gradient(to bottom, #e9ecef, #6c757d, #e9ecef);
    border-radius: 1px;
    align-self: stretch;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1.5rem;
    border-top: 1px solid #e9ecef;
}

.btn {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #545b62;
}

.btn-original {
    background: #dc3545;
    color: white;
}

.btn-original:hover {
    background: #c82333;
}

.btn-primary {
    background: #28a745;
    color: white;
}

.btn-primary:hover {
    background: #218838;
}

@media (max-width: 768px) {
    .prompt-comparison-modal {
        width: 95vw;
        height: 90vh;
    }
    
    .comparison-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        gap: 1rem;
    }
    
    .comparison-divider {
        display: none;
    }
    
    .modal-footer {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .btn {
        width: 100%;
    }
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007bff;
}

.form-group input[readonly] {
    background-color: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
}

.help-text {
    font-size: 0.9rem;
    color: #6c757d;
    margin-top: 0.5rem;
    line-height: 1.4;
}

/* Password Container */
.password-container {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 5px;
}

/* Checkbox und Radio Groups */
.checkbox-group,
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.checkbox-group label,
.radio-group label {
    display: flex;
    align-items: center;
    font-weight: normal;
    cursor: pointer;
}

.checkbox-group input,
.radio-group input {
    width: auto;
    margin-right: 0.5rem;
}

.checkbox-group input:disabled,
.radio-group input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.checkbox-group label:has(input:disabled),
.radio-group label:has(input:disabled) {
    color: #6c757d;
    cursor: not-allowed;
}

/* Editor Container */
.editor-container {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}

.editor-toolbar {
    background: #f8f9fa;
    padding: 0.5rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    gap: 0.5rem;
}

.editor-toolbar button {
    padding: 0.25rem 0.5rem;
    border: 1px solid #dee2e6;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.editor-toolbar button:hover {
    background: #e9ecef;
}

.editor-container textarea {
    border: none;
    border-radius: 0;
    resize: vertical;
}

/* Preview Container */
.preview-container {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.preview-container h4 {
    margin-bottom: 0.5rem;
    color: #495057;
}

.usage-preview {
    background: white;
    padding: 1rem;
    border-radius: 4px;
    border: 1px solid #dee2e6;
    min-height: 50px;
    font-family: inherit;
}

.usage-preview ul {
    margin-left: 0;
    padding-left: 1.5rem;
}

.usage-preview ol {
    margin-left: 0;
    padding-left: 1.5rem;
}

.usage-preview li {
    margin-bottom: 0.5rem;
    margin-left: 15px !important;
}

/* Ensure all lists in previews and transfer sections are properly indented */
.step-explanation ul, 
.step-explanation ol,
.transfer-instructions ul,
.transfer-instructions ol,
.custom-attributes-info ul,
.custom-attributes-info ol {
    margin-left: 0;
    padding-left: 1.5rem;
}

.step-explanation li,
.transfer-instructions li,
.custom-attributes-info li {
    margin-bottom: 0.5rem;
}

/* Model Input Container */
.model-input-container {
    position: relative;
}

.clear-input-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #6c757d;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 50%;
    transition: all 0.2s ease;
    display: none;
}

.clear-input-btn:hover {
    background-color: #e9ecef;
    color: #495057;
}

.model-input-container input:not(:placeholder-shown) ~ .clear-input-btn {
    display: block;
}

.model-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #dee2e6;
    border-top: none;
    border-radius: 0 0 6px 6px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

#model-suggestions-modal {
  background: white;
  max-width: 75%;
  margin: 10px auto;
}

.model-suggestion-item {
    padding: 0.75rem;
    cursor: pointer;
    border-bottom: 1px solid #f8f9fa;
    transition: background-color 0.2s ease;
}

.model-suggestion-item:hover,
.model-suggestion-item.highlighted {
    background-color: #f8f9fa;
}

.model-suggestion-item:last-child {
    border-bottom: none;
}

.model-suggestion-name {
    font-weight: 600;
    color: #212529;
}

.model-suggestion-description {
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

/* Landing Page Info */
.landing-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.info-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: all 0.3s ease;
}

.info-card:hover {
    border-color: #4a90a4;
    box-shadow: 0 4px 12px rgba(74, 144, 164, 0.1);
}

.info-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.info-content h3 {
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
    font-size: 1.1rem;
}

.info-content p {
    margin: 0;
    color: #6c757d;
    line-height: 1.5;
}

/* Assistant Grid */
.assistant-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.assistant-card {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.assistant-card:hover {
    border-color: #4a90a4;
    box-shadow: 0 4px 12px rgba(74, 144, 164, 0.15);
    transform: translateY(-2px);
}

.assistant-card.selected {
    border-color: #4a90a4;
    background: #f0f8ff;
    box-shadow: 0 4px 12px rgba(74, 144, 164, 0.2);
}

.assistant-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.assistant-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.assistant-description {
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.4;
}

/* Template Buttons */
.template-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.template-buttons button {
    padding: 0.5rem 1rem;
    border: 2px solid #007bff;
    background: white;
    color: #007bff;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.template-buttons button:hover {
    background: #007bff;
    color: white;
}

/* Model Preview */
.model-preview {
    margin-top: 0.5rem;
    padding: 0.75rem;
    background: #e3f2fd;
    border-radius: 6px;
    border-left: 4px solid #2196f3;
}

.model-match {
    display: inline-block;
    background: #4caf50;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    margin: 0.25rem;
    font-size: 0.9rem;
}

.clickable-model {
    cursor: pointer;
    transition: all 0.2s ease;
}

.clickable-model:hover {
    background: #4a90a4 !important;
    color: white !important;
    transform: translateY(-1px);
}

/* Transfer Section */
.transfer-instructions {
    background: #e8f4fd;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border-left: 4px solid #007bff;
}

.custom-attributes-info {
    background: #fff3cd;
    padding: 1rem;
    border-radius: 6px;
    border-left: 4px solid #ffc107;
    margin-top: 1rem;
}

.custom-attributes-info ul {
    margin: 0.5rem 0 0 1rem;
}

.custom-attributes-info li {
    margin-bottom: 0.25rem;
}

.transfer-instructions ol {
    margin-top: 1rem;
    padding-left: 1.5rem;
}

.transfer-instructions li {
    margin-bottom: 0.5rem;
}

.transfer-section {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
}

.transfer-field {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    background: #fff3cd;
    border-radius: 8px;
    border: 2px solid #ffc107;
    position: relative;
}

.transfer-field::before {
    content: "⚠️ NOCH ZU ÜBERTRAGEN";
    position: absolute;
    top: -12px;
    right: 10px;
    background: #dc3545;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.transfer-field.completed {
    background: #d4edda;
    border: 2px solid #28a745;
}

.transfer-field.completed::before {
    content: "✅ ERLEDIGT";
    background: #28a745;
}

.transfer-field .field-info {
    flex: 1;
}

.transfer-field .field-label {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.transfer-field .field-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.transfer-field .field-label {
    font-weight: 600;
    margin-bottom: 0;
}

.field-status {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    display: none;
}

.field-status.custom {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.field-status.fixed {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.field-status.selection {
    background: #e2e3e5;
    color: #383d41;
    border: 1px solid #d6d8db;
}

.field-status.manual {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.field-status.default {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.transfer-field .field-value {
    font-family: inherit;
    background: white;
    padding: 0.5rem;
    border-radius: 4px;
    border: 1px solid #dee2e6;
    word-break: break-all;
}

.transfer-field.custom-field {
    border-left: 4px solid #17a2b8;
}

.transfer-field.fixed-field {
    border-left: 4px solid #28a745;
}

.transfer-field.selection-field {
    border-left: 4px solid #6c757d;
}

.transfer-field.manual-field {
    border-left: 4px solid #ffc107;
}

.transfer-field.default-field {
    border-left: 4px solid #17a2b8;
}

.transfer-btn {
    padding: 0.5rem 1rem;
    background: #ffc107;
    color: #212529;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    margin-left: 1rem;
    transition: background-color 0.3s ease;
    min-width: 120px; /* Consistent button width */
}

.transfer-btn:hover {
    background: #e0a800;
}

.transfer-btn:disabled {
    background: #28a745;
    color: white;
    cursor: not-allowed;
}

.manual-btn {
    padding: 0.5rem 1rem;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    margin-left: 0;
    margin-top: 0.5rem;
    transition: background-color 0.3s ease;
    width: 100%; /* Full width buttons */
}

.manual-btn:hover {
    background: #218838;
}

.manual-btn:disabled {
    background: #28a745;
    color: white;
    cursor: not-allowed;
}

.screenshot-preview {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.screenshot-preview h5 {
    margin: 0 0 0.5rem 0;
    color: #495057;
    font-size: 0.9rem;
}

.field-image {
    max-width: 100%;
    height: auto;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Transfer Progress */
.transfer-progress {
    margin-top: 2rem;
}

.progress-info {
    text-align: center;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.progress-bar-transfer {
    width: 100%;
    height: 20px;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #007bff, #0056b3);
    width: 0%;
    transition: width 0.5s ease;
}

/* Navigation */
.wizard-navigation {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wizard-navigation button {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

#prev-btn {
    background: #6c757d;
    color: white;
}

#prev-btn:hover:not(:disabled) {
    background: #5a6268;
}

#prev-btn:disabled {
    background: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
}

#next-btn,
#finish-btn {
    background: #007bff;
    color: white;
}

#next-btn:hover,
#finish-btn:hover {
    background: #0056b3;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .progress-bar {
        flex-wrap: wrap;
    }
    
    .progress-step {
        min-width: 120px;
    }
    
    .step-label {
        font-size: 0.8rem;
    }
    
    .wizard-step {
        padding: 1rem;
    }
    
    .wizard-navigation {
        padding: 1rem;
    }
    
    .template-buttons {
        flex-direction: column;
    }
    
    .transfer-field {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .transfer-btn {
        margin-left: 0;
        margin-top: 0.5rem;
        width: 100%;
    }
}

/* Animationen */
.wizard-step {
    animation: fadeIn 0.3s ease-in-out;
}

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

/* Sonstiges */

pre {
  display: inline;
  background-color: #eee;
  padding: 5px;
  font-weight: normal;
}

/* Model Suggestions Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-header {
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: #2c3e50;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    color: #6c757d;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.modal-close:hover {
    background-color: #f8f9fa;
    color: #495057;
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e9ecef;
    text-align: right;
}

.modal-btn-secondary {
    background: #6c757d;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.2s ease;
}

.modal-btn-secondary:hover {
    background: #5a6268;
}

.suggestions-list {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.suggestion-item {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.suggestion-item:hover {
    border-color: #28a745;
    background: #f1f8e9;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.suggestion-header {
    margin-bottom: 0.5rem;
}

.suggestion-header strong {
    color: #2c3e50;
    font-size: 1.1rem;
}

.confidence-badge {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.suggestion-reason {
    color: #495057;
    margin-bottom: 0.5rem;
    font-style: italic;
}

.suggestion-description {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.suggestion-select-btn {
    width: 100%;
    padding: 0.6rem;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.suggestion-select-btn:hover {
    background: linear-gradient(135deg, #218838, #1e7e34);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Alert Messages */
.alert-message {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin: 1rem 0;
    display: none;
    font-size: 0.9rem;
    border: 1px solid;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border-color: #bee5eb;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

/* Course Export Section */
.export-section {
    background: #f8f9ff;
    border-radius: 12px;
    padding: 2rem;
    border: 2px solid #4a90a4;
}

.export-section h3 {
    margin-bottom: 1.5rem;
    color: #2c3e50;
    text-align: center;
}

.export-content {
    text-align: center;
}

.export-content p {
    margin-bottom: 1.5rem;
    color: #495057;
    font-size: 1.1rem;
}

.export-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.course-export-btn {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #4a90a4 0%, #2c5f6f 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(74, 144, 164, 0.3);
    min-width: 280px;
}

.course-export-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(74, 144, 164, 0.4);
    background: linear-gradient(135deg, #3a8094 0%, #1e4a57 100%);
}

.course-export-btn:active {
    transform: translateY(0);
}

.course-export-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.export-status {
    min-height: 2rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    display: none;
}

.export-status.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.export-status.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

.export-status.processing {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
    display: block;
}

/* Transfer Choice Buttons */
.choice-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.choice-alternative-btn:hover {
    background: #545b62 !important;
    transform: translateY(-1px);
}

#enable-examples {
    width: auto;
    margin-right: 0.5em;
}