/* LALALO Stories: Uebersicht (Masonry per CSS-Spalten), Detailseite, Produktseite */
.lalalo-stories-page .page-main { max-width: 1200px; }
.ls-h1 { font-size: 32px; font-weight: 600; margin: 0 0 6px; }
.ls-h1__filter { color: #3e9bf7; font-weight: 400; }
.ls-h2 { font-size: 21px; font-weight: 600; margin: 0 0 10px; }
.ls-intro { color: #555; margin: 0 0 19px; }
.ls-intro p { margin: 0 0 8px; }
.ls-text-unten { max-width: 820px; margin: 40px auto 16px; line-height: 1.6; color: #444; }
.ls-text-unten p { margin: 0 0 14px; }
.ls-kopf { margin: 16px 0 8px; }
.ls-breadcrumb { font-size: 14px; color: #777; margin: 13px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.ls-breadcrumb a { color: #777; } .ls-breadcrumb b { font-weight: 500; color: #333; }
.ls-seiten { text-align: center; margin: 16px 0 32px; }

/* Filter */
.ls-filter { margin: 0 0 19px; }
.ls-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 11px; }
/* Handy: eine wischbare Zeile statt 30 Chips untereinander */
@media (max-width: 639px) {
    .ls-chips { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; margin: 0 -16px 11px; padding: 0 16px; }
    .ls-chips::-webkit-scrollbar { display: none; }
    .ls-chip { flex: 0 0 auto; }
    .ls-selects { gap: 6px; }
    .ls-select { flex: 1 1 45%; max-width: none; }
    .ls-h1 { font-size: 24px; }
}
.ls-chip { display: inline-block; padding: 6px 13px; border: 1px solid #d6d6d6; border-radius: 999px; color: #333; font-size: 14px; text-decoration: none; background: #fff; line-height: 1.3; }
.ls-chip small { color: #888; margin-left: 3px; }
.ls-chip:hover { border-color: #3e9bf7; color: #3e9bf7; text-decoration: none; }
.ls-chip--aktiv, .ls-chip--aktiv:hover { background: #3e9bf7; border-color: #3e9bf7; color: #fff; }
.ls-chip--aktiv small { color: rgba(255,255,255,.8); }
.ls-selects { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ls-select { max-width: 260px; }
.ls-reset { font-size: 14px; }
.ls-leer { color: #777; padding: 32px 0; }
.ls-neu { display: block; margin: 0 auto 16px; padding: 8px 16px; border: 1px solid #3e9bf7; background: #fff; color: #3e9bf7; border-radius: 999px; cursor: pointer; font: inherit; }
.ls-neu:hover { background: #3e9bf7; color: #fff; }

/* Raster */
.ls-grid { column-count: 2; column-gap: 12px; }
@media (min-width: 640px)  { .ls-grid { column-count: 3; } }
@media (min-width: 1024px) { .ls-grid { column-count: 4; column-gap: 16px; } }
.ls-grid--klein { column-count: 2; }
@media (min-width: 640px)  { .ls-grid--klein { column-count: 4; } }
@media (min-width: 1024px) { .ls-grid--klein { column-count: 6; } }
.ls-tile { display: block; break-inside: avoid; margin: 0 0 12px; text-decoration: none; color: inherit; }
.ls-tile:hover { text-decoration: none; }
.ls-tile__media { display: block; position: relative; overflow: hidden; border-radius: 10px; background: #f2f2f2; }
.ls-tile__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.ls-tile:hover .ls-tile__media img { transform: scale(1.03); }
.ls-tile__titel { display: block; font-size: 13px; color: #444; margin: 6px 3px 0; line-height: 1.3; }
.ls-tile__play { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: rgba(0,0,0,.55); }
.ls-tile__play::after { content: ''; position: absolute; left: 20px; top: 15px; border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent #fff; }
.ls-tile__dauer { position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,.6); color: #fff; font-size: 12px; padding: 2px 6px; border-radius: 4px; }
.ls-mehr { height: 1px; }

/* Detailseite */
.ls-zurueck { margin: 8px 0 16px; font-size: 14px; }
.ls-view { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: start; }
@media (min-width: 900px) { .ls-view { grid-template-columns: 7fr 5fr; gap: 40px; } }
.ls-view__bild, .ls-view__video { display: block; width: 100%; height: auto; border-radius: 12px; background: #f2f2f2; }
.ls-view__kurz { margin: 10px 3px 0; color: #666; font-size: 14px; }
.ls-view__story { font-size: 17px; line-height: 1.6; margin: 0 0 24px; }
.ls-produkte { margin: 0 0 24px; }
.ls-produkt { display: flex; align-items: center; gap: 13px; padding: 10px; border: 1px solid #e3e3e3; border-radius: 10px; margin-bottom: 10px; text-decoration: none; color: inherit; }
.ls-produkt:hover { border-color: #3e9bf7; text-decoration: none; }
.ls-produkt img { width: 64px; height: 64px; object-fit: contain; border-radius: 6px; background: #fafafa; }
.ls-produkt__name { flex: 1; font-size: 15px; line-height: 1.3; }
.ls-produkt__hinweis { color: #999; font-size: 13px; white-space: nowrap; }
.ls-produkt--offline, .ls-produkt--ausverkauft { opacity: .75; }
.ls-viewer__produkt i { color: #aaa; font-style: normal; font-size: 13px; white-space: nowrap; }
.ls-produkt__cta { background: #3e9bf7; color: #fff; padding: 7px 14px; border-radius: 6px; font-size: 14px; white-space: nowrap; }
.ls-buttons__gruppe { margin-bottom: 10px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ls-buttons__label { font-size: 13px; color: #888; margin-right: 3px; min-width: 60px; }
.ls-button { display: inline-block; padding: 6px 13px; border: 1px solid #3e9bf7; border-radius: 999px; color: #3e9bf7; font-size: 14px; text-decoration: none; }
.ls-button:hover { background: #3e9bf7; color: #fff; text-decoration: none; }
.ls-weitere { margin-top: 40px; }

/* Aus dem Magazin */
.ls-magazin { margin: 40px 0 16px; }
.ls-h2__sub { font-weight: 400; color: #777; font-size: 15px; }
.ls-magazin__reihe { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
@media (max-width: 639px) { .ls-magazin__reihe { grid-template-columns: 1fr 1fr; gap: 10px; } }
.ls-magazin__alle { margin: 13px 0 0; }
.ls-magazin__karte { display: block; border: 1px solid #e3e3e3; border-radius: 10px; overflow: hidden; color: inherit; text-decoration: none; background: #fff; }
.ls-magazin__karte:hover { border-color: #3e9bf7; text-decoration: none; }
.ls-magazin__karte img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #f2f2f2; }
.ls-magazin__titel { display: block; padding: 11px 13px 3px; font-weight: 600; font-size: 15px; line-height: 1.3; }
.ls-magazin__mehr { display: block; padding: 0 13px 11px; color: #3e9bf7; font-size: 14px; }

/* Produktseite: wischbare Reihen */
#ls-produktseite { clear: both; width: 100%; }
.ls-produktseite { margin: 32px 0; }
.ls-produktseite .ls-h2 { margin-top: 22px; }
.ls-reihe { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding: 2px 0 10px; scrollbar-width: thin; }
.ls-reihe .ls-tile { flex: 0 0 calc((100% - 5 * 12px) / 6); min-width: 150px; scroll-snap-align: start; margin: 0; }
@media (max-width: 639px) { .ls-reihe .ls-tile { flex-basis: 44%; min-width: 0; } }
.ls-reihe .ls-tile__media { aspect-ratio: 1 / 1 !important; }   /* in der Reihe quadratisch, damit die Zeile ruhig bleibt */
.ls-produktseite__links { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 0; }

/* Detailseite: Pfeile */
.ls-zurueck { display: flex; justify-content: space-between; align-items: center; gap: 16px; grid-column: 1 / -1; }   /* ueber beide Spalten, sonst rutscht das Foto nach rechts */
.ls-nav__pfeil { margin-left: 13px; white-space: nowrap; }

/* Viewer (Vollbild, Wischen) */
html.ls-viewer-offen, html.ls-viewer-offen body { overflow: hidden; }
.ls-viewer { position: fixed; inset: 0; z-index: 10000; background: rgba(0,0,0,.92); display: none; flex-direction: column; color: #fff; }
.ls-viewer--offen { display: flex; }
.ls-viewer__medien { flex: 1 1 auto; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 48px 8px 8px; }
.ls-viewer__medien img, .ls-viewer__medien video { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 6px; background: #111; }
.ls-viewer__text { flex: 0 0 auto; padding: 10px 14px 14px; background: #111; max-height: 42vh; overflow-y: auto; }
.ls-viewer__titel { font-weight: 600; font-size: 16px; margin-bottom: 3px; }
.ls-viewer__kurz { color: #bbb; font-size: 14px; margin-bottom: 10px; }
.ls-viewer__produkt { display: flex; align-items: center; gap: 10px; padding: 8px 10px; margin-bottom: 6px; border-radius: 8px; background: #1e1e1e; color: #fff; text-decoration: none; }
.ls-viewer__produkt:hover { background: #2a2a2a; color: #fff; text-decoration: none; }
.ls-viewer__produkt img { width: 44px; height: 44px; object-fit: contain; border-radius: 4px; background: #fff; }
.ls-viewer__produkt span { flex: 1; font-size: 14px; line-height: 1.25; }
.ls-viewer__produkt b { background: #3e9bf7; color: #fff; font-weight: 600; padding: 6px 11px; border-radius: 6px; font-size: 13px; white-space: nowrap; }
.ls-viewer__mehr { display: inline-block; margin-top: 3px; color: #9cc9ff; font-size: 14px; }
.ls-viewer__zu { position: absolute; top: 8px; right: 8px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255,255,255,.15); color: #fff; font-size: 26px; padding: 0; display: flex; align-items: center; justify-content: center; line-height: 1; box-shadow: none; border: 0 !important; cursor: pointer; z-index: 2; }
.ls-viewer__pfeil { position: absolute; top: 50%; margin-top: -24px; width: 44px; height: 48px; border: 0; background: rgba(255,255,255,.15); color: #fff; font-size: 32px; padding: 0; display: flex; align-items: center; justify-content: center; line-height: 1; box-shadow: none; border: 0 !important; cursor: pointer; z-index: 2; display: none; }
.ls-viewer__pfeil--links { left: 8px; border-radius: 8px; }
.ls-viewer__pfeil--rechts { right: 8px; border-radius: 8px; }
@media (min-width: 900px) {
    .ls-viewer { flex-direction: row; }
    .ls-viewer__medien { padding: 24px 70px; }
    .ls-viewer__text { flex: 0 0 360px; max-height: none; padding: 60px 24px 24px; }
    .ls-viewer__pfeil { display: flex; }
    .ls-viewer__titel { font-size: 18px; }
}
@media (hover: none) { .ls-viewer__pfeil { display: none !important; } }   /* Touch: nur Wischen */
/* A7: besuchte Produktlinks im Viewer bleiben weiss */
.ls-viewer__produkt:visited,
.ls-viewer__produkt:visited span { color: #fff; }
