.active {
    font-weight: bold;
}

/* Produktdetail */
.product-detail {
    padding: 2rem 0;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

/* Bildergalerie */
.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.plink {
    text-decoration: none;    
    cursor: pointer;
}

.plink:hover {
    color: #667eea !important;
}

.main-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    background: var(--bg-light);
    border-radius: 10px;
    overflow: hidden;
}

.picinfohint {
    font-size: 10px;
    color: #808080;
}

.main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-badges {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 10;
}

.product-badge {
    display: inline-block;
    background: var(--secondary-color);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.product-badge.sale {
    background: #ff4444;
}

.product-badge.new {
    background: var(--primary-color);
}

.zoom-btn {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.zoom-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.thumbnail-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 0.75rem;
}

.thumbnail {
    aspect-ratio: 1;
    background: var(--bg-light);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.thumbnail:hover {
    border-color: var(--primary-color);
}

.thumbnail.active {
    border-color: var(--primary-color);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Produktinformationen */
.product-info-main {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.product-header {
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 1rem;
}

.product-meta {
    display: flex;
    gap: 2rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.product-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    line-height: 1.3;
}

.product-rating-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.rating-stars {
    display: flex;
    gap: 0.25rem;
    color: var(--star-color);
    font-size: 1.2rem;
}

.rating-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.review-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.95rem;
}

.review-link:hover {
    text-decoration: underline;
}

.product-price-section {
    display: block;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 10px;  
    text-align: center;  
}

.price-wrapper {
    display: block;    
}

.price-current {
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: bold;
}

.price-old {
    font-size: 1.3rem;
    color: var(--text-secondary);
    text-decoration: line-through;
}

.price-discount {
    font-size: 0.95rem;
    color: var(--secondary-color);
    font-weight: 600;
}

.stock-status {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
}

.stock-status.in-stock {
    background: #e8f5e9;
    color: #2e7d32;
}

.stock-status.low-stock {
    background: #fff3e0;
    color: #f57c00;
}

.stock-status.out-of-stock {
    background: #ffebee;
    color: #c62828;
}

/* Beschreibung */
.product-description-short {
    font-size: 1.05rem;
    color: var(--text-primary);
    line-height: 1.8;
}


/* Preis und Warenkorb nebeneinander */
.product-price-purchase-row {
    display: flex;
    gap: 2rem;
    align-items: stretch;
}

.product-price-purchase-row > * {
    flex: 1;
}

.product-purchase {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 10px;
    flex: 1; /* NEU HINZUGEFÜGT */
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.quantity-selector label {
    font-weight: 600;
    font-size: 1rem;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    border-radius: 8px;
    padding: 0.25rem;
}

.qty-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--bg-light);
    color: var(--text-primary);
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

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

.qty-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#quantityInput {
    width: 70px;
    height: 40px;
    text-align: center;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
}

.purchase-actions {
    display: flex;
    gap: 0.75rem;
}

.btn-add-to-cart {
    flex: 1;
    padding: 1rem 2rem;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.btn-add-to-cart:hover {
    background: #00b359;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-add-to-cart:disabled {
    background: var(--text-secondary);
    cursor: not-allowed;
    transform: none;
}

.btn-wishlist,
.btn-compare {
    width: 55px;
    height: 55px;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.btn-wishlist:hover,
.btn-compare:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

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

/* Highlights */
.product-features-short h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.product-features-short ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.product-features-short li {
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-primary);
}

.product-features-short li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Lieferinformationen */
.product-delivery-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 10px;
}

.delivery-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.delivery-item svg {
    color: var(--primary-color);
    flex-shrink: 0;
}

.delivery-item strong {
    display: block;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.delivery-item span {
    display: block;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Tabs */
.product-tabs {
    background: var(--bg-white);
    border-radius: 15px;
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 2rem;
}

.tabs-header {
    display: flex;
    border-bottom: 2px solid var(--border-color);
    background: var(--bg-light);
}


.tab-btn {
    flex: 1;
    padding: 1.25rem 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

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

.tab-btn.active {
    color: var(--primary-color);
    background: var(--bg-white);
    border-bottom-color: var(--primary-color);
}

.tabs-content {
    padding: 10px;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.description-content {
    font-size: 1rem;
    line-height: 1.8;
    font-weight: normal;
    color: var(--text-primary);
}

.description-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.description-content p {
    margin-bottom: 1rem;
}

.description-content ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

/* Spezifikationen */
.specifications-table {
    font-weight: normal;
    width: 100%;
}

.spec-row {
    display: grid;
    grid-template-columns: 1fr 2fr;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.spec-row:nth-child(even) {
    background: var(--bg-light);
}

.spec-label {
    font-weight: 600;
    color: var(--text-primary);
}

.spec-value {
    color: var(--text-primary);
}

/* Kompatibilität */
.compatibility-list {
    display: block;
    
}

.compatibility-item {
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 8px;
    border-left: 3px solid var(--secondary-color);
}

.compatibility-item strong {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

/* Bewertungen */
.reviews-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.reviews-summary {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2rem;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 10px;
}


.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}


/* Ähnliche Produkte */
.related-products {
    margin-top: 3rem;
}

.related-products h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background: var(--bg-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.product-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 100%;
    overflow: hidden;
    background: var(--bg-light);
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-category {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.product-title-card {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.product-price {
    display: flex;
    flex-direction: column;
}

.price-current-card {
    font-size: 1.3rem;
    color: var(--primary-color);
    font-weight: bold;
}


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

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

/* Features Strip */
.features-strip {
    background: var(--bg-white);
    padding: 2rem 0;
    margin-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.feature-item img {
    width: 48px;
    height: 48px;
}

.feature-item strong {
    display: block;
    margin-bottom: 0.25rem;
}

.feature-item span {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Footer */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h4 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.footer-col ul {
    list-style: none;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    display: block;
    padding: 0.25rem 0;
}

.footer-col a:hover {
    color: white;
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
}

/* Loading */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-overlay.active {
    display: flex;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Bildvergrößerung Overlay */
.image-zoom-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.image-zoom-overlay.active {
    display: flex;
}

.zoomed-image {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.zoom-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: white;
}

.zoom-close:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: rotate(90deg);
}

.zoom-controls {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 1rem;
    border-radius: 50px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.zoom-nav-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: white;
}

.zoom-nav-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.zoom-nav-btn:active {
    transform: scale(0.95);
}

/* Responsive */
@media (max-width: 1024px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
    }

    .main-nav {
        display: none;
    }

    .tabs-header {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .tab-btn {
        white-space: nowrap;
    }
    
    .zoom-controls {
        bottom: 20px;
        padding: 0.75rem;
    }
    
    .zoom-nav-btn {
        width: 45px;
        height: 45px;
    }
    
    .zoom-close {
        top: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 1024px) {
    .product-title {
        font-size: 1.5rem;
    }

    .price-current {
        font-size: 2rem;
    }

    .product-price-section {
        flex-direction: column;
        gap: 1rem;
    }

    .purchase-actions {
        flex-direction: column;
    }

  .product-price-purchase-row {
    flex-direction: column;
    gap: 1rem;
  }

  .quantity-selector {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  #quantityInput { width: 100%; max-width: 140px; }



    .btn-wishlist,
    .btn-compare {
        width: 100%;
        height: 50px;
    }

    .reviews-summary {
        grid-template-columns: 1fr;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .zoomed-image {
        max-width: 95vw;
        max-height: 85vh;
    }
    
    .zoom-controls {
        gap: 0.5rem;
        padding: 0.5rem;
    }
    
    .zoom-nav-btn {
        width: 40px;
        height: 40px;
    }
    
    .zoom-close {
        width: 40px;
        height: 40px;
    }
}

.productData {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.group {
    padding: 1.5rem;        
}

.group-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #667eea;
}

.group-items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.group-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 0.875rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: background-color 0.2s;
}

.group-item:hover {
    background-color: #f7fafc;
}

.group-item-title {
    font-weight: 500;
    color: #4a5568;
    display: flex;
    align-items: center;
}

.group-item-title::before {
    content: "•";
    color: #667eea;
    font-weight: bold;
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

.group-item-value {
    font-weight: 600;
    color: #2d3748;
    text-align: right;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}




/* Responsive Design */
@media (max-width: 768px) {
  .productData { padding: 1rem; }          /* statt body */
  .productData .container { padding: 1rem; } /* statt .container global */

    .group-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .group-item-value {
        text-align: left;
        justify-content: flex-start;
        padding-left: 1.5rem;
    }
}

/* Container für Modellliste und Geräteinformationen */
.device-selection-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Schmale Box für Modellliste */
.model-list-box {
    background: var(--bg-white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.model-list-box h4 {
    margin: 0;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    color: white;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-bottom: 2px solid var(--primary-dark);
}

.model-list {
    max-height: 400px;
    overflow-y: auto;
    padding: 0.5rem;
}

.model-list-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-radius: 5px;
    transition: var(--transition);
    margin-bottom: 0.25rem;
    border: 1px solid transparent;
}

.model-list-item:hover {
    background: var(--bg-light);
    border-color: var(--border-color);
}

.model-list-item.active {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
    border-color: var(--primary-dark);
}

.model-name {
    font-size: 0.9rem;
    display: block;
    line-height: 1.4;
}

/* Scrollbar Styling */
.model-list::-webkit-scrollbar {
    width: 6px;
}

.model-list::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: 3px;
}

.model-list::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.model-list::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Geräteinformations-Box (angepasst) */
.device-info-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 1.5rem;
    border-left: 4px solid var(--primary-color);
    position: relative;
}

.device-info-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border-radius: 5px;
    z-index: 10;
}

.device-info-close:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

.device-info-content {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 1.5rem;
    align-items: start;
}

.device-info-image {
    width: 180px;
    height: 180px;
    background: white;
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.device-info-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.device-info-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.device-info-title {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin: 0;
    padding-right: 2rem;
}

.device-info-specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
}

.device-spec-item {
    display: flex;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.spec-label {
    font-weight: 600;
    color: var(--text-secondary);
    min-width: 90px;
}

.spec-value {
    color: var(--text-primary);
}

.device-info-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-color);
}

.breadcrumb .container {
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

img { max-width: 100%; height: auto; }

.product-detail-grid {
  overflow: hidden; /* falls irgendwo 1px raussteht */
}




/* Responsive Anpassungen */
@media (max-width: 1024px) {
    .device-selection-container {
        grid-template-columns: 1fr;
    }
    
    .model-list-box {
        order: 2;
    }
    
    .model-list {
        max-height: 250px;
    }
    
    .device-info-box {
        order: 1;
    }
}

@media (max-width: 1024px) {
    .device-info-content {
        grid-template-columns: 1fr;
    }

    .tab-btn {
        padding: 0.75rem 1rem;
        font-size: 0.8rem;
    }
    
    .device-info-image {
        width: 100%;
        height: 200px;
        margin: 0 auto;
    }
    
    .device-info-specs {
        grid-template-columns: 1fr;
    }
    
    .device-info-title {
        font-size: 1.1rem;
    }
}
/* Styling für die Dienstleistungs-Box */
.service-container {
    margin-top: 20px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
}

.service-title {
    margin-bottom: 15px;
    font-size: 1.2rem;
    color: #333;
    font-weight: 600;
}

.service-item-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding: 12px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: all 0.2s ease;
    margin-bottom: 10px;
}

.service-item-label:hover {
    border-color: #667eea;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.service-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #667eea;
}

.service-price {
    font-weight: bold;
    color: #667eea;
}

/* Auffällige Dienstleistungs-Box */
.service-container {
    margin-top: 25px;
    padding: 20px;
    /* Auffällige Hintergrundfarbe - hier ein helles Blau, anpassbar */
    background-color: #eef2ff; 
    border: 2px solid #667eea;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.service-title {
    margin-bottom: 15px;
    font-size: 1.3rem;
    color: #312e81; /* Dunkelblau für Kontrast */
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Icon vor dem Titel für mehr Aufmerksamkeit */
.service-title::before {
    content: "★";
    color: #f59e0b; /* Goldener Stern */
}

.service-item-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding: 14px;
    background: white;
    border: 1px solid #c7d2fe;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.service-item-label:hover {
    border-color: #667eea;
    background-color: #f5f7ff;
    transform: translateX(5px);
}

.service-checkbox {
    width: 22px;
    height: 22px;
    cursor: pointer;
    accent-color: #667eea;
}

.service-price {
    font-weight: 800;
    color: #4338ca;
    font-size: 1.1rem;
}

/* Modal Styling */
.add-to-cart-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    width: 90%;
    max-width: 400px;
    text-align: center;
}

.add-to-cart-modal h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.add-to-cart-modal p {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.add-to-cart-modal .modal-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.add-to-cart-modal .btn-continue {
    padding: 0.75rem;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.add-to-cart-modal .btn-continue:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.add-to-cart-modal .btn-checkout {
    padding: 0.75rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.add-to-cart-modal .btn-checkout:hover {
    background: var(--primary-dark);
}

@media (min-width: 480px) {
    .add-to-cart-modal .modal-actions {
        flex-direction: row;
        justify-content: center;
    }
    .add-to-cart-modal .btn-continue,
    .add-to-cart-modal .btn-checkout {
        flex: 1;
    }
}