﻿/* ----------------------------------------------------------
   Global Base Styles
---------------------------------------------------------- */

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 0;
    padding-top: 70px; /* Platz für fixiertes Menü */
    font-family: "Helvetica Neue", Arial, sans-serif;
    background: #f5f7fa;
    color: #2c3e50;
    line-height: 1.6;
    font-size: 16px;
}

a {
    color: #0d527b;
    text-decoration: none;
}

    a:hover {
        text-decoration: underline;
    }

/* ----------------------------------------------------------
   Layout Container
---------------------------------------------------------- */

#page {
    width: 95%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#main {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.container {
    max-width: 860px;
    margin: 40px auto;
    background: #fff;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* ----------------------------------------------------------
   Headings
---------------------------------------------------------- */

h1 {
    margin: 0;
    color: #27ae60;
    font-size: 1.6rem;
    text-align: center;
}

h2 {
    color: #34495e;
    font-size: 1.4rem;
    margin: 0;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 4px;
}

h3 {
    margin-top: 1.5rem;
    margin-bottom: .5rem;
    color: #222;
}

/* ----------------------------------------------------------
   Lists
---------------------------------------------------------- */

ul, ol {
    margin: 0;
    padding-left: 20px;
}

.flex-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ----------------------------------------------------------
   Buttons
---------------------------------------------------------- */

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background-color: #27ae60;
    color: #fff;
    padding: 0.8em 1.6em;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

    .btn:hover {
        background-color: #219150;
    }

/* ----------------------------------------------------------
   Fixed Top Menu
---------------------------------------------------------- */

nav.top-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 3000;
    background: #ffffff;
    border-bottom: 1px solid #ddd;
    padding: 10px 20px;
    height: 60px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.top-menu #menu {
    display: flex;
    gap: 25px;
    list-style: none;
    margin: 0;
    padding: 0;
}

    .top-menu #menu li a {
        font-weight: 600;
        color: #333;
        padding: 6px 0;
    }

        .top-menu #menu li a:hover {
            color: #0078d4;
        }


/* ----------------------------------------------------------
   Sticky Contact Note
---------------------------------------------------------- */

.contact-sticky {
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 5000;
    width: 120px;
    background: #fff9c4;
    border-left: 6px solid #f4d03f;
    border-radius: 8px;
    padding: 10px 14px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    display: flex;
    gap: 10px;
    align-items: center;
}

.contact-text {
    font-size: 0.9rem;
    line-height: 1.3;
}

/* ----------------------------------------------------------
   Hamburger Button
---------------------------------------------------------- */

