.b3d-printer-farm {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Feste 4 Spalten */
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.printer-card {
    background: linear-gradient(135deg, #001F3F, #002F5F);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    color: #FFFFFF;
    box-shadow: 0 4px 15px rgba(0, 191, 255, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%; /* Anpassung für volle Spaltenbreite */
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: default;
    user-select: none;
}

.printer-card * {
    cursor: inherit;
    user-select: none;
}

.printer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 191, 255, 0.5);
}

.printer-image {
    width: 100%;
    height: 150px;
    object-fit: contain;
    border-radius: 10px;
    margin-bottom: 10px;
}

.printer-card.free {
    border: 2px solid #00BFFF;
}

.printer-card.busy {
    border: 2px solid #FF4500;
    opacity: 0.8;
}

.printer-card.busy .select-printer {
    background: #FF4500;
    cursor: not-allowed;
}

.select-printer {
    background: #00BFFF;
    color: #001F3F;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s ease;
}

.select-printer:hover {
    background: #00FFFF;
}

#b3d-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #001F3F, #002F5F);
    color: #FFFFFF;
    padding: 30px;
    z-index: 1000;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    width: 700px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.modal-content {
    flex: 3;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#b3d-close {
    background: #FF4500;
    color: #FFFFFF;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    align-self: flex-end;
    transition: background 0.3s ease;
}

#b3d-close:hover {
    background: #FF6347;
}

.step {
    display: none;
}

.step.active {
    display: block;
}

.step h2 {
    margin-bottom: 20px;
    text-align: center;
}

.step input, .step select {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: none;
    border-radius: 5px;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: default;
    user-select: none;
}

.step select {
    background: rgba(255, 255, 255, 0.1) url('data:image/svg+xml;utf8,<svg fill="white" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>') no-repeat right 10px center;
    background-size: 20px;
}

.step select option {
    background: #001F3F;
    color: #FFFFFF;
}

.step select option:checked {
    background: #002F5F !important;
    color: #00BFFF !important;
}

.step button {
    background: #00BFFF;
    color: #001F3F;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s ease;
    margin-right: 10px;
}

.step button:hover {
    background: #00FFFF;
}

.step button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.summary-table {
    display: grid;
    grid-template-columns: auto auto;
    gap: 10px;
}

.summary-row .label {
    font-weight: bold;
    text-align: right;
    color: #00BFFF;
}

.summary-row span {
    text-align: left;
}

.modal-sidebar {
    flex: 1;
    background: rgba(0, 47, 95, 0.8);
    padding: 20px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#b3d-price-preview, #b3d-time-preview {
    color: #00BFFF;
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 1.2em;
}

/* Responsive */
@media (max-width: 1200px) {
    .b3d-printer-farm {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .b3d-printer-farm {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .b3d-printer-farm {
        grid-template-columns: 1fr;
    }
    .printer-card {
        width: 100%;
        min-height: 250px;
    }
    .printer-image {
        height: 120px;
    }
}

/* Grüner Button für enabled Weiter */
.next-step:not(:disabled) {
    background: #00FF00;
    color: #000;
}

.next-step:disabled {
    background: #ccc;
}

/* Warenkorb-Anzeige */
.b3d-cart-item-details {
    font-size: 14px;
    line-height: 1.5;
    padding: 5px 0;
}

.b3d-cart-item-details strong {
    display: block;
    font-weight: bold;
}

/* Neu: Suchleiste und Filters */
.b3d-search-container {
    text-align: center;
    margin-bottom: 20px;
}

#b3d-search-input {
    width: 60%;
    padding: 10px;
    border: none;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    text-align: center;
    font-size: 16px;
    cursor: text;
}

#b3d-search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.b3d-search-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.b3d-search-filters label {
    color: #FFFFFF;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.b3d-search-filters input[type="checkbox"] {
    appearance: none;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #00BFFF;
    width: 16px;
    height: 16px;
    border-radius: 3px;
    cursor: pointer;
}

.b3d-search-filters input[type="checkbox"]:checked {
    background: #00BFFF;
    position: relative;
}

.b3d-search-filters input[type="checkbox"]:checked::before {
    content: '\2713';
    position: absolute;
    top: -2px;
    left: 1px;
    color: #001F3F;
    font-size: 14px;
}