/* 4Unit OwnTheOrder - Modern CSS Framework */
/* @author Firma: 4Unit Systems Integration GmbH */

/* CSS Variables are now dynamically generated from configuration */

/* Reset und Basis */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--light-color);
}

/* Container und Layout */
.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 1rem;
}

.container-sm {
    max-width: 640px;
    margin: 0 auto;
    padding: 0 1rem;
}

.container-lg {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Grid System */
.grid {
    display: grid;
    gap: 1rem;
}

.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (min-width: 768px) {
    .md\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
    .md\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Flexbox Utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

/* Spacing */
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.p-12 { padding: 3rem; }

.m-1 { margin: 0.25rem; }
.m-2 { margin: 0.5rem; }
.m-4 { margin: 1rem; }
.m-6 { margin: 1.5rem; }
.m-8 { margin: 2rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }

/* Typography */
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }

.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-white { color: white; }
.text-gray-100 { color: var(--gray-100); }
.text-gray-200 { color: var(--gray-200); }
.text-gray-300 { color: var(--gray-300); }
.text-gray-400 { color: var(--gray-400); }
.text-gray-500 { color: var(--gray-500); }
.text-gray-600 { color: var(--gray-600); }
.text-gray-700 { color: var(--gray-700); }
.text-gray-800 { color: var(--gray-800); }
.text-gray-900 { color: var(--gray-900); }

/* Background Colors */
.bg-white { background-color: white; }
.bg-gray-50 { background-color: #f9fafb; }
.bg-gray-100 { background-color: var(--gray-100); }
.bg-gray-200 { background-color: var(--gray-200); }
.bg-gray-800 { background-color: var(--gray-800); }
.bg-gray-900 { background-color: var(--gray-900); }
.bg-primary { background-color: var(--primary-color); }
.bg-secondary { background-color: var(--secondary-color); }
.bg-success { background-color: var(--success-color); }
.bg-warning { background-color: var(--warning-color); }
.bg-danger { background-color: var(--danger-color); }
.bg-info { background-color: var(--info-color); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    gap: 0.5rem;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background-color: #5a6fd8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background-color: var(--gray-500);
    color: white;
}

.btn-secondary:hover:not(:disabled) {
    background-color: var(--gray-600);
    transform: translateY(-1px);
}

.btn-success {
    background-color: var(--success-color);
    color: white;
}

.btn-success:hover:not(:disabled) {
    background-color: #059669;
    transform: translateY(-1px);
}

.btn-danger {
    background-color: var(--danger-color);
    color: white;
}

.btn-danger:hover:not(:disabled) {
    background-color: #dc2626;
    transform: translateY(-1px);
}

.btn-outline-primary {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-outline-primary:hover:not(:disabled) {
    background-color: var(--primary-color);
    color: white;
}

.btn-outline-secondary {
    background-color: transparent;
    color: var(--gray-600);
    border: 1px solid var(--gray-300);
}

.btn-outline-secondary:hover:not(:disabled) {
    background-color: var(--gray-600);
    color: white;
    border-color: var(--gray-600);
}

/* Forms */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 500;
    color: var(--gray-700);
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    transition: var(--transition);
    background-color: white;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-control:disabled {
    background-color: var(--gray-100);
    cursor: not-allowed;
}

.form-control-sm {
    padding: 0.5rem;
    font-size: 0.75rem;
}

.form-control-lg {
    padding: 1rem;
    font-size: 1rem;
}

/* Cards */
.card {
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--box-shadow-lg);
    transform: translateY(-2px);
}

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    background-color: var(--gray-50);
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--gray-200);
    background-color: var(--gray-50);
}

/* Alerts */
.alert {
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    border: 1px solid transparent;
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
    border-color: #a7f3d0;
}

.alert-warning {
    background-color: #fef3c7;
    color: #92400e;
    border-color: #fde68a;
}

.alert-danger {
    background-color: #fee2e2;
    color: #991b1b;
    border-color: #fecaca;
}

.alert-info {
    background-color: #dbeafe;
    color: #1e40af;
    border-color: #bfdbfe;
}

/* Tables */
.table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.table th,
.table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.table th {
    background-color: var(--gray-50);
    font-weight: 600;
    color: var(--gray-700);
}

.table tbody tr:hover {
    background-color: var(--gray-50);
}

.table tbody tr:last-child td {
    border-bottom: none;
}