.hamburger-btn {
    position: fixed;
    top: 12px;
    left: 12px;
    width: 46px;
    height: 46px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    z-index: 5000;
    transition: background 0.3s ease;
}

    .hamburger-btn span {
        width: 24px;
        height: 3px;
        background: #333;
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    .hamburger-btn.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .hamburger-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger-btn.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

/* ----------------------------------------------------------
   Slide-In Menu
---------------------------------------------------------- */

.side-menu {
    position: fixed;
    top: 0;
    left: -260px;
    width: 260px;
    height: 100vh;
    background: #ffffff;
    box-shadow: 4px 0 12px rgba(0,0,0,0.15);
    padding-top: 80px;
    transition: left 0.35s ease;
    z-index: 4000;
}

    .side-menu.active {
        left: 0;
    }

    .side-menu ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .side-menu li a {
        display: block;
        padding: 14px 20px;
        font-size: 1.1rem;
        color: #333;
    }

        .side-menu li a:hover {
            background: #f0f0f0;
        }

/* ----------------------------------------------------------
   Swiper Slider (responsive)
---------------------------------------------------------- */

.mySwiper {
    width: 100%;
    height: 340px;
    max-width: 100%;
    overflow: hidden;
}

    .mySwiper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .mySwiper .swiper-button-next,
    .mySwiper .swiper-button-prev,
    .mySwiper .swiper-pagination {
        display: none;
    }


    /* ----------------------------------------------------------
   Galerie-Grid: Grundlayout (Desktop: 4 Spalten)
---------------------------------------------------------- */

    .gallery-grid {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
        padding: 0;
        margin: 30px 0;
        list-style: none;
    }

        .gallery-grid li {
            flex: 1 1 calc(25% - 20px);
            max-width: calc(25% - 20px);
        }
        /* Galerie-Übersicht: Bilder unverändert anzeigen */
        .gallery-grid:not(.gallery-grid-small) .gallery-thumb {
            width: 100%;
            height: auto;
            display: block;
        }
        /* ----------------------------------------------------------
   Detail-Galerie (6 Spalten + 3:2 Box)
---------------------------------------------------------- */

        .gallery-grid.gallery-grid-small li {
            flex: 1 1 calc(16.66% - 20px);
            max-width: calc(16.66% - 20px);
        }
    /* Einheitliche Bildbox 3:2 */
    .gallery-grid-small .gallery-thumb-wrapper {
        width: 100%;
        aspect-ratio: 3 / 2;
        background: #eee;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    /* Detail-Galerie: Bild vollständig anzeigen, ohne Verzerrung */
    .gallery-grid-small .gallery-thumb {
        width: 100%;
        height: 100%;
        object-fit: contain; /* kein Cropping, keine Verzerrung */
        display: block;
    }
    /* ----------------------------------------------------------
   Galerie-Übersicht: mehr Spalten auf großen Bildschirmen
---------------------------------------------------------- */
    /* 5 Spalten ab 1400px */
    @media (min-width: 1400px) {
        .gallery-grid:not(.gallery-grid-small) li {
            flex: 1 1 calc(20% - 20px);
            max-width: calc(20% - 20px);
        }
    }
    /* 6 Spalten ab 1700px */
    @media (min-width: 1700px) {
        .gallery-grid:not(.gallery-grid-small) li {
            flex: 1 1 calc(16.66% - 20px);
            max-width: calc(16.66% - 20px);
        }
    }
    /* 7 Spalten ab 2000px */
    @media (min-width: 2000px) {
        .gallery-grid:not(.gallery-grid-small) li {
            flex: 1 1 calc(14.28% - 20px);
            max-width: calc(14.28% - 20px);
        }
    }
    /* ----------------------------------------------------------
   Overlay
---------------------------------------------------------- */

    .image-overlay {
        position: absolute;
        bottom: 8px;
        right: 8px;
        background: rgba(0,0,0,0.6);
        color: #fff;
        padding: 4px 8px;
        border-radius: 4px;
        font-size: 0.85rem;
        opacity: 0;
        transition: opacity 0.2s ease;
        pointer-events: none;
    }

    @media (hover: hover) and (pointer: fine) {
        .gallery-grid li:hover .image-overlay {
            opacity: 1;
        }
    }

    @media (hover: none) and (pointer: coarse) {
        .image-overlay {
            opacity: 1;
        }
    }
    /* ----------------------------------------------------------
   Sterne Fix
---------------------------------------------------------- */
    /* Sterne – initial aus DB, Hover, Klick, von links nach rechts gefüllt */
    .stars {
        display: inline-block;
        direction: rtl; /* DOM bleibt 5→1, optisch 1→5 */
        unicode-bidi: bidi-override; /* Reihenfolge wirklich umdrehen */
    }

        .stars input {
            opacity: 0;
            position: absolute;
        }

        .stars label {
            font-size: 16px;
            color: #bbb; /* ungefüllt sichtbar */
            cursor: pointer;
            padding: 2px;
        }

            .stars label:before {
                content: '\2605'; /* Stern */
            }
        /* gewählter Stern + alle optisch davor (links) */
        .stars input:checked ~ label {
            color: gold;
        }
    /* Hover-Effekt auf Desktop */
    @media (hover: hover) and (pointer: fine) {
        .stars label:hover,
        .stars label:hover ~ label {
            color: #ffcc00;
        }
    }
    /* ----------------------------------------------------------
   Smartphones (iPhone + Android)
---------------------------------------------------------- */

    @media (hover: none) and (pointer: coarse) {
        /* 4 Spalten */
        .gallery-grid li,
        .gallery-grid.gallery-grid-small li {
            flex: 1 1 calc(25% - 20px) !important;
            max-width: calc(25% - 20px) !important;
        }
        /* Text ausblenden */
        .gallery-grid .below-image,
        .gallery-grid .image-overlay,
        .gallery-grid .ui-li-count {
            display: none !important;
        }
        /* Sterne kleiner */
        .gallery-grid .stars label {
            font-size: 12px !important;
        }

        .gallery-grid.gallery-grid-small .stars label {
            font-size: 6px !important;
        }
    }
    /* ----------------------------------------------------------
   Sehr große Bildschirme
---------------------------------------------------------- */

    @media (min-width: 1800px) {
        .gallery-grid li {
            flex: 1 1 calc(14.28% - 20px);
            max-width: calc(14.28% - 20px);
        }
    }
    /* ----------------------------------------------------------
   Tabellen usw.
---------------------------------------------------------- */

    .akku-table {
        width: 100%;
        border-collapse: collapse;
        table-layout: fixed;
    }

        .akku-table th,
        .akku-table td {
            padding: 10px 12px;
            text-align: left !important;
            vertical-align: top;
            display: table-cell !important;
            box-sizing: border-box;
        }

        .akku-table th {
            font-weight: bold;
            background: #f5f5f5;
            text-align: left !important;
        }

    .table-scroll {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

        .table-scroll table {
            min-width: 600px;
        }

    #footer {
        text-align: center !important;
    }

    .diy-solution article {
        margin-top: 1.5rem;
    }

    .ellipse-offer {
        display: inline-block;
        padding: 1rem 2rem;
        border: 3px solid #0071c5;
        border-radius: 999px;
        font-weight: bold;
        color: #003b73;
        background: #f5faff;
        margin-top: 1.5rem;
        margin-bottom: 1.5rem;
        text-align: center;
        line-height: 1.4;
    }

        .ellipse-offer .ellipse-subnote {
            font-size: 0.75rem;
            font-weight: normal;
            margin-top: 0.3rem;
            color: #555;
        }


    .akku-info-block {
        display: flex;
        gap: 20px;
        margin: 30px 0;
        align-items: center; /* WICHTIG: Bild vertikal zentrieren */
    }
        /* Nur das rechte Bild im Block stylen, NICHT den Slider */
        .akku-info-block > img {
            width: 40%;
            height: auto;
            object-fit: cover;
            border-radius: 6px;
        }

        .akku-info-block div {
            flex: 1;
        }
    /* Two-column layout: left = image/slider, right = map + meta */
    .photo-view {
        display: flex;
        gap: 1rem;
        align-items: flex-start;
        margin-bottom: 1rem;
        position: relative;
    }

    .photo-left {
        flex: 0 0 62%;
        min-width: 300px;
        position: relative;
    }

    .photo-right {
        flex: 1 1 38%;
        min-width: 220px;
    }
    /* Swiper styling for the photo viewer */
    .rs-swiper {
        width: 100%;
        height: 480px; /* desktop default */
        background: #000;
    }

        .rs-swiper .swiper-slide {
            display: flex;
            align-items: center;
            justify-content: center;
            height: 100%;
        }

        .rs-swiper img {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
            display: block;
        }
    /* Hide pagination dots only for the photo view swiper (single & fullscreen) */
    .photo-view .rs-swiper .swiper-pagination {
        display: none !important;
    }
    /* Swiper navigations */
    .rs-swiper .swiper-button-next,
    .rs-swiper .swiper-button-prev {
        color: #fff;
        text-shadow: 0 1px 2px rgba(0,0,0,0.4);
    }
    /* Map sizing in the right column */
    #map {
        width: 100%;
        height: 480px;
        border-radius: 4px;
        overflow: hidden;
    }
    /* Fullscreen adjustments for combined photo+map panel */
    .photo-view.is-fullscreen {
        position: fixed;
        inset: 0;
        z-index: 11000;
        background: #000;
        padding: 12px;
        display: flex;
    }

        .photo-view.is-fullscreen .rs-swiper,
        .photo-view.is-fullscreen #map {
            height: calc(100vh - 48px);
        }
    /* Fullscreen toggle button positioned inside left column */
    #fsToggle {
        position: absolute;
        right: 12px;
        top: 12px;
        z-index: 12000;
        background: rgba(0,0,0,0.6);
        color: #fff;
        border: none;
        padding: 8px 10px;
        border-radius: 4px;
        cursor: pointer;
        font-size: 14px;
    }
    /* Additional small helper classes for the view */
    .photo-controls {
        margin-top: 0.6rem;
        display: flex;
        gap: 10px;
        align-items: center;
        flex-wrap: wrap;
    }

    .photo-select {
        width: 145px;
        padding: 4px 6px;
    }
    /* Responsive: stack columns under 900px */
    @media (max-width: 900px) {
        .photo-view {
            flex-direction: column;
        }

        .rs-swiper, #map {
            height: 320px;
        }

        .photo-left, .photo-right {
            min-width: 0;
        }
    }
    /* small niceties used in photo view */
    .photo-right .meta, .meta {
        margin-top: 0.5rem;
        color: #333;
    }
    /* DIY-Bereich: 1/3 Bild, 2/3 Text */
    .akku-info-block .diy-slider {
        flex: 0 0 33.33%;
        max-width: 33.33%;
    }

    .akku-info-block > div:not(.diy-slider) {
        flex: 0 0 66.66%;
        max-width: 66.66%;
    }
    /* DIY-Slider: feste, aber responsive Höhe */
    .swiper.diy-slider {
        width: 100%;
        height: 400px;
        /*height: 100%;*/
        overflow: hidden;
        border-radius: 6px;
        flex-shrink: 0; /*verhindert Flex-Stretching */
    }
        /* Bilder im Slider */
        .swiper.diy-slider .swiper-slide img {
            /*width: 350px;*/
            height: 400px;
            object-fit: cover; /* füllt den Bereich sauber */
            display: block;
        }

        .swiper.diy-slider .diy-prev,
        .swiper.diy-slider .diy-next,
        .swiper.diy-slider .diy-pagination {
            display: none !important;
        }
    /* Tablet */
    @media (max-width: 900px) {
        .swiper.diy-slider {
            height: 180px;
            max-width: 100%;
        }
    }
    /* Smartphones */
    @media (max-width: 600px) {
        .swiper.diy-slider {
            height: 150px;
        }
    }
    /* Sehr kleine Geräte */
    @media (max-width: 420px) {
        .swiper.diy-slider {
            height: 130px;
        }
    }

