/* Schnelle CSS-Anpassungen ohne Kompilieren (wird an variotrade.css angehängt) */

/* Sprachwahl: Leiste DE · FR · IT · EN (snippets/language_dropdown.tpl) */
.vt-sprache {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 2px;
    border: 1px solid #d5dee8;
    border-radius: 999px;
    background: #fff;
    line-height: 1;
    list-style: none;
}
.vt-sprache-globus {
    flex: none;
    margin: 0 3px 0 6px;
    color: #5b6b7d;
}
.vt-sprache a.vt-sprache-wahl {
    display: inline-block;
    min-width: 30px;
    padding: 4px 8px;
    border-radius: 999px;
    color: #33455c !important;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .04em;
    text-align: center;
    text-decoration: none;
    transition: background-color .15s, color .15s;
}
.vt-sprache a.vt-sprache-wahl:hover,
.vt-sprache a.vt-sprache-wahl:focus-visible {
    background: #e8f1fb;
    color: #0076a8 !important;
    text-decoration: none;
}
.vt-sprache a.vt-sprache-wahl.active {
    background: #0082c3;
    color: #fff !important;
    cursor: default;
}
/* Remake setzt an jedes [hreflang] eine Flagge samt Einzug – hier steht das Kürzel */
.vt-sprache a.vt-sprache-wahl::before {
    display: none;
}
.vt-sprache a.vt-sprache-wahl {
    position: static;
    margin: 0;
}
/* Kopfleiste: ganz rechts, mit Abstand zu den Links daneben, ohne Trennstrich */
.topbar-main > .vt-sprache {
    order: 99;
    align-self: center;
    margin-left: 14px;
}
.topbar-main > .vt-sprache::before,
.topbar-main > .vt-sprache::after {
    display: none !important;
}
/* Mobiles Menü und Fuss: grössere Tippflächen */
.nav-mobile-footer .vt-sprache {
    margin: 10px 16px;
}
.nav-mobile-footer .vt-sprache a.vt-sprache-wahl,
footer .vt-sprache a.vt-sprache-wahl {
    min-width: 42px;
    padding: 9px 12px;
    font-size: 13px;
}
/* Handy: eigene schmale Zeile über dem Kopf (layout/header.tpl) */
.vt-sprache-mobil {
    display: flex;
    justify-content: flex-end;
    padding: 6px 12px;
    background: #f4f7fa;
    border-bottom: 1px solid #e3e9f0;
}
.vt-sprache-mobil .vt-sprache a.vt-sprache-wahl {
    min-width: 40px;
    padding: 7px 10px;
    font-size: 12.5px;
}

/* Kategoriebilder (tools/kategoriebilder_shop.py): abgerundet, beim Überfahren leicht näher */
.submenu-headline-image,
.subcategories-image img {
    border-radius: 10px;
    transition: transform .25s ease, box-shadow .25s ease;
}
a:hover > .submenu-headline-image,
.sub-categories a:hover .subcategories-image img {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 10px 22px rgba(11, 37, 54, .16);
}
@media (prefers-reduced-motion: reduce) {
    .submenu-headline-image,
    .subcategories-image img {
        transition: none;
    }
    a:hover > .submenu-headline-image,
    .sub-categories a:hover .subcategories-image img {
        transform: none;
    }
}

/* Kurzbeschreibung der Kategorieseite (Plugin vt_content, Content/Kategorietexte.php) */
.vt-kattext {
    max-width: 78ch;
    margin: .25rem 0 1.25rem;
    color: #46586b;
    font-size: .95rem;
    line-height: 1.55;
}

/* Kacheln der Kategorieseite als einheitliche Karten (18.11.2026): Bild oben über die ganze
   Breite, Name darunter, Unterkategorien als kleine Marken statt als Aufzählung mit Punkten. */
.content-cats-small .sub-categories {
    display: flex;
    flex-direction: column;
    height: calc(100% - 20px);
    margin-bottom: 20px;
    background: #fff;
    border: 1px solid #e3e9f0;
    border-radius: 14px;
    overflow: hidden;
    transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.content-cats-small .sub-categories:hover {
    border-color: #c9d8e8;
    box-shadow: 0 12px 28px rgba(11, 37, 54, .12);
    transform: translateY(-2px);
}
.content-cats-small .sub-categories > a {
    display: block;
    background: #eef3f9;
}
.content-cats-small .subcategories-image {
    aspect-ratio: 4 / 3;
    overflow: hidden;
}
.content-cats-small .subcategories-image img,
.content-cats-small .sub-categories a:hover .subcategories-image img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    border-radius: 0;
    box-shadow: none;
    transform: none;
    transition: transform .35s ease;
}
.content-cats-small .sub-categories:hover .subcategories-image img {
    transform: scale(1.05);
}
.content-cats-small .caption-wrapper {
    padding: 12px 14px 14px;
}
.content-cats-small .caption {
    text-align: left;
}
.content-cats-small .caption a {
    color: #16181c;
    font-size: .95rem;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
}
.content-cats-small .caption a:hover {
    color: #0076a8;
}
.content-cats-small .caption-wrapper hr {
    display: none !important;
}
.content-cats-small .caption-wrapper ul {
    margin: 9px 0 0;
    padding: 0;
    list-style: none;
}
.content-cats-small .caption-wrapper ul li {
    display: inline-block;
    margin: 0 4px 5px 0;
}
.content-cats-small .caption-wrapper ul li a {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #33455c;
    font-size: .78rem;
    line-height: 1.4;
    text-decoration: none;
    transition: background-color .15s, color .15s;
}
.content-cats-small .caption-wrapper ul li a:hover {
    background: #e2eefb;
    color: #0076a8;
}
/* Menü: Bild und Name der Serie als ruhige Einheit */
.submenu-headline-image {
    background: #eef3f9;
    object-fit: cover;
}
@media (prefers-reduced-motion: reduce) {
    .content-cats-small .sub-categories,
    .content-cats-small .subcategories-image img {
        transition: none;
    }
    .content-cats-small .sub-categories:hover,
    .content-cats-small .sub-categories:hover .subcategories-image img {
        transform: none;
    }
}

