/* 
 * PureFlow ShopBridge - Moderne Hauptstildatei
 * Elegantes, übersichtliches Design mit verbesserter Typografie und Farbharmonie
 */

:root {
    /* Hauptfarben - Moderne Blau-Palette */
    --pf-primary: #1e40af; /* Tiefes, professionelles Blau */
    --pf-primary-light: #3b82f6; /* Helles Primärblau */
    --pf-primary-dark: #1e3a8a; /* Dunkles Primärblau */
    --pf-secondary: #06b6d4; /* Modernes Cyan */
    --pf-secondary-light: #22d3ee; /* Helles Cyan */
    
    /* Akzentfarben */
    --pf-accent: #10b981; /* Erfolgsgrün */
    --pf-warning: #f59e0b; /* Warnorange */
    --pf-danger: #ef4444; /* Fehlerrot */
    
    /* Neutrale Farben */
    --pf-gray-50: #f9fafb;
    --pf-gray-100: #f3f4f6;
    --pf-gray-200: #e5e7eb;
    --pf-gray-300: #d1d5db;
    --pf-gray-400: #9ca3af;
    --pf-gray-500: #6b7280;
    --pf-gray-600: #4b5563;
    --pf-gray-700: #374151;
    --pf-gray-800: #1f2937;
    --pf-gray-900: #111827;
    
    /* Layout-Farben */
    --pf-light: var(--pf-gray-50);
    --pf-dark: var(--pf-gray-800);
    --pf-white: #ffffff;
    --pf-border: var(--pf-gray-200);
    --pf-border-light: var(--pf-gray-100);
    
    /* Schatten */
    --pf-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --pf-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --pf-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --pf-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Typografie - Verbessert für bessere Lesbarkeit */
body {
    font-family: 'Inter', 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: var(--pf-gray-700);
    background-color: var(--pf-light);
    font-weight: 400;
    letter-spacing: -0.01em;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: 'Inter', 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--pf-gray-900);
    margin-top: 0;
}

h1 {
    font-size: 2.25rem;
    margin-bottom: 2rem;
    color: var(--pf-primary);
    font-weight: 800;
    letter-spacing: -0.05em;
}

h2 {
    font-size: 1.875rem;
    margin-bottom: 1.5rem;
    color: var(--pf-gray-800);
    font-weight: 700;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    color: var(--pf-gray-800);
    font-weight: 600;
}

h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--pf-gray-700);
    font-weight: 600;
}

h5 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
    color: var(--pf-gray-700);
    font-weight: 600;
}

h6 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--pf-gray-600);
    font-weight: 600;
}

/* Verbesserte Textklassen */
.text-lg {
    font-size: 1.125rem;
    line-height: 1.75;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.5;
}

.text-xs {
    font-size: 0.75rem;
    line-height: 1.4;
}

.font-medium {
    font-weight: 500;
}

.font-semibold {
    font-weight: 600;
}

.text-muted {
    color: var(--pf-gray-500);
}

/* Layout & Container - Verbesserte Struktur */
.container {
    max-width: 1280px;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.content-section {
    margin-bottom: 3rem;
}

.main-content {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

/* Navigation - Moderne Gestaltung */
.navbar {
    background-color: var(--pf-white) !important;
    box-shadow: var(--pf-shadow-sm);
    padding: 1rem 0;
    border-bottom: 1px solid var(--pf-border-light);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--pf-primary) !important;
    letter-spacing: -0.02em;
    text-decoration: none;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    color: var(--pf-primary-light) !important;
    transform: translateY(-1px);
}

.navbar-brand img {
    height: 42px;
    margin-right: 0.75rem;
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: rotate(5deg);
}

.navbar .nav-item {
    margin-left: 0.25rem;
}

.navbar .nav-link {
    color: var(--pf-gray-600) !important;
    font-weight: 500;
    padding: 0.625rem 1.25rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    font-size: 0.95rem;
}

.navbar .nav-link:hover {
    color: var(--pf-primary) !important;
    background-color: rgba(30, 64, 175, 0.08);
    transform: translateY(-1px);
}

.navbar .nav-link.active {
    color: var(--pf-primary) !important;
    background-color: rgba(30, 64, 175, 0.12);
    font-weight: 600;
}

.navbar .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background-color: var(--pf-primary);
    border-radius: 1px;
}