/* -----------------------------------------------------------
   inline-cart gilt überall
   ----------------------------------------------------------- */
.inline-cart {
    background: #fff;
    padding: 20px;
    margin: 20px auto;
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

    .inline-cart h2 {
        margin-top: 0;
        margin-bottom: 20px;
    }

.inline-cart-items {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.inline-cart-item {
    width: calc(22% - 20px);
    background: #fafafa;
    padding: 10px;
    border-radius: 6px;
    display: flex;
    gap: 10px;
    align-items: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

    .inline-cart-item img {
        width: 70px;
        height: 70px;
        object-fit: cover;
        border-radius: 6px;
    }

.inline-cart-info {
    display: flex;
    flex-direction: column;
    font-size: 14px;
}

.inline-cart-footer {
    margin-top: 20px;
    text-align: right;
}

.inline-cart-button {
    background: #007aff;
    color: #fff;
    padding: 10px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
}

/* Rechte Spalte: vertikale Steuerung */
.inline-cart-controls {
    display: flex;
    flex-direction: column; /* vertikal */
    gap: 6px;
    margin-left: auto; /* schiebt die Spalte ganz nach rechts */
    align-items: flex-end; /* Buttons rechtsbündig */
}

/* Buttons */
.inline-qty-btn {
    width: 22px;
    height: 22px;
    border: 1px solid #ccc;
    background: #f0f3f6;
    color: #2c3e50;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    padding: 0;
    line-height: 20px;
}

    .inline-qty-btn:hover {
        background: #e2e6ea;
    }

/* Papierkorb */
.inline-cart-remove {
    background: transparent;
    border: none;
    font-size: 18px;
    cursor: pointer;
    opacity: 0.6;
}

    .inline-cart-remove:hover {
        opacity: 1;
    }
.inline-cart-controls {
    display: flex;
    flex-direction: column;
    align-items: center; /* statt flex-end → zentriert */
    justify-content: center;
    gap: 6px;
    margin-left: auto;
}

/* Einheitliche Button-Größe */
.inline-qty-btn,
.inline-cart-remove {
    width: 26px; /* gleiche Breite */
    height: 26px; /* gleiche Höhe */
    display: flex;
    align-items: center;
    justify-content: center; /* Icon exakt zentriert */
    padding: 0;
}

/* Papierkorb-Button optisch angleichen */
.inline-cart-remove {
    background: transparent;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    opacity: 0.7;
}

    .inline-cart-remove:hover {
        opacity: 1;
    }


/* =========================================================
   Einkaufskorb
   ========================================================= */

.cart-icon-fixed {
    position: fixed;
    top: 12px;
    right: 180px;
    background: #fff;
    padding: 4px 8px;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
    font-size: 22px;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 999999;
}

    .cart-icon-fixed .cart-count {
        position: absolute;
        top: -8px;
        right: -10px;
        background: #ff4d4d;
        color: #fff;
        font-size: 13px;
        padding: 2px 6px;
        border-radius: 50%;
    }


/* -----------------------------------------------------------
   Webshop
   ----------------------------------------------------------- */
/* Desktop (Default ≥ 900px) */
body.webshop .mySwiper {
    height: 120px;
}

/* Tablet (≤ 1024px) */
@media (max-width: 1024px) {
    body.webshop .mySwiper {
        height: 120px;
    }
}

/* Mobile (≤ 600px) */
@media (max-width: 600px) {
    body.webshop .mySwiper {
        height: 120px;
    }
}

/* Very small (≤ 480px) */
@media (max-width: 480px) {
    body.webshop .mySwiper {
        height: 100px;
    }
}

/* Slides & Bilder sauber einpassen */
body.webshop .mySwiper .swiper-wrapper,
body.webshop .mySwiper .swiper-slide {
    height: 100%;
}

    body.webshop .mySwiper .swiper-slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

/* Produkte */

body.webshop .product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
}

body.webshop .product-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    padding: 15px;
    text-align: center;
    transition: box-shadow 0.2s ease;
}

    body.webshop .product-card:hover {
        box-shadow: 0 4px 18px rgba(0,0,0,0.08);
    }

body.webshop .product-image {
    width: 100%;
    height: auto;
    margin-bottom: 10px;
}

body.webshop .product-title {
    font-size: 18px;
    font-weight: 600;
    margin: 10px 0 5px 0;
}

body.webshop .product-price {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 10px;
}

body.webshop .product-cart-form {
    margin-top: 10px;
}

body.webshop .product-cart-btn {
    background: #000;
    color: #fff;
    border: none;
    padding: 10px 14px;
    font-size: 18px;
    cursor: pointer;
    border-radius: 4px;
}

    body.webshop .product-cart-btn:hover {
        background: #333;
    }



/* -----------------------------------------------------------
   DESKTOP – horizontale Timeline
   ----------------------------------------------------------- */
@media (min-width: 900px) {

    /* Timeline wird horizontal */
    body.webshop .ug-timeline {
        position: relative;
        margin: 80px 0;
        padding: 80px 0 40px 0;
        padding-left: 0;
        display: flex;
        justify-content: space-between;
    }

    /* Horizontale Linie über den Items */
    body.webshop .ug-timeline-line {
        position: absolute;
        top: 90px;
        left: 0;
        right: 0;
        height: 2px;
        width: 100%;
        background: rgba(0,0,0,0.25); /* garantiert sichtbar */
        z-index: 0;
    }

    /* Items nebeneinander */
    body.webshop .ug-timeline-item {
        position: relative;
        width: 50%;
        text-align: center;
        margin: 0;
        padding-top: 50px; /* Platz für Dot über dem Text */
        z-index: 1;
    }

    /* Dot im Item, auf der Linie zentriert */
    body.webshop .ug-timeline-dot {
        position: absolute;
        top: 0px;
        left: 50%;
        transform: translateX(-50%);
        width: 20px;
        height: 20px;
        background: var(--ug-brand-color, #007934); /* final */
        border-radius: 50%;
        border: 3px solid #fff;
        box-shadow: 0 0 0 2px rgba(0,0,0,0.25);
        z-index: 2;
    }
}

/* -----------------------------------------------------------
   xshop
   ----------------------------------------------------------- */
/* ---------------------------------------------------
   GLOBAL SWIPER HEIGHTS (Desktop)
--------------------------------------------------- */
body.xshop .mySwiper {
    height: 120px;
}

/* Tablet (≤ 1024px) */
@media (max-width: 1024px) {
    body.xshop .mySwiper {
        height: 120px;
    }
}

/* Mobile (≤ 600px) */
@media (max-width: 600px) {
    body.xshop .mySwiper {
        height: 120px;
    }
}

/* Very small (≤ 480px) */
@media (max-width: 480px) {
    body.xshop .mySwiper {
        height: 100px;
    }
}

/* Slides & Bilder sauber einpassen */
body.xshop .mySwiper .swiper-wrapper,
body.xshop .mySwiper .swiper-slide {
    height: 100%;
}

    body.xshop .mySwiper .swiper-slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

/* ---------------------------------------------------
   GRID LAYOUT
--------------------------------------------------- */
body.xshop .product-grid {
    display: grid;
    grid-template-columns: 140px 1fr 1fr 300px;
    gap: 30px;
    max-width: 1600px;
    margin: 40px auto;
    align-items: start;
}

/* ---------------------------------------------------
   SPALTE 1: THUMBNAILS (vertikal zentriert)
--------------------------------------------------- */
body.xshop .thumbs-swiper {
    width: 140px;
    height: 600px;
    display: flex;
    align-items: center; /* vertikal zentriert */
}
    body.xshop .thumbs-swiper img {
        transition: transform 0.4s ease;
    }

        body.xshop .thumbs-swiper img:hover {
            transform: scale(1.05);
        }

    body.xshop .thumbs-swiper .swiper-wrapper {
        height: auto; /* wichtig, sonst streckt Swiper */
    }

    body.xshop .thumbs-swiper .swiper-slide {
        height: 100px !important;
    }

    body.xshop .thumbs-swiper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 6px;
        cursor: pointer;
    }


/* ---------------------------------------------------
   SPALTE 2: GROSSES BILD (oben ausgerichtet)
--------------------------------------------------- */
body.xshop .main-swiper {
    width: 100%;
    height: 600px; /* feste Höhe */
}

    /* Swiper Wrapper füllt die Höhe */
    body.xshop .main-swiper .swiper-wrapper {
        height: 100%;
        align-items: flex-start !important; /* Bild oben */
    }

    /* Jede Slide richtet das Bild oben aus */
    body.xshop .main-swiper .swiper-slide {
        display: flex;
        align-items: flex-start;
        justify-content: center; /* optional horizontal zentriert */
    }

    /* Bild darf nicht größer als 600px werden */
    body.xshop .main-swiper img {
        max-height: 100%;
        max-width: 100%;
        width: auto;
        height: auto;
        object-fit: contain;
        border-radius: 8px;
    }

/* ---------------------------------------------------
   SPALTE 3: BESCHREIBUNG
--------------------------------------------------- */
body.xshop .product-description {
    font-size: 16px;
    line-height: 1.5;
}

/* ---------------------------------------------------
   SPALTE 4: PREISBOX
--------------------------------------------------- */
body.xshop .product-pricebox {
    background: #fafafa;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    font-size: 16px;
}

    body.xshop .product-pricebox .price {
        font-size: 28px;
        font-weight: bold;
        margin-bottom: 10px;
    }

    body.xshop .product-pricebox .tax {
        font-size: 14px;
        color: #666;
    }

    body.xshop .product-pricebox .shipping {
        margin-top: 10px;
        font-size: 14px;
        color: #444;
    }

/* -----------------------------------------------------------
   wsxshop
   ----------------------------------------------------------- */
/* ---------------------------------------------------
   GLOBAL SWIPER HEIGHTS (Desktop)
--------------------------------------------------- */
body.wsxshop .mySwiper {
    height: 120px;
}

/* Tablet (≤ 1024px) */
@media (max-width: 1024px) {
    body.wsxshop .mySwiper {
        height: 120px;
    }
}

/* Mobile (≤ 600px) */
@media (max-width: 600px) {
    body.wsxshop .mySwiper {
        height: 120px;
    }
}

/* Very small (≤ 480px) */
@media (max-width: 480px) {
    body.wsxshop .mySwiper {
        height: 100px;
    }
}

/* Slides & Bilder sauber einpassen */
body.wsxshop .mySwiper .swiper-wrapper,
body.wsxshop .mySwiper .swiper-slide {
    height: 100%;
}

    body.wsxshop .mySwiper .swiper-slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

/* ---------------------------------------------------
   GRID LAYOUT
--------------------------------------------------- */
body.wsxshop .product-grid {
    display: grid;
    grid-template-columns: 140px 1fr 1fr 300px;
    gap: 30px;
    max-width: 1600px;
    margin: 40px auto;
    align-items: start;
}

/* ---------------------------------------------------
   SPALTE 1: THUMBNAILS (vertikal zentriert)
--------------------------------------------------- */
body.wsxshop .thumbs-swiper {
    width: 140px;
    height: 600px;
    display: flex;
    align-items: center; /* vertikal zentriert */
}

    body.wsxshop .thumbs-swiper img {
        transition: transform 0.4s ease;
    }

        body.wsxshop .thumbs-swiper img:hover {
            transform: scale(1.05);
        }

    body.wsxshop .thumbs-swiper .swiper-wrapper {
        height: auto; /* wichtig, sonst streckt Swiper */
    }

    body.wsxshop .thumbs-swiper .swiper-slide {
        height: 100px !important;
    }

    body.wsxshop .thumbs-swiper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 6px;
        cursor: pointer;
    }