/* Navigation */
.navbar {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.navbar-nav {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.navbar-nav a {
    color: var(--gray-600);
    text-decoration: none;
    padding: 0.5rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    font-weight: 500;
}

.navbar-nav a:hover {
    color: var(--primary-color);
    background-color: var(--gray-100);
}

/* Free Delivery Progress Bar */
.free-delivery-progress {
    position: -webkit-sticky;
    position: sticky;
    /* Abstand dynamisch; Fallback 120px für Clean-Style */
    top: var(--sticky-offset, 120px);
    z-index: 40;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    padding: 0.75rem 1rem;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* iOS Fallback: Sticky kann in verschachtelten Containern ausfallen */
.free-delivery-progress.ios-fixed {
    position: fixed !important;
    left: 0;
    right: 0;
    top: var(--sticky-offset, 72px) !important;
    z-index: 9999;
    padding-left: calc(env(safe-area-inset-left, 0px) + 1rem);
    padding-right: calc(env(safe-area-inset-right, 0px) + 1rem);
}

/* Ensure app content does not overlay cart modal */
.clean-style [data-cart-modal-overlay] { position: fixed; inset: 0; z-index: 10000; }

.progress-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.progress-info {
    flex: 1;
    min-width: 0;
}

.progress-text {
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
    min-width: 120px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

@media (max-width: 768px) {
    .free-delivery-progress { padding: 0.5rem; top: var(--sticky-offset, 72px); }
    
    .progress-container {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .progress-text {
        font-size: 0.75rem;
    }
    
    .progress-bar { width: 100%; }
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 6rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.1;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-hero {
    background: white;
    color: var(--primary-color);
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    color: var(--primary-color);
}

/* Menu Items */
.menu-item {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.menu-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

.menu-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
}

.menu-item-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
}

.menu-item-description {
    color: var(--gray-600);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.menu-item-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--success-color);
}

/* Menu Display Types */
.menu-list-layout {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.menu-list-layout .menu-item {
    display: flex;
    align-items: stretch;
    padding: 1rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-200);
    background: white;
    transition: var(--transition);
    gap: 1rem;
}

.menu-list-layout .menu-item-image {
    flex-shrink: 0;
    width: 96px;
    height: 96px;
    border-radius: var(--border-radius);
    overflow: hidden;
    background: linear-gradient(135deg, var(--gray-200), var(--gray-300));
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-list-layout .menu-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.menu-list-layout .menu-item-image i {
    font-size: 2rem;
    color: var(--gray-400);
}

.menu-list-layout .menu-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
    background: var(--gray-50);
}



.menu-list-layout .menu-item-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-800);
    margin: 0;
}

.menu-list-layout .menu-item-description {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin: 0;
    line-height: 1.4;
}



/* Content-Bereich mit Preisangaben */
.menu-list-layout .menu-item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 0;
}

/* Actions-Bereich mit Preis und Controls */
.menu-list-layout .menu-item-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    gap: 1rem;
}

/* Nur die Controls nach rechts */
.menu-list-layout .menu-item-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    margin-left: auto;
}

.menu-list-layout .menu-item-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--success-color);
    white-space: nowrap;
    flex-shrink: 0;
}

.menu-list-layout .menu-item-button {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border-radius: var(--border-radius);
    background: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.menu-list-layout .menu-item-button:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.menu-grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.menu-grid-layout .menu-item {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--gray-200);
    background: white;
    transition: var(--transition);
    height: 100%;
}

.menu-grid-layout .menu-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
    background: var(--gray-50);
}

.menu-grid-layout .menu-item-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--gray-200), var(--gray-300));
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-grid-layout .menu-item-image i {
    font-size: 3rem;
    color: var(--gray-400);
}

.menu-grid-layout .menu-item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.menu-grid-layout .menu-item-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
}

.menu-grid-layout .menu-item-description {
    color: var(--gray-600);
    margin-bottom: 1rem;
    line-height: 1.5;
    flex: 1;
}

.menu-grid-layout .menu-item-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    gap: 1rem;
}

/* Grid-Layout Controls */
.menu-grid-layout .menu-item-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
}

.menu-grid-layout .menu-item-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--success-color);
    flex-shrink: 0;
}

.menu-grid-layout .menu-item-button {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-radius: var(--border-radius);
    background: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
}

