/* ============================================
   CSV INVENTORY SYNC - COMPLETE STYLESHEET
   Mit CMS-spezifischen Farben (Shopware & Shopify)
   ============================================ */

/* ============================================
   STATUS BANNER (Top-Banner)
   ============================================ */

.status-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    padding: 16px 20px;
    text-align: center;
    font-weight: 600;
    font-size: 1em;
    z-index: 10000;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.status-banner.show {
    transform: translateY(0);
}

.status-banner-success {
    background: var(--success);
    color: white;
}

.status-banner-error {
    background: var(--error);
    color: white;
}

.status-banner-info {
    background: var(--info);
    color: white;
}

body.has-status-banner {
    padding-top: 60px;
}

/* ============================================
   FARBEN & VARIABLEN
   ============================================ */
:root {
    /* Shopware Farben (Blau/Türkis) */
    --shopware-primary: #189eff;
    --shopware-dark: #0d7ed8;
    --shopware-light: #e6f4ff;
    --shopware-gradient: linear-gradient(135deg, #189eff 0%, #0d7ed8 100%);
    
    /* Shopify Farben (Grün) */
    --shopify-primary: #95bf47;
    --shopify-dark: #5e8e3e;
    --shopify-light: #f0f7e6;
    --shopify-gradient: linear-gradient(135deg, #95bf47 0%, #5e8e3e 100%);
    
    /* Neutrale Farben */
    --text-primary: #1a1a1a;
    --text-secondary: #666;
    --text-light: #999;
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-lighter: #fafbfc;
    --border-color: #e1e8ed;
    --border-light: #f0f0f0;
    --success: #28a745;
    --error: #dc3545;
    --warning: #ffc107;
    --info: #17a2b8;
    
    /* Schatten */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* ============================================
   HAUPT-CONTAINER & LAYOUT
   ============================================ */

.inventory-sync-wrapper {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
}

.inventory-sync-container {
    background: var(--bg-white);
    padding: 50px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    margin-top: 30px;
    border: 1px solid var(--border-color);
}

/* ============================================
   HEADER & BESCHREIBUNG
   ============================================ */

.inventory-sync-header {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 3px solid var(--border-light);
    background: linear-gradient(135deg, var(--shopware-light) 0%, var(--shopify-light) 100%);
    padding: 40px 30px;
    border-radius: 12px;
    margin: -20px -20px 40px -20px;
}

.inventory-sync-header h1 {
    font-size: 2.75em;
    margin-bottom: 20px;
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--shopware-primary) 0%, var(--shopify-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.inventory-sync-description {
    font-size: 1.15em;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ============================================
   UPLOAD-BEREICH
   ============================================ */

.upload-section {
    margin-bottom: 50px;
    padding-bottom: 50px;
    border-bottom: 2px solid var(--border-light);
}

.upload-section h2 {
    font-size: 2em;
    margin-bottom: 30px;
    color: var(--text-primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
}

.upload-section h2::before {
    content: "📤";
    font-size: 1.2em;
}

.upload-group {
    margin-bottom: 30px;
    background: var(--bg-lighter);
    padding: 25px;
    border-radius: 12px;
    border: 2px dashed var(--border-color);
    transition: all 0.3s ease;
}

.upload-group:hover {
    border-color: var(--shopware-primary);
    background: var(--shopware-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.upload-group:nth-child(even):hover {
    border-color: var(--shopify-primary);
    background: var(--shopify-light);
}

.upload-group label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.1em;
}

.upload-group input[type="file"] {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-white);
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.upload-group input[type="file"]:hover {
    border-color: var(--shopware-primary);
    box-shadow: 0 0 0 4px var(--shopware-light);
}

.upload-group:nth-child(even) input[type="file"]:hover {
    border-color: var(--shopify-primary);
    box-shadow: 0 0 0 4px var(--shopify-light);
}

.upload-group input[type="file"]:focus {
    outline: none;
    border-color: var(--shopware-primary);
    box-shadow: 0 0 0 4px var(--shopware-light);
}

.file-hint {
    display: block;
    font-size: 0.9em;
    color: var(--text-light);
    margin-top: 10px;
    font-weight: normal;
    font-style: italic;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn-primary {
    background: var(--shopware-gradient);
    color: white;
    border: none;
    padding: 18px 50px;
    font-size: 1.15em;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-md);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: inherit;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, #0d7ed8 0%, #189eff 100%);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-spinner {
    width: 22px;
    height: 22px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.btn-download {
    background: var(--bg-white);
    color: var(--shopware-primary);
    border: 2px solid var(--shopware-primary);
    padding: 14px 35px;
    font-size: 1.05em;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-sm);
}

.btn-download:hover {
    background: var(--shopware-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-download:nth-child(2) {
    color: var(--shopify-primary);
    border-color: var(--shopify-primary);
}

.btn-download:nth-child(2):hover {
    background: var(--shopify-primary);
    color: white;
}

.download-icon {
    font-size: 1.3em;
}

/* ============================================
   STATUS-MELDUNGEN
   ============================================ */

.status-message {
    margin-top: 25px;
    padding: 18px 24px;
    border-radius: 10px;
    display: none;
    font-size: 1em;
    line-height: 1.6;
    border-left: 4px solid;
    box-shadow: var(--shadow-sm);
}

.status-message.success {
    background: #d4edda;
    border-color: var(--success);
    color: #155724;
    display: block;
}

.status-message.error {
    background: #f8d7da;
    border-color: var(--error);
    color: #721c24;
    display: block;
}

.status-message.info {
    background: #d1ecf1;
    border-color: var(--info);
    color: #0c5460;
    display: block;
}

/* ============================================
   VERGLEICHSERGEBNISSE
   ============================================ */

.results-section {
    margin-top: 50px;
    padding-top: 50px;
    border-top: 3px solid var(--border-light);
}

.results-section h2 {
    font-size: 2em;
    margin-bottom: 30px;
    color: var(--text-primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
}

.results-section h2::before {
    content: "📊";
    font-size: 1.2em;
}

/* ============================================
   SUCH- UND FILTERBEREICH
   ============================================ */

.search-filter-section {
    margin-bottom: 25px;
    padding: 15px 20px;
    background: linear-gradient(135deg, var(--shopware-light) 0%, var(--shopify-light) 100%);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.search-input {
    flex: 1;
    padding: 14px 50px 14px 18px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1.05em;
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--bg-white);
}

.search-input:focus {
    outline: none;
    border-color: var(--shopware-primary);
    box-shadow: 0 0 0 4px var(--shopware-light);
}

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

.btn-clear-search {
    position: absolute;
    right: 12px;
    background: var(--text-light);
    color: white;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    line-height: 1;
}

.btn-clear-search:hover {
    background: var(--error);
    transform: scale(1.15);
}

.filter-info {
    font-size: 0.95em;
    color: var(--text-secondary);
    font-weight: 500;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 6px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ============================================
   ZUSAMMENFASSUNG (SUMMARY CARDS)
   ============================================ */

.results-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
    padding: 25px 0;
    border-bottom: 2px solid var(--border-color);
}

.summary-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    text-align: left;
    transition: none;
}

.summary-card:hover {
    transform: none;
    box-shadow: none;
}

.summary-card h4 {
    margin: 0 0 8px 0;
    font-size: 0.85em;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

.summary-card .number {
    font-size: 2.2em;
    font-weight: 700;
    color: var(--shopware-primary);
    line-height: 1.2;
    margin: 0;
}

.summary-card:nth-child(2) .number {
    color: var(--shopify-primary);
}

.summary-card:nth-child(3) .number {
    color: var(--warning);
}

.summary-card:nth-child(4) .number {
    color: var(--info);
}

.summary-card:nth-child(5) .number {
    color: var(--info);
}

.summary-card:last-child .number {
    color: var(--success);
}

/* ============================================
   ERGEBNIS-TABELLE
   ============================================ */

.results-table {
    overflow-x: auto;
    margin-bottom: 40px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    max-height: 70vh;
    overflow-y: auto;
    position: relative;
    background: var(--bg-white);
}

.results-table thead {
    position: sticky;
    top: 0;
    z-index: 100;
}

.results-table table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-white);
    min-width: 900px;
    table-layout: auto;
    font-size: 0.95em;
}

.results-table th {
    background: linear-gradient(135deg, var(--shopware-primary) 0%, var(--shopify-primary) 100%);
    color: white;
    padding: 14px 18px;
    text-align: left;
    font-weight: 600;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
}

.results-table th:first-child {
    width: 220px;
}

.results-table th:nth-child(2),
.results-table th:nth-child(3) {
    width: 130px;
}

.results-table th:nth-child(4) {
    width: 110px;
}

.results-table th:nth-child(5) {
    width: 200px;
}

.results-table th:nth-child(6) {
    width: 110px;
}

.results-table th.sortable {
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s ease;
    padding-right: 35px;
}

.results-table th.sortable:hover {
    background: linear-gradient(135deg, var(--shopware-dark) 0%, var(--shopify-dark) 100%);
}

.results-table th .sort-arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1em;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.results-table th.sortable:hover .sort-arrow {
    opacity: 1;
}

.results-table th.sortable.active .sort-arrow {
    opacity: 1;
    color: #ffd700;
}

.results-table th:first-child {
    border-top-left-radius: 12px;
}

.results-table th:last-child {
    border-top-right-radius: 12px;
}

.results-table td {
    padding: 12px 18px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-primary);
    vertical-align: middle;
    white-space: nowrap;
    font-size: 0.95em;
}

.results-table td.sku-cell {
    font-weight: 600;
}

.results-table td.editable-cell {
    cursor: pointer;
    position: relative;
    transition: background-color 0.2s ease;
    min-width: 100px;
}

.results-table td.editable-cell:hover {
    background: var(--shopware-light);
}

.results-table td.editable-cell .cell-value {
    display: inline-block;
    min-width: 50px;
    padding: 4px 10px;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-weight: 600;
}

.results-table td.editable-cell:hover .cell-value {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 0 2px var(--shopware-primary);
}

.results-table td.editable-cell .cell-input {
    width: 100%;
    max-width: 100px;
    padding: 6px 10px;
    border: 2px solid var(--shopware-primary);
    border-radius: 6px;
    font-size: 1em;
    text-align: center;
    font-weight: 600;
    font-family: inherit;
    background: white;
}

.results-table td.editable-cell .cell-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px var(--shopware-light);
    border-color: var(--shopware-dark);
}

.results-table .btn-save-row {
    background: var(--success);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 1.2em;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: normal;
    white-space: nowrap;
    min-width: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.results-table .btn-save-row:hover {
    background: #218838;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.results-table tr[style*="display: none"] {
    display: none !important;
}

/* ============================================
   PRODUKTBILDER
   ============================================ */


/* ============================================
   SORTIERUNG
   ============================================ */

.results-table th.sortable {
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s ease;
    position: relative;
    padding-right: 35px;
}

.results-table th.sortable:hover {
    background: linear-gradient(135deg, var(--shopware-dark) 0%, var(--shopify-dark) 100%);
}

.results-table th .sort-arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1em;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.results-table th.sortable:hover .sort-arrow {
    opacity: 1;
}

.results-table th.sortable.active .sort-arrow {
    opacity: 1;
    font-weight: bold;
}

/* ============================================
   BEARBEITBARE ZELLEN
   ============================================ */

.results-table td.editable-cell {
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    min-width: 80px;
}

.results-table td.editable-cell:hover {
    background: var(--shopware-light);
}

.results-table td.editable-cell .cell-value {
    display: inline-block;
    min-width: 40px;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.results-table td.editable-cell:hover .cell-value {
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 0 2px var(--shopware-primary);
}

.results-table td.editable-cell .cell-input {
    width: 100%;
    max-width: 100px;
    padding: 6px 10px;
    border: 2px solid var(--shopware-primary);
    border-radius: 6px;
    font-size: 1em;
    text-align: center;
    font-weight: 600;
    background: white;
}

.results-table td.editable-cell .cell-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px var(--shopware-light);
    border-color: var(--shopware-dark);
}

.results-table .btn-save-row {
    background: var(--success);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 1.2em;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: normal;
    white-space: nowrap;
    min-width: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.results-table .btn-save-row:hover {
    background: #218838;
    transform: scale(1.1);
    box-shadow: var(--shadow-sm);
}

.results-table .btn-save-row:active {
    transform: scale(0.95);
}



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

.results-table tr:hover {
    background: var(--bg-lighter);
}

.results-table tr:nth-child(even) {
    background: var(--bg-light);
}

.results-table tr:nth-child(even):hover {
    background: var(--bg-lighter);
}

.difference-positive {
    color: var(--success);
    font-weight: 700;
    font-size: 1.1em;
}

.difference-negative {
    color: var(--error);
    font-weight: 700;
    font-size: 1.1em;
}

/* ============================================
   DOWNLOAD-BEREICH
   ============================================ */

.download-section {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 2px solid var(--border-light);
    text-align: center;
    background: linear-gradient(135deg, var(--shopware-light) 0%, var(--shopify-light) 100%);
    padding: 40px 30px;
    border-radius: 12px;
}

.download-section h3 {
    font-size: 1.75em;
    margin-bottom: 15px;
    color: var(--text-primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.download-section h3::before {
    content: "⬇️";
    font-size: 1.2em;
}

.download-description {
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-size: 1.05em;
}

.download-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   PASSWORT-MODAL (OVERLAY)
   ============================================ */

.inventory-password-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease;
}

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

.inventory-password-modal {
    background: var(--bg-white);
    padding: 50px;
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    max-width: 500px;
    width: 90%;
    text-align: center;
    animation: slideUp 0.4s ease;
    border: 1px solid var(--border-color);
}

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

.inventory-password-modal h2 {
    margin: 0 0 20px 0;
    color: var(--text-primary);
    font-size: 2em;
    font-weight: 700;
}

.inventory-password-modal p {
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.8;
    font-size: 1.05em;
}

/* ============================================
   PASSWORT-FORMULAR
   ============================================ */

.inventory-password-form {
    margin-top: 25px;
}

.inventory-password-input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1.1em;
    margin-bottom: 20px;
    box-sizing: border-box;
    font-family: inherit;
    transition: all 0.3s ease;
}

.inventory-password-input:focus {
    outline: none;
    border-color: var(--shopware-primary);
    box-shadow: 0 0 0 4px var(--shopware-light);
}

.inventory-password-submit {
    background: var(--shopware-gradient);
    color: white;
    border: none;
    padding: 16px 40px;
    font-size: 1.1em;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-md);
    font-family: inherit;
}

.inventory-password-submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, #0d7ed8 0%, #189eff 100%);
}

.inventory-password-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.inventory-password-message {
    margin-top: 20px;
    padding: 14px 18px;
    border-radius: 8px;
    display: none;
    font-size: 0.95em;
}

.inventory-password-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid var(--error);
    display: block;
}

.inventory-password-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid var(--success);
    display: block;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
    .inventory-sync-container {
        padding: 40px 30px;
    }
    
    .inventory-sync-header h1 {
        font-size: 2.25em;
    }
}

@media (max-width: 768px) {
    .inventory-sync-wrapper {
        margin: 20px auto;
        padding: 0 15px;
    }
    
    .inventory-sync-container {
        padding: 30px 20px;
        border-radius: 12px;
    }
    
    .inventory-sync-header {
        padding: 30px 20px;
        margin: -15px -15px 30px -15px;
        border-radius: 12px;
    }
    
    .inventory-sync-header h1 {
        font-size: 1.9em;
    }
    
    .inventory-sync-description {
        font-size: 1em;
    }
    
    .upload-section {
        padding-bottom: 30px;
        margin-bottom: 30px;
    }
    
    .upload-section h2 {
        font-size: 1.6em;
    }
    
    .upload-group {
        padding: 20px;
    }
    
    .results-summary {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .summary-card {
        padding: 20px;
    }
    
    .summary-card .number {
        font-size: 2.5em;
    }
    
    .download-section {
        padding: 30px 20px;
    }
    
    .download-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn-download {
        width: 100%;
        justify-content: center;
    }
    
    .results-table {
        font-size: 0.9em;
        border-radius: 8px;
        max-height: 60vh;
    }
    
    .results-table th,
    .results-table td {
        padding: 10px 12px;
        font-size: 0.9em;
    }
    
    
    .search-filter-section {
        padding: 12px 15px;
        flex-direction: column;
        gap: 10px;
    }
    
    .search-box {
        width: 100%;
    }
    
    .filter-info {
        width: 100%;
        text-align: center;
    }
    
    .search-input {
        font-size: 0.95em;
        padding: 12px 45px 12px 15px;
    }
    
    .btn-primary {
        padding: 16px 40px;
        font-size: 1.05em;
        width: 100%;
        justify-content: center;
    }
    
    .inventory-password-modal {
        padding: 40px 30px;
        max-width: 90%;
    }
    
    .inventory-password-modal h2 {
        font-size: 1.75em;
    }
}

@media (max-width: 480px) {
    .inventory-sync-wrapper {
        padding: 0 10px;
    }
    
    .inventory-sync-container {
        padding: 20px 15px;
    }
    
    .inventory-sync-header {
        padding: 25px 15px;
        margin: -10px -10px 25px -10px;
    }
    
    .inventory-sync-header h1 {
        font-size: 1.6em;
    }
    
    .results-summary {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .summary-card .number {
        font-size: 2em;
    }
    
    .upload-section h2,
    .results-section h2 {
        font-size: 1.4em;
    }
    
    .results-table {
        font-size: 0.85em;
    }
    
    .results-table th,
    .results-table td {
        padding: 10px 12px;
    }
    
    .inventory-password-modal {
        padding: 30px 20px;
    }
    
    .inventory-password-modal h2 {
        font-size: 1.5em;
    }
    
    .download-section h3 {
        font-size: 1.4em;
    }
}

/* ============================================
   ANIMATIONEN & EFFEKTE
   ============================================ */

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

.summary-card:hover .number {
    animation: pulse 2s ease-in-out infinite;
}

/* Smooth Transitions */
* {
    transition: background-color 0.2s ease, border-color 0.2s ease;
}