/* ---------------------------------------------------
   SPALTE 2: GROSSES BILD (oben ausgerichtet)
--------------------------------------------------- */
body.wsxshop .main-swiper {
    width: 100%;
    height: 600px; /* feste Höhe */
}

    /* Swiper Wrapper füllt die Höhe */
    body.wsxshop .main-swiper .swiper-wrapper {
        height: 100%;
        align-items: flex-start !important; /* Bild oben */
    }

    /* Jede Slide richtet das Bild oben aus */
    body.wsxshop .main-swiper .swiper-slide {
        display: flex;
        align-items: flex-start;
        justify-content: center; /* optional horizontal zentriert */
    }

    /* Bild darf nicht größer als 600px werden */
    body.wsxshop .main-swiper img {
        max-height: 100%;
        max-width: 100%;
        width: auto;
        height: auto;
        object-fit: contain;
        border-radius: 8px;
    }

/* ---------------------------------------------------
   SPALTE 3: BESCHREIBUNG
--------------------------------------------------- */
body.wsxshop .product-description {
    font-size: 16px;
    line-height: 1.5;
}

/* ---------------------------------------------------
   SPALTE 4: PREISBOX
--------------------------------------------------- */
body.wsxshop .product-pricebox {
    background: #fafafa;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    font-size: 16px;
}

    body.wsxshop .product-pricebox .price {
        font-size: 28px;
        font-weight: bold;
        margin-bottom: 10px;
    }

    body.wsxshop .product-pricebox .tax {
        font-size: 14px;
        color: #666;
    }

    body.wsxshop .product-pricebox .shipping {
        margin-top: 10px;
        font-size: 14px;
        color: #444;
    }