/* ===== Kategorieseite, überarbeitet (18.11.2026) =====
   Kopf als ruhige Bühne mit Bild, Seitenleiste und Artikel als Karten, Werkzeugleiste als Pillen.
   Nur Darstellung, alles unter .is-item-list – andere Seiten bleiben, wie sie sind. */
.is-item-list #result-wrapper > .title {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 170px;
    margin: 0 0 20px;
    padding: 30px 34px;
    overflow: hidden;
    border: 1px solid #dbe7f3;
    border-radius: 20px;
    background: linear-gradient(115deg, #f6f9fd 0%, #eaf2fb 55%, #dcebfa 100%);
}
.is-item-list #result-wrapper > .title h1 {
    margin: 0;
    color: #0b2536;
    font-size: 1.9rem;
    font-weight: 700;
    letter-spacing: -.015em;
    line-height: 1.15;
}
.is-item-list #result-wrapper > .title .vt-kattext {
    max-width: 64ch;
    margin: 12px 0 0;
    color: #3b4d61;
    font-size: .97rem;
    line-height: 1.6;
}
/* Bild der Kategorie rechts im Kopf (Plugin vt_content, Kategoriebilder::einsetzen) */
.is-item-list #result-wrapper > .title .vt-katbild {
    position: absolute;
    top: 50%;
    right: 26px;
    width: 200px;
    height: 200px;
    transform: translateY(-50%);
    border-radius: 16px;
    object-fit: cover;
    mix-blend-mode: multiply;
    pointer-events: none;
}
.is-item-list #result-wrapper > .title.vt-mit-bild {
    min-height: 236px;
    padding-right: 256px;
}
@media (max-width: 767.98px) {
    .is-item-list #result-wrapper > .title {
        min-height: 0;
        padding: 20px 18px;
        border-radius: 14px;
    }
    .is-item-list #result-wrapper > .title h1 {
        font-size: 1.45rem;
    }
    .is-item-list #result-wrapper > .title .vt-katbild {
        display: none;
    }
    .is-item-list #result-wrapper > .title.vt-mit-bild {
        min-height: 0;
        padding-right: 18px;
    }
}
/* Knopf "Unterkategorien anzeigen" */
.is-item-list .vt-kacheln-knopf {
    margin: 0 0 16px;
    padding: 8px 16px;
    border: 1px solid #cfdcea;
    border-radius: 999px;
    background: #fff;
    color: #0b2536;
    font-size: .87rem;
    font-weight: 600;
    transition: background-color .15s, border-color .15s, color .15s;
}
.is-item-list .vt-kacheln-knopf:hover {
    border-color: #0082c3;
    background: #eef6fd;
    color: #0076a8;
}
/* Seitenleiste: Karten statt Kästen mit harter Linie */
.is-item-list #sidepanel_left .box {
    margin-bottom: 14px;
    padding: 10px 18px;
    border: 1px solid #e3e9f0;
    border-radius: 14px;
    background: #fff;
}
.is-item-list #sidepanel_left .box-normal-link,
.is-item-list #sidepanel_left .btn-filter-box {
    color: #0b2536;
    font-weight: 700;
    letter-spacing: .01em;
}
.is-item-list #sidepanel_left .box-categories .nav-link {
    padding-top: 7px;
    padding-bottom: 7px;
    border: 0;
    border-radius: 8px;
    transition: background-color .15s, color .15s;
}
.is-item-list #sidepanel_left .box-categories .nav-link:hover {
    background: #f1f6fb;
}
.is-item-list #sidepanel_left .box-categories .nav-item.active > .nav-link,
.is-item-list #sidepanel_left .box-categories .nav-item.active > .nav-link > a {
    color: #0076a8;
    font-weight: 700;
}
/* Werkzeugleiste über den Artikeln */
.is-item-list .productlist-page-nav .btn {
    border-radius: 999px;
}
.is-item-list .productlist-page-nav .btn-group > .btn + .btn,
.is-item-list .productlist-page-nav .btn-group > .btn-group + .btn-group > .btn {
    margin-left: 6px;
}
/* Artikel als Karten */
.is-item-list #product-list.layout-gallery .productbox-inner {
    height: 100%;
    padding: 14px 14px 16px;
    border: 1px solid #e3e9f0;
    border-radius: 16px;
    background: #fff;
    transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.is-item-list #product-list.layout-gallery .productbox:hover .productbox-inner {
    border-color: #c9d8e8;
    box-shadow: 0 14px 32px rgba(11, 37, 54, .12);
    transform: translateY(-2px);
}
.is-item-list #product-list.layout-gallery .productbox {
    margin-bottom: 22px;
}
.is-item-list #product-list.layout-gallery .productbox .inner-image-wrapper {
    border-radius: 10px;
    overflow: hidden;
}
@media (prefers-reduced-motion: reduce) {
    .is-item-list #product-list.layout-gallery .productbox-inner {
        transition: none;
    }
    .is-item-list #product-list.layout-gallery .productbox:hover .productbox-inner {
        transform: none;
    }
}