/* Responsive Navigation */
@media (max-width: 991.98px) {
    .navbar-collapse {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid var(--pf-border-light);
    }
    
    .navbar .nav-link {
        padding: 0.75rem 1rem;
        margin: 0.125rem 0;
    }
}

/* Cards & Panels - Moderne Kartendarstellung */
.card {
    border: 1px solid var(--pf-border-light);
    border-radius: 12px;
    box-shadow: var(--pf-shadow);
    margin-bottom: 2rem;
    background-color: var(--pf-white);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--pf-shadow-md);
    transform: translateY(-2px);
    border-color: var(--pf-primary-light);
}

.card-header {
    background: linear-gradient(135deg, var(--pf-primary) 0%, var(--pf-primary-light) 100%);
    color: var(--pf-white);
    border-bottom: none;
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: -0.01em;
}

.card-header h1,
.card-header h2,
.card-header h3,
.card-header h4,
.card-header h5,
.card-header h6 {
    color: var(--pf-white);
    margin-bottom: 0;
}

.card-body {
    padding: 1.5rem;
    line-height: 1.6;
}

.card-footer {
    background-color: var(--pf-gray-50);
    border-top: 1px solid var(--pf-border-light);
    padding: 1rem 1.5rem;
    font-size: 0.9rem;
    color: var(--pf-gray-600);
}

/* Spezielle Karten-Varianten */
.card-simple {
    box-shadow: var(--pf-shadow-sm);
    border-radius: 8px;
}

.card-simple:hover {
    transform: none;
    box-shadow: var(--pf-shadow);
}

.card-elevated {
    box-shadow: var(--pf-shadow-lg);
    border: none;
}

/* Buttons - Moderne Button-Gestaltung */
.btn {
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95rem;
    letter-spacing: -0.01em;
    position: relative;
    overflow: hidden;
    border-width: 1px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn:focus {
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.2);
    outline: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--pf-primary) 0%, var(--pf-primary-light) 100%);
    border-color: var(--pf-primary);
    color: var(--pf-white);
    box-shadow: 0 2px 4px rgba(30, 64, 175, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--pf-primary-dark) 0%, var(--pf-primary) 100%);
    border-color: var(--pf-primary-dark);
    color: var(--pf-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--pf-secondary) 0%, var(--pf-secondary-light) 100%);
    border-color: var(--pf-secondary);
    color: var(--pf-white);
    box-shadow: 0 2px 4px rgba(6, 182, 212, 0.2);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #0891b2, var(--pf-secondary) 100%);
    border-color: #0891b2;
    color: var(--pf-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}

.btn-outline-primary {
    color: var(--pf-primary);
    border-color: var(--pf-primary);
    background-color: transparent;
}

.btn-outline-primary:hover {
    background-color: var(--pf-primary);
    border-color: var(--pf-primary);
    color: var(--pf-white);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.2);
}

.btn-outline-secondary {
    color: var(--pf-secondary);
    border-color: var(--pf-secondary);
    background-color: transparent;
}

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

.btn-success {
    background-color: var(--pf-accent);
    border-color: var(--pf-accent);
    color: var(--pf-white);
}

.btn-success:hover {
    background-color: #059669;
    border-color: #059669;
    color: var(--pf-white);
    transform: translateY(-1px);
}

.btn-warning {
    background-color: var(--pf-warning);
    border-color: var(--pf-warning);
    color: var(--pf-white);
}

.btn-warning:hover {
    background-color: #d97706;
    border-color: #d97706;
    color: var(--pf-white);
    transform: translateY(-1px);
}

.btn-danger {
    background-color: var(--pf-danger);
    border-color: var(--pf-danger);
    color: var(--pf-white);
}

.btn-danger:hover {
    background-color: #dc2626;
    border-color: #dc2626;
    color: var(--pf-white);
    transform: translateY(-1px);
}

/* Button-Größen */
.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border-radius: 6px;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    border-radius: 10px;
}

/* Tabellen - Moderne Tabellendarstellung */
.table {
    margin-bottom: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--pf-shadow-sm);
}

.table thead th {
    background: linear-gradient(135deg, var(--pf-gray-50) 0%, var(--pf-gray-100) 100%);
    color: var(--pf-gray-800);
    font-weight: 600;
    border-bottom: 2px solid var(--pf-primary);
    padding: 1rem 1.25rem;
    font-size: 0.9rem;
    letter-spacing: 0.025em;
    text-transform: uppercase;
}

.table tbody td {
    padding: 1rem 1.25rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--pf-border-light);
    font-size: 0.95rem;
}

