/* 
 * VARION RPD Online - Main Stylesheet
 * Version 2.0 - Januar 2026
 */

/* === VARION FARBEN === */
:root {
    --varion-dark: #201e22;
    --varion-green: #17A36B;
    --varion-green-hover: #11794F;
    --varion-light-bg: #f4f4f4;
    --varion-white: #ffffff;
}

/* === GRUNDLEGENDES === */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--varion-white);
    color: var(--varion-dark);
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* === HEADER (VARION Style) === */
.varion-header {
    background: var(--varion-white);
    border-bottom: 1px solid #e0e0e0;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.varion-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.varion-logo img {
    height: 50px;
    width: auto;
}

.varion-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
    align-items: center;
}

.varion-menu a {
    color: var(--varion-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.varion-menu a:hover {
    color: var(--varion-green);
}

/* === PRODUKT HEADER === */
.product-header {
    background: var(--varion-light-bg);
    padding: 1.5rem 0;
    margin-bottom: 2rem;
    border-bottom: 1px solid #e0e0e0;
}

.product-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--varion-dark);
    margin-bottom: 0;
}

/* === LAYOUT === */
.product-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

/* === BILDERGALERIE - FIXE GRÖSSEN === */
.main-image-container {
    position: relative;
    width: 100%;
    height: 500px; /* FIXE HÖHE - kein Hüpfen mehr! */
    background: var(--varion-light-bg);
    border: 1px solid #e0e0e0;
    overflow: hidden;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-in;
    border-radius: 4px;
}

.main-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Behält Proportionen */
    transition: opacity 0.15s ease;
}

.main-image-container:hover .main-image {
    transform: scale(1.02);
}

/* Zoom Icon Overlay */
.zoom-overlay {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(32, 30, 34, 0.8);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.main-image-container:hover .zoom-overlay {
    opacity: 1;
}

/* Thumbnail Gallery */
.thumbnail-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.thumbnail {
    width: 100%;
    height: 100px; /* FIXE HÖHE */
    border: 2px solid #e0e0e0;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--varion-white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

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

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

.thumbnail.active {
    border-color: var(--varion-green);
    box-shadow: 0 0 0 1px var(--varion-green);
}

/* === DATA SECTIONS === */
.data-section {
    margin-bottom: 2.5rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--varion-dark);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--varion-green);
}

/* Quick Info Grid */
.quick-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.info-item {
    background: var(--varion-light-bg);
    padding: 1rem;
    border-radius: 4px;
}

.info-label {
    font-weight: 600;
    color: var(--varion-dark);
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.info-value {
    font-size: 1.1rem;
    color: var(--varion-dark);
    font-weight: 500;
}

/* Produktinformationen Box */
.info-box {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: var(--varion-light-bg);
    border-radius: 4px;
    border-left: 4px solid var(--varion-green);
}

.info-box h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--varion-dark);
}

.info-box p {
    margin: 0;
    line-height: 1.8;
    color: var(--varion-dark);
}

/* === PRODUKTMERKMALE === */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.feature-box {
    background: var(--varion-light-bg);
    padding: 1.5rem;
    border-radius: 4px;
}

.feature-box h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--varion-dark);
}

.feature-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-box li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.feature-box li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--varion-green);
    font-weight: bold;
}

/* === COLLAPSIBLE SECTIONS (Technische Daten) === */
.collapsible-section {
    margin-bottom: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background: var(--varion-white);
}

.collapsible-header {
    padding: 1rem 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--varion-light-bg);
    transition: background 0.3s ease;
}

.collapsible-header:hover {
    background: #e8e8e8;
}

.collapsible-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--varion-dark);
}

.collapsible-icon {
    transition: transform 0.3s ease;
    font-size: 1.2rem;
    color: var(--varion-dark);
}

.collapsible-icon.rotated {
    transform: rotate(180deg);
}

.collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.collapsible-content.show {
    max-height: 2000px;
}

.collapsible-body {
    padding: 1.5rem;
}

/* Technical Data Items */
.tech-data-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.tech-data-item:last-child {
    border-bottom: none;
}

.tech-data-label {
    font-weight: 600;
    color: var(--varion-dark);
    flex: 0 0 40%;
}

.tech-data-value {
    text-align: right;
    color: var(--varion-dark);
    flex: 1;
}

/* === DOWNLOADS === */
.downloads-section {
    margin-top: 2rem;
}

.downloads-section h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--varion-dark);
}

.downloads-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.download-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--varion-light-bg);
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    text-decoration: none;
    color: var(--varion-dark);
    transition: all 0.3s ease;
}

.download-card:hover {
    background: var(--varion-dark);
    color: var(--varion-white);
    border-color: var(--varion-dark);
    transform: translateX(5px);
}

.download-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.download-info {
    flex: 1;
}

.download-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.download-filename {
    font-size: 0.8rem;
    opacity: 0.7;
    margin-top: 0.25rem;
}

/* === ZUBEHÖR === */
.accessories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.accessory-card {
    background: var(--varion-white);
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.accessory-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
    border-color: var(--varion-green);
}

.accessory-image {
    width: 100%;
    height: 200px;
    object-fit: contain;
    background: var(--varion-light-bg);
    padding: 1rem;
}

.accessory-info {
    padding: 1rem;
}

.accessory-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--varion-dark);
    margin-bottom: 0.5rem;
}

.accessory-han {
    font-size: 0.8rem;
    color: #666;
}

/* === CTA BUTTON === */
.cta-button {
    background: var(--varion-green);
    color: var(--varion-white);
    border: none;
    padding: 1.25rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
}

.cta-button:hover {
    background: var(--varion-green-hover);
    color: var(--varion-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(23, 163, 107, 0.3);
}

/* === FOOTER === */
.varion-footer {
    background: var(--varion-dark);
    color: var(--varion-white);
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-logo {
    height: 60px;
    margin-bottom: 1.5rem;
    filter: brightness(0) invert(1);
}

.footer-section h4 {
    color: var(--varion-white);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-section p {
    color: #aaa;
    line-height: 1.8;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.footer-section a {
    color: #aaa;
    text-decoration: none;
    display: block;
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--varion-green);
}

.footer-contact {
    margin-top: 1.5rem;
}

.footer-contact strong {
    color: var(--varion-white);
    font-weight: 600;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 1.5rem;
    text-align: center;
}

.footer-bottom p {
    color: #888;
    font-size: 0.85rem;
    margin: 0;
}

.footer-bottom a {
    color: #888;
    text-decoration: none;
    margin: 0 0.5rem;
}

.footer-bottom a:hover {
    color: var(--varion-green);
}

/* === RESPONSIVE === */
@media (max-width: 992px) {
    .product-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .product-data {
        order: 2;
    }
    
    .product-gallery {
        order: 1;
    }
    
    .varion-menu {
        display: none;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .product-title {
        font-size: 1.5rem;
    }
    
    .main-image-container {
        height: 350px;
    }
    
    .thumbnail-gallery {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .thumbnail {
        height: 80px;
    }
    
    .quick-info-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .tech-data-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .tech-data-label {
        flex: none;
    }
    
    .tech-data-value {
        text-align: left;
    }
}
