.animated-logo-band-2 {
    /* Layout-Regler; Textfarbe und Hintergrund kommen unverändert aus dem Theme. */
    --logo-band-2-fade: min(15%, 4rem);
    --logo-band-2-edge: min(15%, 2rem);
    overflow: hidden;
    padding-top: var(--us-gap);
    padding-bottom: var(--us-gap);
}

.animated-logo-band-2 .logo-band-2-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: 0 var(--us-gap);
    position: relative;
    isolation: isolate;
    min-width: 0;
}

.animated-logo-band-2 .logo-band-2-grid.has-overlay-text {
    /* Natürliche Textbreite; bei Platzmangel darf der Text umbrechen. */
    grid-template-columns: minmax(0, max-content) minmax(4rem, 1fr);
}

.animated-logo-band-2 .logo-band-2-text,
.animated-logo-band-2 .logo-band-2-holder {
    min-width: 0;
}

.animated-logo-band-2 .logo-band-2-text {
    align-self: center;
    justify-self: start;
    box-sizing: border-box;
    width: auto;
    max-width: 100%;
    margin: 0;
    overflow-wrap: anywhere;
}
.animated-logo-band-2 .logo-band-2-text.teaser-text{color:var(--us-text-weak);}

.animated-logo-band-2 .logo-band-2-holder {
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    min-height: clamp(3rem, 6vw, 5rem);
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    /* Schwarz definiert nur die Deckkraft der Maske; es wird keine Farbe gemalt. */
    -webkit-mask-image: linear-gradient(to right,
        transparent 0,
        #000 var(--logo-band-2-fade),
        #000 calc(100% - var(--logo-band-2-edge)),
        transparent 100%);
    mask-image: linear-gradient(to right,
        transparent 0,
        #000 var(--logo-band-2-fade),
        #000 calc(100% - var(--logo-band-2-edge)),
        transparent 100%);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

.animated-logo-band-2 .logo-band-2-holder * {
    pointer-events: none;
}

.animated-logo-band-2 .logo-band-2-track {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: clamp(48px, 7vw, 112px);
    width: max-content;
    direction: ltr;
}

.animated-logo-band-2 .logo-band-2-grid[data-logo-band-running="1"] .logo-band-2-track {
    will-change: transform;
}

.animated-logo-band-2 .logo-band-2-item {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    margin: 0;
}

.animated-logo-band-2 .logo-band-2-item img {
    display: block;
    width: auto;
    height: clamp(28px, 4vw, 52px);
    max-width: 180px;
    object-fit: contain;
    -webkit-user-drag: none;
}

.animated-logo-band-2.monochrome .logo-band-2-item img { filter: grayscale(1); }
.animated-logo-band-2.opacity .logo-band-2-item { opacity: .5; }

.animated-logo-band-2.colorize-primary .logo-band-2-item,
.animated-logo-band-2.colorize-secondary .logo-band-2-item {
    -webkit-mask: var(--logo-band-2-logo) center / contain no-repeat;
    mask: var(--logo-band-2-logo) center / contain no-repeat;
}

.animated-logo-band-2.colorize-primary .logo-band-2-item { background-color: var(--us-primary-color); }
.animated-logo-band-2.colorize-secondary .logo-band-2-item { background-color: var(--us-secondary-color); }
.animated-logo-band-2.colorize-primary .logo-band-2-item img,
.animated-logo-band-2.colorize-secondary .logo-band-2-item img { opacity: 0; }

.animated-logo-band-2 footer {
    margin-top: var(--us-gap) !important;
    padding: 0 var(--us-box-padding, 16px);
}
.animated-logo-band-2 footer .teaser-meta { opacity: .66; }

/* Gleiches Layout und gleiche Maske wie im Frontend; im Editor bleibt die Auswahl bedienbar. */
.animated-logo-band-2 [data-logo-band-editor="1"] .logo-band-2-holder {
    pointer-events: auto;
    user-select: auto;
    -webkit-user-select: auto;
}
.animated-logo-band-2 [data-logo-band-editor="1"] .logo-band-2-holder * { pointer-events: auto; }
.animated-logo-band-2 .logo-band-2-grid > .usempty { grid-column: 1 / -1; }

@media (max-width: 660px) {
    .animated-logo-band-2 .logo-band-2-track { gap: 40px; }
    .animated-logo-band-2 .logo-band-2-item img { height: 32px; max-width: 140px; }
}

/* Statische Logo-Liste bei reduzierter Bewegung; der Text bleibt daneben. */
@media (prefers-reduced-motion: reduce) {
    .animated-logo-band-2 .logo-band-2-holder { -webkit-mask: none; mask: none; }
    .animated-logo-band-2 .logo-band-2-track { flex-wrap: wrap; width: 100%; transform: none !important; }
    .animated-logo-band-2 .logo-band-2-item { flex-shrink: 1; max-width: 100%; }
    .animated-logo-band-2 .logo-band-2-item img { max-width: 100%; }
    .animated-logo-band-2 [data-logo-band-clone] { display: none; }
}

@media only screen and (max-width: 14003px) {
    .animated-logo-band-2 .logo-band-2-grid {
        padding-left: var(--us-gap);
    }
}
@media only screen and (min-width: 1404px) {
    .animated-logo-band-2 .logo-band-2-grid {
        padding-left: calc((100vw - var(--us-wide-width, 1340px)) / 2) !important;
        box-sizing: content-box;
    }
}