.table tbody tr {
    transition: all 0.2s ease;
}

.table-hover tbody tr:hover {
    background-color: rgba(30, 64, 175, 0.04);
    transform: translateX(2px);
    box-shadow: inset 3px 0 0 var(--pf-primary-light);
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: var(--pf-gray-50);
}

/* Responsive Tabellen */
@media (max-width: 768px) {
    .table-responsive {
        border-radius: 8px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-bottom: 1rem;
        box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
    }
    
    .table {
        min-width: 600px; /* Mindestbreite für horizontales Scrollen */
    }
    
    .table thead th,
    .table tbody td {
        padding: 0.75rem 0.875rem;
        font-size: 0.875rem;
        white-space: nowrap;
    }
    
    /* Scroll-Hinweis für mobile Tabellen */
    .table-responsive::after {
        content: "← Zum Scrollen wischen →";
        display: block;
        text-align: center;
        font-size: 0.75rem;
        color: var(--pf-gray-500);
        padding: 0.5rem;
        background: var(--pf-gray-50);
        border-top: 1px solid var(--pf-border-light);
    }
}

/* Dashboard-Widgets - Moderne Informationsboxen */
.info-box {
    background: linear-gradient(135deg, var(--pf-white) 0%, var(--pf-gray-50) 100%);
    border-radius: 12px;
    border: 1px solid var(--pf-border-light);
    padding: 1.75rem;
    margin-bottom: 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.info-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--pf-primary) 0%, var(--pf-secondary) 100%);
}

.info-box:hover {
    box-shadow: var(--pf-shadow-lg);
    transform: translateY(-4px);
    border-color: var(--pf-primary-light);
}

.info-box-label {
    font-size: 0.875rem;
    color: var(--pf-gray-500);
    margin-bottom: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.info-box-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0;
    color: var(--pf-primary);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.info-box-icon {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--pf-primary-light) 0%, var(--pf-secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pf-white);
    font-size: 1.25rem;
}

/* Formulare - Moderne Eingabefelder */
.form-control {
    border-radius: 8px;
    border: 2px solid var(--pf-border);
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background-color: var(--pf-white);
    color: var(--pf-gray-700);
}

.form-control:focus {
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
    border-color: var(--pf-primary);
    outline: none;
    background-color: var(--pf-white);
}

.form-control:hover {
    border-color: var(--pf-primary-light);
}

.form-control::placeholder {
    color: var(--pf-gray-400);
    font-size: 0.9rem;
}

.form-label {
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--pf-gray-700);
    font-size: 0.95rem;
}

.form-text {
    color: var(--pf-gray-500);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* Formulare - Spezielle Stile */
.form-group {
    margin-bottom: 1.5rem;
}

.form-select {
    border-radius: 8px;
    border: 2px solid var(--pf-border);
    padding: 0.75rem 1rem;
    background-color: var(--pf-white);
    transition: all 0.3s ease;
}

.form-select:focus {
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
    border-color: var(--pf-primary);
}

.form-check-input {
    border-radius: 4px;
    border: 2px solid var(--pf-border);
}

.form-check-input:checked {
    background-color: var(--pf-primary);
    border-color: var(--pf-primary);
}

.form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.form-check-label {
    color: var(--pf-gray-700);
    font-weight: 500;
}

/* Badges - Moderne Kennzeichnungen */
.badge {
    font-weight: 600;
    padding: 0.5rem 0.875rem;
    border-radius: 20px;
    font-size: 0.75rem;
    letter-spacing: 0.025em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

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

.badge-secondary {
    background-color: var(--pf-secondary);
    color: var(--pf-white);
}

.badge-success {
    background-color: var(--pf-accent);
    color: var(--pf-white);
}

.badge-warning {
    background-color: var(--pf-warning);
    color: var(--pf-white);
}

.badge-danger {
    background-color: var(--pf-danger);
    color: var(--pf-white);
}

.badge-light {
    background-color: var(--pf-gray-100);
    color: var(--pf-gray-700);
}

.badge-dark {
    background-color: var(--pf-gray-800);
    color: var(--pf-white);
}

/* Status-Indikatoren - Verbesserte Darstellung */
.status-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 0.75rem;
    position: relative;
    animation: pulse 2s infinite;
}

.status-indicator::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    opacity: 0.3;
    animation: ping 2s infinite;
}

.status-success {
    background-color: var(--pf-accent);
}