/* =========================================================
   CART – 5‑SPALTIGES GRID
   ========================================================= */
/* Desktop (Default ≥ 900px) */
body.cart .mySwiper {
    height: 120px;
}

/* Tablet (≤ 1024px) */
@media (max-width: 1024px) {
    body.cart .mySwiper {
        height: 120px;
    }
}

/* Mobile (≤ 600px) */
@media (max-width: 600px) {
    body.cart .mySwiper {
        height: 120px;
    }
}

/* Very small (≤ 480px) */
@media (max-width: 480px) {
    body.cart .mySwiper {
        height: 100px;
    }
}

/* Slides & Bilder sauber einpassen */
body.cart .mySwiper .swiper-wrapper,
body.cart .mySwiper .swiper-slide {
    height: 100%;
}

    body.cart .mySwiper .swiper-slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }


body.cart .cart-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 100px 120px 140px;
    /* Bild+Titel | Beschreibung | Menge | Einzelpreis | Gesamtpreis */
    gap: 15px 20px;
    align-items: center;
    margin-top: 25px;
}


/* =========================================================
   HEADER
   ========================================================= */

body.cart .cart-header {
    font-weight: 700;
    border-bottom: 2px solid #ccc;
    padding-bottom: 8px;
}
    body.cart .cart-header:nth-child(3),
    body.cart .cart-header:nth-child(4),
    body.cart .cart-header:nth-child(5) {
        text-align: right;
    }


