/* 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 in der blau-weissen Bildsprache der Startseite (22.11.2026, Markus: «über den
   gesamten Shop homogenisieren … blau-weisse rahmenlose Bilder»). Bis dahin weisse Karten mit
   Rahmen und 16 px Rundung – eine zweite Form neben den Kacheln der Startseite.
   Jetzt: kein Rahmen, das Bild liegt auf der blau-weissen Fläche (multiply nimmt dem
   Produktbild seinen weissen Kasten), der Text steht bündig darunter.
   Farben wie $bw-flaeche-hell / $bw-flaeche / $bw-flaeche-tief in sass/_variables.scss. */
.is-item-list #product-list.layout-gallery .productbox-inner {
    height: 100%;
    padding: 0 0 14px;
    border: 0;
    border-radius: 0;
    background: #fff;
}
.is-item-list #product-list.layout-gallery .productbox,
.is-item-list #product-list.layout-gallery .productbox:hover {
    box-shadow: none;
    margin-bottom: 26px;
}
.is-item-list #product-list.layout-gallery .productbox .inner-image-wrapper {
    border-radius: 0;
    overflow: hidden;
    padding: 16px;
    background: #fff;
}
.is-item-list #product-list.layout-gallery .productbox .inner-image-wrapper .productbox-image,
.is-item-list #product-list.layout-gallery .productbox .inner-image-wrapper .square .inner {
    background: transparent;
}
/* 22.11.2026, Markus: «weisser Hintergrund ist einfach besser». Die getönte Fläche hinter
   den Produktbildern ist zurückgenommen: Bild auf Weiss, ohne multiply. */
.is-item-list #product-list.layout-gallery .productbox-inner > .row > .col:last-child {
    padding-left: 17px;
    padding-right: 17px;
}
/* «Ausverkauft» stand auch auf Artikeln, die im Zentrallager liegen und bestellbar sind
   (eigener Bestand 0). Die Zeile darunter sagt es richtig («2 Stück im Zentrallager»);
   die rote Marke widersprach ihr. Ohne Zentrallager-Bestand bleibt sie stehen. */
.productbox:has(.vt-lager-zentral) .ribbon-7 {
    display: none;
}
/* Artikelseite: das Hauptbild liegt auf derselben blau-weissen Fläche wie in den Listen
   (22.11.2026). Die Miniaturen links bleiben auf Weiss, die Vollbildansicht auch.
   ⚠️ Die Fläche gehört an .inner, nicht an #gallery_wrapper: die Galerie (slick) verschiebt
   ihre Spur mit transform, und das bildet einen eigenen Stapel. multiply mischt nur mit dem,
   was im selben Stapel liegt – eine Fläche ausserhalb liess den weissen Kasten des Bildes
   stehen. Und kein Innenabstand am Wrapper: slick rechnet die Breiten beim Start. */
#image_wrapper:not(.fullscreen) #gallery .square .inner {
    background: #fff;
}

/* ===== Kategorien kompakt (04.12.2026) =====
   Markus: «die Kategorien sind enorm gross und nicht schön dargestellt – kompakt und übersichtlich».
   1. Megamenü: statt Kacheln mit 130-px-Bild dichte Spalten. Das Bild steht klein vor dem Namen,
      die Gruppen füllen die Spalten von oben nach unten auf (kein Leerraum unter kurzen Gruppen).
   2. «Unterkategorien anzeigen» auf der Kategorieseite: eine Reihe Pillen statt Kasten im Kasten. */
@media (min-width: 992px) {
    .dropdown-full .dropdown-body { padding: 16px 22px 18px; }
    .dropdown-full .subcategory-wrapper > .row.nav { display: block; column-count: 5; column-gap: 26px; }
    .dropdown-full .subcategory-wrapper > .row.nav > .nav-item-lg-m {
        display: block; width: auto; max-width: none; flex: none;
        margin: 0 0 12px; padding: 0;
        break-inside: avoid; page-break-inside: avoid;
    }
    .dropdown-full .subcategory-wrapper > .row.nav > .nav-item-lg-m.d-lg-none { display: none; }
    .dropdown-full .submenu-headline {
        display: flex !important; align-items: center; justify-content: flex-start; gap: 9px;
        margin-bottom: 3px; padding: 3px 0;
        border-bottom: 1px solid #e6edf5;
        color: #0b2536; font-size: .86rem; font-weight: 600; line-height: 1.25; text-align: left;
    }
    .dropdown-full .submenu-headline::after { display: none; }
    .dropdown-full .submenu-headline > span { min-width: 0; }
    .dropdown-full .submenu-headline:hover { color: #0076a8; }
    .dropdown-full .submenu-headline-image { flex: none; width: 30px; height: 30px; margin: 0; border-radius: 6px; }
    .dropdown-full a:hover > .submenu-headline-image { transform: none; box-shadow: none; }
    .dropdown-full .categories-recursive-dropdown .nav { display: block; }
    .dropdown-full .categories-recursive-dropdown .nav-item:not(.d-lg-none) { display: block !important; }
    .dropdown-full .categories-recursive-dropdown .nav-link {
        padding: 1.5px 0 1.5px 39px;
        color: #3b4d61; font-size: .8rem; line-height: 1.3;
    }
    .dropdown-full .categories-recursive-dropdown .nav-link:hover { color: #0076a8; }
    .dropdown-full .categories-recursive-dropdown .categories-recursive-dropdown { display: none; }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
    .dropdown-full .subcategory-wrapper > .row.nav { column-count: 4; }
}
@media (min-width: 1400px) {
    .dropdown-full .subcategory-wrapper > .row.nav { column-count: 6; }
}
.is-item-list .content-cats-small.vt-kacheln-offen { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.is-item-list .content-cats-small > [class*="col-"] { flex: none; width: auto; max-width: none; padding: 0; }
.is-item-list .content-cats-small .sub-categories,
.is-item-list .content-cats-small .sub-categories:hover {
    display: block; border: 0; border-radius: 0; background: none; box-shadow: none; transform: none;
}
.is-item-list .content-cats-small .caption-wrapper { padding: 0; }
.is-item-list .content-cats-small .subcategories-image,
.is-item-list .content-cats-small .caption-wrapper ul { display: none; }
.is-item-list .content-cats-small .caption a.btn {
    display: inline-block; width: auto; padding: 6px 14px;
    border: 1px solid #cfdcea; border-radius: 999px;
    background: #fff; color: #0b2536;
    font-size: .85rem; font-weight: 600; line-height: 1.3; white-space: nowrap;
}
.is-item-list .content-cats-small .caption a.btn:hover { border-color: #0082c3; background: #eef6fd; color: #0076a8; }
.is-item-list .content-cats-small > [class*="col-"],
.is-item-list .content-cats-small .sub-categories,
.is-item-list .content-cats-small .caption-wrapper,
.is-item-list .content-cats-small .caption { margin: 0; min-height: 0; }