.status-success::after {
    background-color: var(--pf-accent);
}

.status-warning {
    background-color: var(--pf-warning);
}

.status-warning::after {
    background-color: var(--pf-warning);
}

.status-danger {
    background-color: var(--pf-danger);
}

.status-danger::after {
    background-color: var(--pf-danger);
}

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

@keyframes ping {
    0% {
        transform: scale(0.8);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.4;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

/* Footer */
.footer {
    background-color: var(--pf-white);
    border-top: 1px solid var(--pf-border);
    padding: 1.5rem 0;
    margin-top: 3rem;
}

.footer p {
    margin-bottom: 0;
    color: #6c757d;
}

/* Hilfsklassen */
.font-weight-bold {
    font-weight: 600 !important;
}

.text-primary {
    color: var(--pf-primary) !important;
}

.bg-light-blue {
    background-color: rgba(44, 79, 158, 0.1);
}

/* Modal-Dialog */
.modal-header {
    background: linear-gradient(135deg, var(--pf-primary) 0%, var(--pf-primary-light) 100%);
    color: var(--pf-white);
    border-bottom: none;
    border-radius: 12px 12px 0 0;
}

.modal-header .modal-title {
    color: var(--pf-white) !important;
    font-weight: 600;
    font-size: 1.25rem;
}

.modal-header h1,
.modal-header h2,
.modal-header h3,
.modal-header h4,
.modal-header h5,
.modal-header h6 {
    color: var(--pf-white) !important;
    margin-bottom: 0;
}

.modal-header .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
    opacity: 0.8;
}

.modal-header .btn-close:hover {
    opacity: 1;
}

.modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: var(--pf-shadow-lg);
}

.modal-footer {
    border-top: 1px solid var(--pf-border);
    background-color: var(--pf-gray-50);
    border-radius: 0 0 12px 12px;
}

/* Responsive Anpassungen - Erweitert für Mobile */

/* Large devices (desktops, 992px and up) */
@media (max-width: 1200px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .info-box-value {
        font-size: 1.75rem;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (max-width: 992px) {
    h1 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    .navbar .nav-item {
        margin-left: 0;
    }
    
    .btn {
        padding: 0.65rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .info-box {
        padding: 1.5rem;
    }
    
    .info-box-value {
        font-size: 1.5rem;
    }
    
    .info-box-icon {
        width: 40px;
        height: 40px;
        top: 1.25rem;
        right: 1.25rem;
        font-size: 1rem;
    }
    
    .modal-dialog {
        margin: 1rem;
    }
}

/* PRODUKTTABELLEN - EXAKTE FORMATIERUNG */
/* Alle Produkttabellen identisch formatieren */
table#productTable th,
table#productTable td,
table#productTable div,
table#productTable span,
table.table th,
table.table td,
table.table div,
table.table span {
    font-family: 'Inter', 'Open Sans', sans-serif !important;
    font-size: 0.85rem !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
}

/* Icons und Buttons korrekt formatieren */
table#productTable i.fas,
table#productTable i.far,
table#productTable i.fab,
table.table i.fas,
table.table i.far,
table.table i.fab {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    font-size: 0.875rem !important;
    line-height: 1 !important;
}

table#productTable .btn,
table.table .btn {
    font-family: 'Inter', 'Open Sans', sans-serif !important;
    font-size: 0.8rem !important;
    font-weight: 400 !important;
}

table#productTable th {
    padding: 0.5rem 0.75rem !important;
    border-bottom: 1px solid #dee2e6 !important;
    background-color: transparent !important;
}

table#productTable td {
    padding: 0.5rem 0.75rem !important;
    border-top: 1px solid #dee2e6 !important;
    vertical-align: top !important;
}

/* Responsive */
@media (max-width: 768px) {
    table#productTable * {
        font-size: 0.8rem !important;
    }
    
    table#productTable th,
    table#productTable td {
        padding: 0.4rem 0.5rem !important;
    }
}