.menu-grid-layout .menu-item-button:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .menu-list-layout .menu-item {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .menu-list-layout .menu-item-actions {
        margin-left: 0;
        justify-content: space-between;
    }
    
    .menu-grid-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Page Layout Styles */
.page-layout-full {
    width: 100%;
    max-width: none;
}

.page-layout-boxed {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Sticky Layout Styles */
.sticky-layout {
    display: grid;
    grid-template-columns: 250px 1fr 350px;
    gap: 0;
    min-height: calc(100vh - 200px);
    background: #f8f9fa;
}

.sticky-sidebar {
    background: white;
    border-right: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    padding: 1.5rem;
}

.category-section {
    position: sticky;
    top: 1.5rem;
}

.category-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.category-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.category-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
    font-size: 0.875rem;
    color: var(--gray-700);
}

.category-item:hover {
    background: var(--gray-100);
    color: var(--primary-color);
}

.category-item.active {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
}

.category-item i {
    font-style: normal;
    font-weight: 900;
    margin-right: 0.5rem;
    width: 16px;
    text-align: center;
}

.category-tagcloud {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tag-item {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.875rem;
    color: var(--gray-700);
    white-space: nowrap;
    margin-bottom: 0.25rem;
    display: inline-block;
}

.tag-item:hover {
    background: var(--gray-200);
    color: var(--primary-color);
}

.tag-item.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.tag-item i {
    font-style: normal;
    font-weight: 900;
    margin-right: 0.5rem;
    width: 16px;
    text-align: center;
}

.main-content {
    background: white;
    padding: 2rem;
    overflow-y: auto;
    max-height: 100vh;
}

.content-header {
    text-align: center;
    margin-bottom: 2rem;
}

.content-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
}

.content-description {
    color: var(--gray-600);
    font-size: 1.125rem;
}

.menu-container {
    max-width: none;
}

.sticky-cart {
    background: white;
    border-left: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    padding: 1.5rem;
}

.cart-section {
    position: sticky;
    top: 1.5rem;
}

.cart-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.cart-items {
    margin-bottom: 1.5rem;
}

.cart-empty {
    text-align: center;
    color: var(--gray-500);
    font-style: italic;
    padding: 2rem 0;
}

.cart-total {
    background: white;
    padding: 1rem 0;
    margin-bottom: 1.5rem;
}

.total-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: var(--gray-700);
}

.total-line:last-child {
    margin-bottom: 0;
}

.total-final {
    font-weight: 600;
    font-size: 1rem;
    color: var(--primary-color);
    padding-top: 0.5rem;
    margin-top: 0.5rem;
}

.order-form {
    border-top: 1px solid var(--gray-200);
    padding-top: 1.5rem;
}

.form-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Delivery Toggle Switch Styles */
.delivery-toggle-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

         .delivery-toggle-switch {
             position: relative;
             width: 240px;
             height: 80px;
         }
         
         .toggle-input {
             opacity: 0;
             width: 0;
             height: 0;
         }
         
         .toggle-label {
             position: absolute;
             cursor: pointer;
             top: 0;
             left: 0;
             right: 0;
             bottom: 0;
             background-color: var(--gray-200);
             transition: var(--transition);
             border-radius: 40px;
             border: 2px solid var(--gray-300);
         }
         
         .toggle-label:before {
             position: absolute;
             content: "";
             height: 64px;
             width: 64px;
             left: 8px;
             bottom: 8px;
             background-color: white;
             transition: var(--transition);
             border-radius: 50%;
         }

.toggle-input:checked + .toggle-label {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

         .toggle-input:checked + .toggle-label:before {
             transform: translateX(150px);
         }

         .toggle-slider {
             position: relative;
             /* width: 100%; */
             width: 220px;
             height: 100%;
             display: flex;
             align-items: center;
             justify-content: space-between;
             /* padding: 0 16px; */
             padding: 0 10px;
         }
         
         .toggle-icons {
             position: absolute;
             width: 100%;
             height: 100%;
             display: flex;
             align-items: center;
             justify-content: space-between;
             padding: 0 16px;
             pointer-events: none;
         }
         
         .toggle-input:checked ~ .toggle-label .toggle-icons {
             padding: 0 20px 0 30px;
         }
         
         .toggle-icon {
            font-size: 1.6rem;
            color: var(--white-500);
            transition: var(--transition);
            z-index: 2;
        }

         .toggle-input:checked ~ .toggle-label .toggle-icon.delivery-icon {
             color:var(--primary-color);
         }
         
         .toggle-input:checked ~ .toggle-label .toggle-icon.pickup-icon {
            color: white;
        }
         
         .toggle-input:not(:checked) ~ .toggle-label .toggle-icon.pickup-icon {
             color: var(--gray-700);
         }
         
         .toggle-input:not(:checked) ~ .toggle-label .toggle-icon.delivery-icon {
             color: var(--gray-500);
         }

         .toggle-labels {
             display: flex;
             justify-content: space-between;
             align-items: center;
             margin-top: 0.5rem;
             width: 240px;
         }
         
         .toggle-label-text {
             font-size: 0.875rem;
             font-weight: 500;
             color: var(--gray-600);
             transition: var(--transition);
             cursor: pointer;
         }

.toggle-label-text.active {
    color: var(--primary-color);
    font-weight: 600;
}

.delivery-section {
    margin-bottom: 1.5rem;
}

.submit-button {
    width: 100%;
    padding: 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.submit-button:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.submit-button:disabled {
    background: var(--gray-400);
    cursor: not-allowed;
    transform: none;
}

/* Quantity Counter Styles */
.quantity-counter {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 0.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--gray-200);
}

.quantity-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: var(--gray-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--gray-600);
    font-size: 0.75rem;
    font-style: normal;
    position: relative;
}