/* =========================================================
   ITEM
   ========================================================= */

body.cart .cart-item {
    display: contents; /* erlaubt echtes Grid pro Zeile */
}

/* Spalte 1: Bild + Titel */
body.cart .cart-col1 {
    display: flex;
    gap: 12px;
    align-items: center;
}

body.cart .cart-thumb {
    width: 80px;
    height: 80px;
    object-fit: contain;
    background: #fafafa;
    border: 1px solid #ddd;
    border-radius: 6px;
}

body.cart .cart-title {
    font-size: 17px;
    font-weight: 600;
}

/* Spalte 2: Beschreibung */
body.cart .cart-desc {
    font-size: 15px;
    color: #555;
}

/* Spalte 3: Menge */
body.cart .cart-qty {
    font-size: 16px;
    text-align: right;
}

/* Spalte 4: Einzelpreis */
body.cart .cart-unitprice {
    font-size: 16px;
    text-align: right;
}

/* Spalte 5: Gesamtpreis + MwSt */
body.cart .cart-price {
    font-size: 16px;
    font-weight: 600;
    text-align: right;
}

body.cart .cart-vatline {
    font-size: 13px;
    color: #666;
    text-align: right;
}


/* =========================================================
   TRENNLINIE
   ========================================================= */

body.cart .cart-divider {
    grid-column: 1 / -1;
    border-bottom: 1px solid #ddd;
    margin: 10px 0;
}


/* =========================================================
   GESAMTZEILE
   ========================================================= */

body.cart .cart-total-label {
    grid-column: 4;
    font-size: 18px;
    font-weight: 600;
    text-align: right;
}

body.cart .cart-total-value {
    grid-column: 5;
    font-size: 18px;
    font-weight: 700;
    text-align: right;
}


/* =========================================================
   PAYPAL BUTTONS
   ========================================================= */

body.cart #paypal-button-container {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

    body.cart #paypal-button-container iframe {
        transform: scale(0.85);
        transform-origin: center;
    }