/* Desktop-specific improvements */
@media (min-width: 768px) {
    .btn-sm {
        min-width: auto;
        white-space: nowrap;
    }
    
    .card-header .btn-sm {
        flex-shrink: 0;
        max-width: 150px;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (max-width: 768px) {
    body {
        font-size: 15px;
    }
    
    h1 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    h2 {
        font-size: 1.4rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .main-content {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
    
    /* Navigation mobile optimizations */
    .navbar {
        padding: 0.75rem 0;
    }
    
    .navbar-brand img {
        height: 36px;
    }
    
    .navbar .nav-link {
        padding: 0.75rem 1rem;
        margin: 0.125rem 0;
        font-size: 0.9rem;
    }
    
    /* Cards responsive */
    .card {
        margin-bottom: 1.5rem;
        border-radius: 8px;
    }
    
    .card-header {
        padding: 1rem 1.25rem;
        font-size: 1rem;
    }
    
    .card-body {
        padding: 1.25rem;
    }
    
    /* Tables responsive */
    .table thead th, 
    .table tbody td {
        padding: 0.75rem 0.875rem;
        font-size: 0.875rem;
    }
    
    .table thead th {
        font-size: 0.8rem;
    }
    
    /* Buttons responsive */
    .btn {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
    }
    
    .btn-sm {
        padding: 0.375rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .btn-lg {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Forms responsive */
    .form-control {
        padding: 0.625rem 0.875rem;
        font-size: 0.9rem;
    }
    
    .form-label {
        font-size: 0.9rem;
    }
    
    /* Info boxes responsive */
    .info-box {
        padding: 1.25rem;
        margin-bottom: 1.5rem;
    }
    
    .info-box-value {
        font-size: 1.25rem;
    }
    
    .info-box-icon {
        width: 36px;
        height: 36px;
        top: 1rem;
        right: 1rem;
        font-size: 0.9rem;
    }
    
    /* Modal responsive */
    .modal-dialog {
        margin: 0.5rem;
    }
    
    .modal-header {
        padding: 1rem 1.25rem;
    }
    
    .modal-header .modal-title {
        font-size: 1.1rem;
    }
    
    .modal-body {
        padding: 1.25rem;
    }
    
    /* Utility classes for mobile */
    .d-block-mobile {
        display: block !important;
    }
    
    .text-center-mobile {
        text-align: center !important;
    }
    
    .w-100-mobile {
        width: 100% !important;
    }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 576px) {
    body {
        font-size: 14px;
        line-height: 1.6;
    }
    
    h1 {
        font-size: 1.35rem;
        margin-bottom: 0.75rem;
        line-height: 1.3;
    }
    
    h2 {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
    }
    
    h3 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    .container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    .main-content {
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }
    
    /* Navigation extra small */
    .navbar {
        padding: 0.5rem 0;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .navbar-brand img {
        height: 32px;
        margin-right: 0.5rem;
    }
    
    .navbar .nav-link {
        padding: 0.625rem 0.75rem;
        font-size: 0.85rem;
    }
    
    .navbar .nav-link i {
        margin-right: 0.375rem !important;
    }
    
    /* Cards extra small */
    .card {
        margin-bottom: 1rem;
        border-radius: 6px;
    }
    
    .card-header, 
    .card-body {
        padding: 0.875rem;
    }
    
    .card-header {
        font-size: 0.95rem;
    }
    
    .card-footer {
        padding: 0.75rem 0.875rem;
        font-size: 0.8rem;
    }
    
    /* Tables extra small */
    .table-responsive {
        border-radius: 6px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        position: relative;
    }
    
    .table {
        min-width: 500px; /* Reduzierte Mindestbreite für kleinere Bildschirme */
        margin-bottom: 0;
    }
    
    .table thead th, 
    .table tbody td {
        padding: 0.5rem 0.625rem;
        font-size: 0.8rem;
        white-space: nowrap;
    }
    
    .table thead th {
        font-size: 0.75rem;
        text-transform: none;
        letter-spacing: 0;
        position: sticky;
        top: 0;
        background: var(--pf-gray-50);
        z-index: 2;
    }
    
    /* Erste Spalte fixieren für bessere Navigation */
    .table thead th:first-child,
    .table tbody td:first-child {
        position: sticky;
        left: 0;
        background: var(--pf-white);
        z-index: 1;
        box-shadow: 2px 0 4px rgba(0, 0, 0, 0.1);
    }
    
    .table thead th:first-child {
        background: var(--pf-gray-50);
        z-index: 3;
    }
    
    /* Hide less important columns on mobile */
    .table .d-none-mobile {
        display: none !important;
    }
    
    /* Scroll-Anzeige für sehr kleine Bildschirme */
    .table-responsive::after {
        content: "← Wischen zum Scrollen →";
        display: block;
        text-align: center;
        font-size: 0.7rem;
        color: var(--pf-gray-400);
        padding: 0.375rem;
        background: var(--pf-gray-50);
        border-top: 1px solid var(--pf-border-light);
        position: sticky;
        bottom: 0;
    }
    
    /* Buttons extra small */
    .btn {
        padding: 0.5rem 0.875rem;
        font-size: 0.8rem;
        border-radius: 6px;
    }
    
    .btn-sm {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
    
    /* Stack buttons vertically on mobile */
    .btn-group-mobile .btn {
        display: block;
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .btn-group-mobile .btn:last-child {
        margin-bottom: 0;
    }
    
    /* Forms extra small */
    .form-control {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
        border-radius: 6px;
    }
    
    .form-label {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }
    
    .form-text {
        font-size: 0.75rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    /* Input groups responsive */
    .input-group .btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
    
    /* Info boxes extra small */
    .info-box {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .info-box-label {
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
    }
    
    .info-box-value {
        font-size: 1.1rem;
    }
    
    .info-box-icon {
        width: 32px;
        height: 32px;
        top: 0.75rem;
        right: 0.75rem;
        font-size: 0.8rem;
        border-radius: 8px;
    }
    
    /* Modal extra small */
    .modal-dialog {
        margin: 0.25rem;
    }
    
    .modal-dialog-centered {
        min-height: calc(100% - 0.5rem);
    }
    
    .modal-header {
        padding: 0.875rem 1rem;
    }
    
    .modal-header .modal-title {
        font-size: 1rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .modal-footer {
        padding: 0.75rem 1rem;
    }
    
    /* Alert responsive */
    .alert {
        margin-bottom: 1rem;
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
        border-radius: 6px;
    }
    
    /* Badge responsive */
    .badge {
        padding: 0.375rem 0.625rem;
        font-size: 0.7rem;
        border-radius: 12px;
    }
    
    /* Dropdown responsive */
    .dropdown-menu {
        font-size: 0.85rem;
    }
    
    .dropdown-item {
        padding: 0.5rem 1rem;
    }
    
    /* Search form responsive */
    .input-group {
        flex-wrap: wrap;
    }
    
    .input-group .form-control {
        flex: 1 1 100%;
        margin-bottom: 0.5rem;
    }
    
    .input-group .btn {
        flex: 1 1 100%;
    }
    
    /* Page header responsive */
    .d-flex.justify-content-between {
        flex-direction: column;
        align-items: flex-start !important;
    }
    
    .d-flex.justify-content-between > div:last-child {
        margin-top: 1rem;
        align-self: stretch;
    }
    
    .d-flex.justify-content-between .btn {
        width: 100%;
    }
    
    /* Text utilities for mobile */
    .text-truncate-mobile {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    /* Spacing utilities for mobile */
    .mb-1-mobile { margin-bottom: 0.25rem !important; }
    .mb-2-mobile { margin-bottom: 0.5rem !important; }
    .mb-3-mobile { margin-bottom: 1rem !important; }
    .mt-1-mobile { margin-top: 0.25rem !important; }
    .mt-2-mobile { margin-top: 0.5rem !important; }
    .mt-3-mobile { margin-top: 1rem !important; }
    
    /* Hide/show utilities for mobile */
    .d-none-mobile { display: none !important; }
    .d-block-mobile { display: block !important; }
    .d-inline-mobile { display: inline !important; }
    .d-inline-block-mobile { display: inline-block !important; }
    .d-flex-mobile { display: flex !important; }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .btn {
        min-height: 44px;
        padding: 0.75rem 1rem;
    }
    
    .btn-sm {
        min-height: 36px;
        padding: 0.5rem 0.75rem;
    }
    
    .form-control {
        min-height: 44px;
    }
    
    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    .table tbody tr {
        min-height: 48px;
    }
    
    .dropdown-item {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
}

/* Prevent mobile browsers from auto-linking numbers */
.table td,
.table th,
.no-phone-link {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.table td:first-child,
.sku-cell,
.article-number {
    pointer-events: none;
}

/* Re-enable text selection for non-numeric content */
.table td:not(:first-child) {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* Dark mode support for mobile (if needed in future) */
@media (prefers-color-scheme: dark) {
    /* Add dark mode styles here if needed */
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn {
        border-width: 2px;
    }
    
    .form-control {
        border-width: 2px;
    }
    
    .card {
        border-width: 2px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .btn:hover {
        transform: none;
    }
    
    .card:hover {
        transform: none;
    }
    
    .info-box:hover {
        transform: none;
    }
}