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

:root {
    --primary-color: #dc2626;
    --primary-hover: #b91c1c;
    --success-color: #10b981;
    --success-hover: #059669;
    --error-color: #dc2626;
    --text-primary: #000000;
    --text-secondary: #6b7280;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --border-color: #d1d5db;
    --input-underline: #d1d5db;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

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

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 3rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Header */
header {
    text-align: left;
    margin-bottom: 3rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-text {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.swiss-flag {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.swiss-flag svg {
    width: 100%;
    height: 100%;
}

/* Main Content */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Upload Section */
.upload-section {
    width: 100%;
}

.upload-area {
    background: var(--bg-primary);
    border-radius: 0.5rem;
    padding: 3rem 2.5rem;
    text-align: left;
    border: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.upload-area:hover {
    background: var(--bg-secondary);
}

.upload-area.dragover {
    background: var(--bg-secondary);
}

.upload-icon {
    display: none;
}

.upload-area h2 {
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 2.5rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.upload-area p {
    display: none;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.25rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    width: 100%;
}

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

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

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

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

.btn-success:hover {
    background: var(--primary-hover);
}

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

.btn-secondary:hover {
    background: var(--bg-secondary);
}

/* Processing Section */
.processing-section {
    width: 100%;
}

.status-card {
    background: var(--bg-primary);
    border-radius: 0.5rem;
    padding: 3rem 2.5rem;
    text-align: left;
    box-shadow: none;
}

.status-icon {
    width: 64px;
    height: 64px;
    margin: 0 0 2rem 0;
    color: var(--primary-color);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.status-card h3 {
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.status-card p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1rem;
}

.progress-bar {
    width: 100%;
    height: 2px;
    background: var(--bg-secondary);
    border-radius: 0;
    overflow: hidden;
    margin-top: 1rem;
}

.progress-fill {
    height: 100%;
    background: var(--primary-color);
    width: 0%;
    transition: width 0.3s ease;
    animation: progress 1.5s infinite;
}

@keyframes progress {
    0% {
        width: 0%;
    }
    50% {
        width: 70%;
    }
    100% {
        width: 100%;
    }
}

/* Result Section */
.result-section {
    width: 100%;
}

.result-card {
    background: var(--bg-primary);
    border-radius: 0.5rem;
    padding: 3rem 2.5rem;
    box-shadow: none;
}

.result-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 0;
    border-bottom: none;
}

.success-icon {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
}

.result-header h3 {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--text-primary);
}

.result-info {
    margin-bottom: 2.5rem;
}

.result-info p {
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-size: 1rem;
}

.result-info strong {
    color: var(--text-primary);
    font-weight: 600;
}

.preview-section {
    margin-bottom: 2.5rem;
}

.preview-section h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.table-container {
    overflow-x: auto;
    max-height: 600px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
}

.preview-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.preview-table thead {
    background: var(--bg-secondary);
    position: sticky;
    top: 0;
    z-index: 10;
}

.preview-table th {
    padding: 1rem 0.75rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.preview-table td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    white-space: nowrap;
}

.preview-table tbody tr:hover {
    background: var(--bg-secondary);
}

.preview-table tbody tr:last-child td {
    border-bottom: none;
}

.preview-more {
    text-align: center;
    color: var(--text-secondary);
    font-style: italic;
    padding: 1rem !important;
}

.result-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Error Section */
.error-section {
    width: 100%;
}

.error-card {
    background: var(--bg-primary);
    border-radius: 0.5rem;
    padding: 3rem 2.5rem;
    box-shadow: none;
    text-align: left;
}

.error-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 0;
    border-bottom: none;
}

.error-icon {
    width: 24px;
    height: 24px;
    color: var(--error-color);
}

.error-header h3 {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--text-primary);
}

.error-card p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
    font-size: 1rem;
}


/* Utility Classes */
.hidden {
    display: none !important;
}

/* Responsive Design - Minimale Anpassungen für sehr kleine Bildschirme */
@media (max-width: 1200px) {
    .container {
        max-width: 100%;
        padding: 3rem 2rem;
    }
}

