/* BEARBEITEN6 EXAKTES LAYOUT - ELEGANZ & MODERNITÄT */
.westarp-single {
    min-height: 100vh;
    background: #fafafa;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.westarp-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.westarp-breadcrumb {
    background: white;
    border-bottom: 1px solid #eee;
    padding: 1rem 0;
}

.westarp-breadcrumb nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

.westarp-breadcrumb a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
}

.westarp-breadcrumb a:hover {
    color: #333;
}

.westarp-product-main {
    background: white;
    margin: 2rem 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
}

/* BEARBEITEN6 GRID - EXAKT WIE VORGABE */
.westarp-product-layout {
    display: grid;
    grid-template-columns: 400px 1fr;
    min-height: 600px;
}

/* LINKE SPALTE: COVER */
.westarp-cover-section {
    padding: 2rem;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    background: #f8f9fa;
}

.westarp-cover-image {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.westarp-cover-placeholder {
    width: 280px;
    height: 350px;
    background: #e9ecef;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #adb5bd;
}

/* RECHTE SPALTE: TITEL + BUY-BOX */
.westarp-info-section {
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

/* TITEL & AUTOR - KOMPAKT */
.westarp-title-block {
    margin-bottom: 1.5rem;
}

.westarp-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #212529;
    line-height: 1.3;
    margin: 0 0 0.5rem 0;
}

.westarp-author {
    font-size: 1.1rem;
    color: #6c757d;
    margin: 0;
}

.westarp-category {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: #f8f9fa;
    color: #495057;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    border: 1px solid #dee2e6;
}

/* BUY-BOX - DIREKT NACH TITEL (BEARBEITEN6) */
.westarp-buy-box {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 1.5rem;
    margin-top: 0;
}

/* VLB MEDIADATEN STYLES */
.westarp-vlb-mediadata {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

/* MEDIA-TYPE BADGES - Inline mit Kontrast */
.westarp-media-badge-inline {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.westarp-media-badge-inline.book {
    background: #dbeafe;
    color: #1e40af;
}

.westarp-media-badge-inline.ebook {
    background: #ddd6fe;
    color: #5b21b6;
}

.westarp-media-badge-inline.audio_cd,
.westarp-media-badge-inline.cd {
    background: #fed7aa;
    color: #92400e;
}

.westarp-media-badge-inline.audio_file,
.westarp-media-badge-inline.audio {
    background: #1e293b;
    color: #fbbf24;
    font-weight: 700;
}

/* FIX 3b: Medientyp-Badge in Bibliografie - gleiche Farben wie Buy-Box! */
.westarp-media-type-biblio {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.westarp-media-type-biblio.book {
    background: #dbeafe;
    color: #1e40af;
}

.westarp-media-type-biblio.ebook {
    background: #ddd6fe;
    color: #5b21b6;
}

.westarp-media-type-biblio.audio_cd,
.westarp-media-type-biblio.cd {
    background: #fed7aa;
    color: #92400e;
}

.westarp-media-type-biblio.audio_file,
.westarp-media-type-biblio.audio {
    background: #1e293b;
    color: #fbbf24;
    font-weight: 700;
}

.westarp-mediadata-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.westarp-mediadata-item {
    background: white;
    padding: 1.5rem;
    border-radius: 6px;
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.westarp-mediadata-item h4 {
    margin: 0 0 0.5rem 0;
    color: #333;
    font-size: 1.1rem;
}

.westarp-mediadata-item p {
    margin: 0 0 1rem 0;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
}

.westarp-full-width {
    grid-column: 1 / -1;
}

/* 🎬 VIDEO PLAYER STYLING */
.westarp-video-item {
    grid-column: span 2;
}

.video-player-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.video-player-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.video-gallery-item {
    background: #f9fafb;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.video-gallery-item h5 {
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
    color: #333;
    font-weight: 600;
}

.video-gallery-item video {
    border-radius: 6px;
}

.westarp-table-of-contents {
    max-height: 300px;
    overflow-y: auto;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 4px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.westarp-extended-description {
    line-height: 1.6;
    color: #495057;
}

.westarp-extended-description p {
    margin-bottom: 1rem;
}

/* Mobile Responsive für VLB-Mediadaten */
@media (max-width: 768px) {
    .westarp-mediadata-grid {
        grid-template-columns: 1fr;
    }
    
    .westarp-mediadata-item {
        padding: 1rem;
    }
    
    /* 🎬 VIDEO: 1-spaltig auf Mobilgeräten */
    .westarp-video-item {
        grid-column: span 1;
    }
    
    .video-gallery {
        grid-template-columns: 1fr;
    }
}

.westarp-price-block {
    margin-bottom: 1rem;
}

.westarp-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: #212529;
    margin: 0;
}

.westarp-price-info {
    font-size: 0.85rem;
    color: #6c757d;
    margin: 0.3rem 0 0 0;
}

.westarp-stock {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.westarp-stock-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.westarp-stock-dot.available { background: #28a745; }
.westarp-stock-dot.backorder { background: #ffc107; }
.westarp-stock-dot.unavailable { background: #dc3545; }

.westarp-stock-text.available { color: #28a745; }
.westarp-stock-text.backorder { color: #856404; }
.westarp-stock-text.unavailable { color: #dc3545; }

/* ANZAHL & FORMAT - NEBENEINANDER */
.westarp-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.westarp-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.3rem;
}

.westarp-field input,
.westarp-field .format-display {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 0.9rem;
}

.westarp-field input:focus {
    outline: none;
    border-color: #80bdff;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}

.westarp-field .format-display {
    background: #f8f9fa;
    color: #6c757d;
}

/* BUTTONS - FREUNDLICHER */
.westarp-actions {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.westarp-btn {
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    font-size: 0.95rem;
}

.westarp-btn-primary {
    background: #28a745;
    color: white;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.2);
}

.westarp-btn-primary:hover {
    background: #218838;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

.westarp-btn-secondary {
    background: white;
    color: #495057;
    border: 1px solid #ced4da;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.westarp-btn-secondary:hover {
    background: #f8f9fa;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.westarp-btn:disabled {
    background: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
}

/* VORBESTELLUNGS-BUTTON (AMAZON-STIL) */
.westarp-btn-preorder {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border: none;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.3);
}

.westarp-btn-preorder:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(245, 158, 11, 0.4);
}

.westarp-preorder-info {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 0.75rem;
    line-height: 1.4;
    background: #fff3cd;
    padding: 0.75rem;
    border-radius: 4px;
    border-left: 3px solid #f59e0b;
}

/* TEILEN BEREICH */
.westarp-share {
    border-top: 1px solid #dee2e6;
    padding: 1rem 2rem;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.westarp-share-label {
    font-size: 0.9rem;
    color: #495057;
    font-weight: 500;
}

.westarp-share-buttons {
    display: flex;
    gap: 0.8rem;
}

.westarp-share-btn {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s;
    background: white;
    border: 1px solid #dee2e6;
}

.westarp-share-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* VERSAND-INFORMATIONEN STYLING */
.westarp-shipping-info {
    margin-top: 1rem;
    padding: 1rem;
    background: #e8f5e8;
    border-radius: 6px;
    border-left: 4px solid #28a745;
}

.shipping-benefits {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.benefit-icon {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.benefit-text {
    color: #2d5a2d;
}

.benefit-text strong {
    color: #1a4d1a;
}

@media (max-width: 768px) {
    .westarp-shipping-info {
        margin-top: 0.75rem;
        padding: 0.75rem;
    }
    
    .benefit-item {
        font-size: 0.85rem;
    }
}

.westarp-share-btn svg {
    width: 16px;
    height: 16px;
}

/* DETAILS BEREICH - 1/3 zu 2/3 */
.westarp-details {
    border-top: 1px solid #dee2e6;
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
}

.westarp-details h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #212529;
    margin: 0 0 1rem 0;
}

.westarp-biblio {
    background: #f8f9fa;
    border-radius: 4px;
    padding: 1.5rem;
}

.westarp-biblio-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #dee2e6;
}

.westarp-biblio-item:last-child {
    border-bottom: none;
}

.westarp-biblio-label {
    font-weight: 500;
    color: #495057;
    font-size: 0.9rem;
}

.westarp-biblio-value {
    color: #212529;
    font-size: 0.9rem;
}

.westarp-description {
    line-height: 1.6;
    color: #495057;
}

.westarp-description p {
    margin: 0 0 1rem 0;
}

.westarp-description p:last-child {
    margin-bottom: 0;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .westarp-product-layout {
        grid-template-columns: 1fr;
    }
    
    .westarp-cover-section {
        order: -1;
        padding: 1.5rem;
    }
    
    .westarp-details {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .westarp-options {
        grid-template-columns: 1fr;
    }