.quantity-btn i {
    font-style: normal;
    font-weight: 900;
    font-size: 0.875rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.quantity-btn:active {
    transform: scale(0.95);
}

.quantity-btn.minus {
    margin-right: 0.5rem;
}

.quantity-btn.plus {
    margin-left: 0.5rem;
}

.quantity-display {
    min-width: 30px;
    text-align: center;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--gray-800);
    padding: 0 0.5rem;
}

.cart-icon-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: 0.75rem;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.cart-icon-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.cart-icon-btn:active {
    transform: scale(0.95);
}

.cart-icon-btn i {
    font-size: 0.875rem;
    font-style: normal;
    font-weight: 900;
}

.quantity-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.quantity-btn:active {
    transform: scale(0.95);
}

.quantity-btn.minus {
    margin-right: 0.5rem;
}

.quantity-btn.plus {
    margin-left: 0.5rem;
}

.quantity-display {
    min-width: 30px;
    text-align: center;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--gray-800);
    padding: 0 0.5rem;
}

.cart-icon-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: 0.75rem;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.cart-icon-btn:hover {
    background: white;
    color: var(--primary-color);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    border: 2px solid var(--primary-color);
}

.cart-icon-btn:active {
    transform: scale(0.95);
}

.cart-icon-btn i {
    font-size: 0.875rem;
    font-style: normal;
    font-weight: 900;
}

/* Cart Item Styles */
.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-200);
    background: white;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.25rem;
}

.cart-item-price {
    font-size: 0.75rem;
    color: var(--gray-600);
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-quantity-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: var(--gray-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--gray-600);
    font-size: 0.75rem;
    font-style: normal;
    position: relative;
}

.cart-quantity-btn i {
    font-style: normal;
    font-weight: 900;
    font-size: 0.875rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-quantity-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.cart-quantity-btn:active {
    transform: scale(0.95);
}

.cart-quantity-display {
    min-width: 30px;
    text-align: center;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--gray-800);
    padding: 0 0.5rem;
}

.remove-btn {
    width: 24px;
    height: 24px;
    border: 1px solid var(--gray-300);
    background: white;
    /*border-radius: 4px;*/
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--danger-color);
    transition: var(--transition);
}

.remove-btn:hover {
    background: var(--danger-color);
    color: white;
    border-color: var(--danger-color);
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    padding: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    max-width: 300px;
}

.notification.show {
    transform: translateX(0);
}

.notification i {
    font-size: 1.125rem;
}

.notification-success {
    border-left: 4px solid var(--success-color);
}

.notification-success i {
    color: var(--success-color);
}

.notification-error {
    border-left: 4px solid var(--danger-color);
}

.notification-error i {
    color: var(--danger-color);
}

.notification-info {
    border-left: 4px solid var(--info-color);
}

.notification-info i {
    color: var(--info-color);
}

/* Responsive Sticky Layout */
@media (max-width: 1440px) {
    .sticky-layout {
        grid-template-columns: 200px 1fr 300px;
    }
}

@media (max-width: 1024px) {
    .sticky-layout {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr auto;
    }
    
    .sticky-sidebar {
        position: relative;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--gray-200);
    }
    
    .category-section {
        position: relative;
        top: 0;
    }
    
    .category-tagcloud {
        justify-content: center;
    }
    
    .main-content {
        max-height: none;
    }
    
    .sticky-cart {
        position: relative;
        height: auto;
        border-left: none;
        border-top: 1px solid var(--gray-200);
    }
    
    .cart-section {
        position: relative;
        top: 0;
    }
}

@media (max-width: 768px) {
    .sticky-layout {
        grid-template-rows: auto 1fr auto;
        gap: 0;
    }
    
    .main-content {
        padding: 1rem;
    }
    
    .sticky-sidebar,
    .sticky-cart {
        padding: 1rem;
    }
    
    .delivery-toggle-container {
        align-items: center;
    }
}

/* Cart */
.cart-widget {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--danger-color);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
}

.cart-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    padding: 1.5rem;
    min-width: 300px;
    z-index: 1000;
    display: none;
}

.cart-dropdown.show {
    display: block;
}

.cart-item-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.cart-item-name {
    font-weight: 500;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.cart-item-price {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.875rem;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-total {
    font-size: 1.25rem;
    font-weight: 700;
    text-align: right;
    padding: 1rem 0;
    margin-top: 1rem;
}

/* Language Selector */
.language-selector {
    display: flex;
    align-items: center;
}

.language-selector select {
    background: var(--gray-50);
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: var(--gray-700);
    cursor: pointer;
    transition: var(--transition);
}

.language-selector select:hover {
    border-color: var(--primary-color);
}

.language-selector select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: var(--border-radius);
    padding: 1rem 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: slideIn 0.3s ease;
}

.notification-success {
    border-left: 4px solid var(--success-color);
}

.notification-warning {
    border-left: 4px solid var(--warning-color);
}

.notification-danger {
    border-left: 4px solid var(--danger-color);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 0.5rem;
    }
    
    .grid-cols-2,
    .grid-cols-3,
    .grid-cols-4 {
        grid-template-columns: repeat(1, 1fr);
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .navbar-nav {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .flex {
        display: flex;
        flex-direction: row nowrap;
    }
    
    .table {
        font-size: 0.875rem;
    }
    
    .table th,
    .table td {
        padding: 0.5rem;
    }
    
    .language-selector {
        margin-top: 0.5rem;
    }
    
    .cart-dropdown {
        position: fixed;
        top: 80px;
        left: 1rem;
        right: 1rem;
        min-width: auto;
    }
}

/* Utility Classes */
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.rounded { border-radius: var(--border-radius); }
.rounded-lg { border-radius: var(--border-radius-lg); }
.shadow { box-shadow: var(--box-shadow); }
.shadow-lg { box-shadow: var(--box-shadow-lg); }
.border { border: 1px solid var(--gray-200); }
.border-t { border-top: 1px solid var(--gray-200); }
.border-b { border-bottom: 1px solid var(--gray-200); }
.w-full { width: 100%; }
.h-full { height: 100%; }
.min-h-screen { min-height: 100vh; }
.overflow-hidden { overflow: hidden; }
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.top-0 { top: 0; }
.bottom-0 { bottom: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-50 { z-index: 50; }
.z-100 { z-index: 100; }
.z-1000 { z-index: 1000; }

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #5a6fd8;
} 

/**
 * @author Firma: 4Unit Systems Integration GmbH
 *         Adresse: Jahnstraße 36, 34582 Borken (Hessen)
 *         Telefon: 05682 73 48 26
 *         E-Mail: info@4unit.com
 *         Website: https://4unit.com
 */

/* Responsive Navigation Styles */

/* Mobile First - Smartphone (320px - 767px) */
@media (max-width: 767px) {
    /* Hamburger Menu für Smartphones */
    .mobile-menu-button {
        display: block;
    }
    
    .desktop-nav {
        display: none;
    }
    
    /* Right side items - ALWAYS horizontal */
    .header-right-items {
        display: flex !important;
        flex-direction: row !important;
        align-items: center;
        gap: 0.5rem;
    }
    
    /* Language Selector - Combobox Style */
    .language-selector {
        min-width: auto;
        padding: 0.5rem 0.75rem;
        border: 1px solid #d1d5db;
        border-radius: 0.5rem;
        background: white;
    }
    
    .language-selector .language-text {
        display: none; /* Hide text on very small screens */
    }
    
    /* Cart Button */
    .cart-button {
        padding: 0.5rem;
        min-width: 44px;
        min-height: 44px;
    }
    
    /* Hamburger Button */
    .hamburger-button {
        padding: 0.5rem;
        min-width: 44px;
        min-height: 44px;
    }
    
    /* Mobile Menu Panel */
    .mobile-menu-panel {
        width: 75%;
        max-width: 300px;
        right: 0;
        left: auto;
    }
    
    /* Mobile Menu Items */
    .mobile-menu-item {
        padding: 16px 20px;
        font-size: 16px;
        border-bottom: 1px solid #f3f4f6;
    }
    
    .mobile-menu-item:last-child {
        border-bottom: none;
    }
    
    /* Mobile Menu Icons */
    .mobile-menu-icon {
        width: 20px;
        height: 20px;
        margin-right: 12px;
    }
}

/* Small Mobile (320px - 480px) */
@media (max-width: 480px) {
    .language-selector {
        padding: 0.375rem 0.5rem;
    }
    
    .language-selector .language-text {
        display: none;
    }
    
    .header-right-items {
        gap: 0.25rem;
    }
}

/* Medium Mobile (481px - 767px) */
@media (min-width: 481px) and (max-width: 767px) {
    .language-selector .language-text {
        display: inline; /* Show text on medium screens */
    }
}

/* Tablet (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    /* Tablet kann entweder Desktop oder Mobile Style haben */
    /* Standard: Desktop Style */
    .mobile-menu-button {
        display: none;
    }
    
    .desktop-nav {
        display: flex;
    }
    
    /* Right side items - ALWAYS horizontal */
    .header-right-items {
        display: flex !important;
        flex-direction: row !important;
        align-items: center;
        gap: 1rem;
    }
    
    /* Tablet-spezifische Anpassungen */
    .nav-item {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    /* Tablet Cart Button */
    .cart-button-tablet {
        padding: 8px 12px;
        font-size: 16px;
    }
    
    /* Tablet Language Selector */
    .language-selector-tablet {
        font-size: 14px;
    }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
    .mobile-menu-button {
        display: none;
    }
    
    .desktop-nav {
        display: flex;
    }
    
    /* Right side items - ALWAYS horizontal */
    .header-right-items {
        display: flex !important;
        flex-direction: row !important;
        align-items: center;
        gap: 1rem;
    }
    
    .nav-item {
        padding: 12px 20px;
        font-size: 16px;
    }
}

/* Tablet Alternative: Hamburger Menu für Tablets */
@media (min-width: 768px) and (max-width: 1023px) {
    /* Optional: Hamburger Menu für Tablets aktivieren */
    .tablet-hamburger .mobile-menu-button {
        display: block;
    }
    
    .tablet-hamburger .desktop-nav {
        display: none;
    }
    
    .tablet-hamburger .mobile-menu-panel {
        width: 50%;
        max-width: 400px;
    }
}

/* Touch-friendly Buttons für Mobile */
@media (max-width: 1023px) {
    .touch-button {
        min-height: 44px;
        min-width: 44px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
    
    .mobile-menu-button {
        min-height: 44px;
        min-width: 44px;
        padding: 12px;
    }
    
    .cart-button {
        min-height: 44px;
        min-width: 44px;
    }
    
    .language-selector {
        min-height: 44px;
    }
}

/* Language Selector Combobox Styles */
.language-selector {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    background: white;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
    user-select: none;
}

.language-selector:hover {
    border-color: #9ca3af;
    background-color: #f9fafb;
}

.language-selector:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.language-selector .language-text {
    font-weight: 500;
}

.language-selector .chevron {
    transition: transform 0.2s ease;
}

.language-selector[aria-expanded="true"] .chevron {
    transform: rotate(180deg);
}

/* Language Dropdown */
.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    min-width: 200px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    z-index: 50;
    overflow: hidden;
}

.language-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #374151;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.language-option:hover {
    background-color: #f9fafb;
}

.language-option.active {
    background-color: #eff6ff;
    color: #1d4ed8;
}

.language-option .flag {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.language-option .name {
    flex: 1;
    font-weight: 500;
}

.language-option .check {
    color: #3b82f6;
    font-size: 12px;
}

/* Mobile Menu Animations */
.mobile-menu-overlay {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.mobile-menu-panel {
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
}

/* Mobile Menu Item Hover Effects */
.mobile-menu-item:hover {
    background-color: #f9fafb;
    transform: translateX(4px);
    transition: all 0.2s ease;
}

/* Mobile Menu Active State */
.mobile-menu-item.active {
    background-color: #eff6ff;
    color: #1d4ed8;
    border-left: 3px solid #3b82f6;
}

/* Mobile Menu Language Active State */
.mobile-language-item.active {
    background-color: #eff6ff;
    color: #1d4ed8;
}

/* Mobile Menu Close Button */
.mobile-menu-close {
    min-height: 44px;
    min-width: 44px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.mobile-menu-close:hover {
    background-color: #f3f4f6;
    transform: scale(1.05);
}

/* Mobile Menu Footer */
.mobile-menu-footer {
    background: linear-gradient(135deg, #f9fafb, #f3f4f6);
    border-top: 1px solid #e5e7eb;
}

/* Responsive Typography */
@media (max-width: 767px) {
    .mobile-menu-title {
        font-size: 18px;
        font-weight: 600;
    }
    
    .mobile-menu-subtitle {
        font-size: 14px;
        color: #6b7280;
    }
}

/* Mobile Menu Search (optional) */
.mobile-menu-search {
    padding: 12px 16px;
    border-bottom: 1px solid #e5e7eb;
}

.mobile-menu-search input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
}

/* Mobile Menu Divider */
.mobile-menu-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #e5e7eb, transparent);
    margin: 16px 0;
}

/* Mobile Menu Version Info */
.mobile-menu-version {
    font-size: 12px;
    color: #9ca3af;
}

/* Mobile Menu Close Animation */
@keyframes slideInFromRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes slideOutToRight {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(100%);
    }
}

.mobile-menu-panel.slide-in {
    animation: slideInFromRight 0.3s ease-out;
}

.mobile-menu-panel.slide-out {
    animation: slideOutToRight 0.3s ease-in;
}

/* Mobile Menu Overlay Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

.mobile-menu-overlay.fade-in {
    animation: fadeIn 0.3s ease-out;
}

.mobile-menu-overlay.fade-out {
    animation: fadeOut 0.3s ease-in;
}

/* Mobile Menu Accessibility */
@media (prefers-reduced-motion: reduce) {
    .mobile-menu-panel,
    .mobile-menu-overlay,
    .mobile-menu-item {
        animation: none;
        transition: none;
    }
}

/* Mobile Menu High Contrast Mode */
@media (prefers-contrast: high) {
    .mobile-menu-panel {
        border: 2px solid #000;
    }
    
    .mobile-menu-item {
        border-bottom: 1px solid #000;
    }
}

/* Mobile Menu Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .mobile-menu-panel {
        background-color: #1f2937;
        color: #f9fafb;
    }
    
    .mobile-menu-item {
        color: #f9fafb;
        border-bottom-color: #374151;
    }
    
    .mobile-menu-item:hover {
        background-color: #374151;
    }
    
    .mobile-menu-item.active {
        background-color: #1e40af;
        color: #ffffff;
    }
    
    .mobile-menu-footer {
        background: linear-gradient(135deg, #374151, #1f2937);
        border-top-color: #374151;
    }
} 

/* Category Section Styles */
.category-section-content {
    /*margin-bottom: 3rem;*/
    padding: 2rem;
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    scroll-margin-top: 100px; /* Für smooth scroll mit sticky header */
}

.category-section-content:hover {
    box-shadow: var(--box-shadow-lg);
}

.category-section-content.category-highlight {
    animation: categoryPulse 2s ease-in-out;
}

@keyframes categoryPulse {
    0%, 100% { 
        box-shadow: var(--box-shadow);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
        transform: scale(1.02);
    }
}

.category-header {
    /*margin-bottom: 2rem;*/
    padding-bottom: 1rem;
    position: relative;
}

/* .category-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--secondary-color);
} */

.category-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.category-title::before {
    content: '';
    width: 4px;
    height: 24px;
    background: var(--primary-color);
    border-radius: 2px;
}

.category-description {
    color: var(--gray-600);
    font-size: 1rem;
    line-height: 1.5;
}

.category-items {
    display: grid;
    gap: 1.5rem;
}

.category-items.items-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.category-items.items-list {
    grid-template-columns: 1fr;
}

/* Enhanced category navigation */
.category-item,
.tag-item {
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.category-item::before,
.tag-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.category-item:hover::before,
.tag-item:hover::before {
    left: 100%;
}

.category-item.active,
.tag-item.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Category navigation improvements */
.category-list,
.category-tagcloud {
    position: sticky;
    top: 20px;
}

/* Responsive category sections */
@media (max-width: 768px) {
    .category-section-content {
        padding: 1.5rem;
        /*margin-bottom: 2rem;*/
    }
    
    .category-title {
        font-size: 1.5rem;
    }
    
    .category-items.items-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .category-section-content {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .category-title {
        font-size: 1.25rem;
    }
}

/* Collapsible Content Styles */
.collapsible-header {
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
}

.collapsible-header:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.collapsible-header h4 {
    margin-bottom: 0.5rem;
}

.collapsible-content {
    transition: all 0.3s ease;
    overflow: hidden;
}

.collapsible-content.hidden {
    max-height: 0;
    opacity: 0;
    margin-bottom: 0;
}

.collapsible-content:not(.hidden) {
    max-height: 500px;
    opacity: 1;
    margin-bottom: 1rem;
}

/* Category Section Header Improvements */
.category-section-header,
.tag-section-header {
    padding: 0.75rem;
    /*border-radius: 0.5rem;*/
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
    /*border-left: 3px solid var(--primary-color);*/
    background: var(--gray-50);
}

.category-section-header:hover,
.tag-section-header:hover {
    background-color: rgba(0, 0, 0, 0.03);
}

/* Chevron Icon Animation */
.fa-chevron-down {
    transition: transform 0.2s ease;
}

.fa-chevron-down.rotate-180 {
    transform: rotate(180deg);
}

/* Responsive Collapsible */
@media (max-width: 768px) {
    .collapsible-header {
        padding: 0.5rem;
    }
    
    .collapsible-content {
        padding-left: 0.5rem;
    }
} 

.menu-item-original-price {
    color: #ef4444;
    text-decoration: line-through;
    font-size: 0.875rem;
    margin-left: 0.5rem;
} 

/* Grid Layout Classes */
.price-grid {
    display: grid;
    gap: 0.5rem;
    align-items: center;
}

.icon-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 6px;
    max-height: 400px;
    overflow-y: auto;
    padding: 10px 0;
}

/* Flex Layout Classes */
.quantity-flex {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dialog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    position: sticky;
    top: 0;
    background: white;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    z-index: 1001;
}

.dialog-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.icon-button {
    padding: 6px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    min-height: 35px;
}

/* Responsive Grid Adjustments */
@media (max-width: 768px) {
    .price-grid {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }
    
    .icon-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 4px;
        max-height: 300px;
    }
}

@media (max-width: 480px) {
    .icon-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 3px;
        max-height: 250px;
    }
} 

/* Payment Method Options */
.payment-method-option {
    display: block;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 0.5rem;
    overflow: hidden;
}

.payment-method-option:hover {
    transform: translateY(-1px);
}

.payment-method-option.selected .payment-method-content {
    background-color: #eff6ff !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
}

/* Safari-spezifische Fixes für Payment Method Options */
@supports (-webkit-touch-callout: none) {
    .payment-method-content {
        display: -webkit-flex !important;
        display: flex !important;
        -webkit-align-items: center !important;
        align-items: center !important;
        -webkit-justify-content: space-between !important;
        justify-content: space-between !important;
        width: 100% !important;
        min-height: 48px !important;
    }
    
    .payment-method-content > span {
        -webkit-flex: 1 !important;
        flex: 1 !important;
        display: -webkit-flex !important;
        display: flex !important;
        -webkit-align-items: center !important;
        align-items: center !important;
        -webkit-order: 1 !important;
        order: 1 !important;
        min-width: 0 !important;
    }
    
    .payment-method-content > .payment-check {
        -webkit-flex-shrink: 0 !important;
        flex-shrink: 0 !important;
        -webkit-margin-left: auto !important;
        margin-left: auto !important;
        -webkit-order: 2 !important;
        order: 2 !important;
        width: 20px !important;
        height: 20px !important;
        display: -webkit-flex !important;
        display: flex !important;
        -webkit-align-items: center !important;
        align-items: center !important;
        -webkit-justify-content: center !important;
        justify-content: center !important;
    }
    
    .payment-method-option.selected .payment-method-content {
        background-color: #eff6ff !important;
        border-color: #3b82f6 !important;
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
    }
    
    .payment-check.visible {
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .payment-check.invisible {
        opacity: 0 !important;
        visibility: hidden !important;
    }
}



.payment-method-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background-color: #f9fafb;
    border: 2px solid transparent;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    width: 100%;
}

.payment-method-content > span {
    flex: 1;
    display: flex;
    align-items: center;
    order: 1;
}

.payment-method-content > .payment-check {
    flex-shrink: 0;
    margin-left: auto;
}

.payment-method-option:hover .payment-method-content {
    background-color: #f3f4f6;
}

.payment-check {
    transition: opacity 0.2s ease;
    flex-shrink: 0;
    margin-left: auto;
    order: 2;
}

.payment-check.visible {
    opacity: 1;
}

.payment-check.invisible {
    opacity: 0;
}

/* Focus styles for accessibility */
.payment-method-option:focus-within .payment-method-content {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Hidden radio buttons for form submission */
input[type="radio"][style*="display: none"] {
    display: none !important;
}

/* Zusätzliche Safari-spezifische Fixes für ausgewählte Zustände */
@supports (-webkit-touch-callout: none) {
    .payment-method-option[class*="selected"] .payment-method-content {
        background-color: #eff6ff !important;
        border-color: #3b82f6 !important;
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
    }
    
    .payment-method-option:has(.payment-check.visible) .payment-method-content {
        background-color: #eff6ff !important;
        border-color: #3b82f6 !important;
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
    }
    
    /* Safari-spezifische Flexbox-Fixes */
    .payment-method-content {
        -webkit-box-sizing: border-box !important;
        box-sizing: border-box !important;
        -webkit-flex-direction: row !important;
        flex-direction: row !important;
    }
    
    .payment-method-content > * {
        -webkit-box-sizing: border-box !important;
        box-sizing: border-box !important;
    }
}

/* Quantity Counter Styles */
.quantity-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid #d1d5db;
    background-color: #f9fafb;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 12px;
}

.quantity-btn:hover:not(:disabled) {
    background-color: #e5e7eb;
    border-color: #9ca3af;
    transform: scale(1.05);
}

.quantity-btn:active:not(:disabled) {
    transform: scale(0.95);
}

.quantity-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Spezielle Styles für Löschsymbol im Mengenzähler */
.quantity-btn .fa-trash {
    font-size: 10px;
}

.quantity-btn:hover .fa-trash {
    color: #dc2626 !important;
}

.quantity-display {
    min-width: 30px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    color: #374151;
    padding: 0 8px;
}

.remove-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid transparent;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.remove-btn:hover {
    background-color: #fef2f2;
    border-color: #fecaca;
    transform: scale(1.1);
}

.remove-btn:active {
    transform: scale(0.95);
}

/* Delivery Method Options - Same style as Payment Methods */
.delivery-method-option {
    display: block;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 0.5rem;
    overflow: hidden;
}

.delivery-method-option:hover {
    transform: translateY(-1px);
}

.delivery-method-option.selected .delivery-method-content {
    background-color: #eff6ff !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
}

.delivery-method-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    background-color: white;
    transition: all 0.2s ease;
    font-weight: 500;
}

.delivery-method-content > .delivery-check {
    flex-shrink: 0;
    margin-left: auto;
}

.delivery-method-option:hover .delivery-method-content {
    background-color: #f3f4f6;
}

.delivery-check {
    transition: opacity 0.2s ease;
}

.delivery-check.visible {
    opacity: 1;
}

.delivery-check.invisible {
    opacity: 0;
}

/* Focus styles for accessibility */
.delivery-method-option:focus-within .delivery-method-content {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

